Struct aws_sdk_macie2::model::user_identity::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for UserIdentity
Implementations
sourceimpl Builder
impl Builder
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 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 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 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 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 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 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 build(self) -> UserIdentity
pub fn build(self) -> UserIdentity
Consumes the builder and constructs a UserIdentity
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more