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