pub fn error_code(
        &self,
    ) -> std::option::Option<&crate::model::InvalidCrossAccountRoleErrorCode> {
        self.error_code.as_ref()
    }
/// <p>Code that indicates the type of error that is generated.</p>
Code that indicates the type of error that is generated.
Code that indicates the type of error that is generated .
pub fn error_code(
        &self,
    ) -> std::option::Option<&crate::model::InvalidCrossAccountRoleErrorCode> {
        self.error_code.as_ref()
    }
pub fn error_code ( & self , ) -> std :: option :: Option < & crate :: model :: InvalidCrossAccountRoleErrorCode > { self . error_code . as_ref ( ) }
<p>Code that indicates the type of error that is generated.</p>
<p > Code that indicates the type of error that is generated . < / p >
&self
&self