Struct aws_sdk_macie2::types::builders::UserIdentityBuilder
source · #[non_exhaustive]pub struct UserIdentityBuilder { /* private fields */ }
Expand description
A builder for UserIdentity
.
Implementations§
source§impl UserIdentityBuilder
impl UserIdentityBuilder
sourcepub fn assumed_role(self, input: AssumedRole) -> Self
pub fn assumed_role(self, input: AssumedRole) -> Self
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
sourcepub fn set_assumed_role(self, input: Option<AssumedRole>) -> Self
pub fn set_assumed_role(self, input: Option<AssumedRole>) -> Self
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
sourcepub fn get_assumed_role(&self) -> &Option<AssumedRole>
pub fn get_assumed_role(&self) -> &Option<AssumedRole>
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
sourcepub fn aws_account(self, input: AwsAccount) -> Self
pub fn aws_account(self, input: AwsAccount) -> Self
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
sourcepub fn set_aws_account(self, input: Option<AwsAccount>) -> Self
pub fn set_aws_account(self, input: Option<AwsAccount>) -> Self
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
sourcepub fn get_aws_account(&self) -> &Option<AwsAccount>
pub fn get_aws_account(&self) -> &Option<AwsAccount>
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
sourcepub fn aws_service(self, input: AwsService) -> Self
pub fn aws_service(self, input: AwsService) -> Self
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of the service.
sourcepub fn set_aws_service(self, input: Option<AwsService>) -> Self
pub fn set_aws_service(self, input: Option<AwsService>) -> Self
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of the service.
sourcepub fn get_aws_service(&self) -> &Option<AwsService>
pub fn get_aws_service(&self) -> &Option<AwsService>
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of the service.
sourcepub fn federated_user(self, input: FederatedUser) -> Self
pub fn federated_user(self, input: FederatedUser) -> Self
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
sourcepub fn set_federated_user(self, input: Option<FederatedUser>) -> Self
pub fn set_federated_user(self, input: Option<FederatedUser>) -> Self
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
sourcepub fn get_federated_user(&self) -> &Option<FederatedUser>
pub fn get_federated_user(&self) -> &Option<FederatedUser>
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
sourcepub fn iam_user(self, input: IamUser) -> Self
pub fn iam_user(self, input: IamUser) -> Self
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
sourcepub fn set_iam_user(self, input: Option<IamUser>) -> Self
pub fn set_iam_user(self, input: Option<IamUser>) -> Self
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
sourcepub fn get_iam_user(&self) -> &Option<IamUser>
pub fn get_iam_user(&self) -> &Option<IamUser>
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
sourcepub fn root(self, input: UserIdentityRoot) -> Self
pub fn root(self, input: UserIdentityRoot) -> Self
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
sourcepub fn set_root(self, input: Option<UserIdentityRoot>) -> Self
pub fn set_root(self, input: Option<UserIdentityRoot>) -> Self
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
sourcepub fn get_root(&self) -> &Option<UserIdentityRoot>
pub fn get_root(&self) -> &Option<UserIdentityRoot>
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
sourcepub fn type(self, input: UserIdentityType) -> Self
pub fn type(self, input: UserIdentityType) -> Self
The type of entity that performed the action.
sourcepub fn set_type(self, input: Option<UserIdentityType>) -> Self
pub fn set_type(self, input: Option<UserIdentityType>) -> Self
The type of entity that performed the action.
sourcepub fn get_type(&self) -> &Option<UserIdentityType>
pub fn get_type(&self) -> &Option<UserIdentityType>
The type of entity that performed the action.
sourcepub fn build(self) -> UserIdentity
pub fn build(self) -> UserIdentity
Consumes the builder and constructs a UserIdentity
.
Trait Implementations§
source§impl Clone for UserIdentityBuilder
impl Clone for UserIdentityBuilder
source§fn clone(&self) -> UserIdentityBuilder
fn clone(&self) -> UserIdentityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UserIdentityBuilder
impl Debug for UserIdentityBuilder
source§impl Default for UserIdentityBuilder
impl Default for UserIdentityBuilder
source§fn default() -> UserIdentityBuilder
fn default() -> UserIdentityBuilder
source§impl PartialEq for UserIdentityBuilder
impl PartialEq for UserIdentityBuilder
source§fn eq(&self, other: &UserIdentityBuilder) -> bool
fn eq(&self, other: &UserIdentityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.