pub fn is_invalid_service_role_exception(&self) -> bool {
        matches!(
            &self.kind,
            AssociateTeamMemberErrorKind::InvalidServiceRoleException(_)
        )
    }
/// Returns `true` if the error kind is `AssociateTeamMemberErrorKind::InvalidServiceRoleException`.
Returns `true` if the error kind is `AssociateTeamMemberErrorKind::InvalidServiceRoleException`.
Returns ` true ` if the error kind is ` AssociateTeamMemberErrorKind :: InvalidServiceRoleException ` .
pub fn is_invalid_service_role_exception(&self) -> bool {
        matches!(
            &self.kind,
            AssociateTeamMemberErrorKind::InvalidServiceRoleException(_)
        )
    }
pub fn is_invalid_service_role_exception ( & self ) -> bool { matches ! ( self kind AssociateTeamMemberErrorKind InvalidServiceRoleException ( ) ) }
Returns `true` if the error kind is `AssociateTeamMemberErrorKind::InvalidServiceRoleException`.
Returns ` true ` if the error kind is ` AssociateTeamMemberErrorKind :: InvalidServiceRoleException ` .
&self
&self