Struct aws_sdk_macie2::types::builders::AssumedRoleBuilder
source · #[non_exhaustive]pub struct AssumedRoleBuilder { /* private fields */ }Expand description
A builder for AssumedRole.
Implementations§
source§impl AssumedRoleBuilder
impl AssumedRoleBuilder
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The Amazon Web Services access key ID that identifies the credentials.
sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The Amazon Web Services access key ID that identifies the credentials.
sourcepub fn get_access_key_id(&self) -> &Option<String>
pub fn get_access_key_id(&self) -> &Option<String>
The Amazon Web Services access key ID that identifies the credentials.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
sourcepub fn principal_id(self, input: impl Into<String>) -> Self
pub fn principal_id(self, input: impl Into<String>) -> Self
The unique identifier for the entity that was used to get the credentials.
sourcepub fn set_principal_id(self, input: Option<String>) -> Self
pub fn set_principal_id(self, input: Option<String>) -> Self
The unique identifier for the entity that was used to get the credentials.
sourcepub fn get_principal_id(&self) -> &Option<String>
pub fn get_principal_id(&self) -> &Option<String>
The unique identifier for the entity that was used to get the credentials.
sourcepub fn session_context(self, input: SessionContext) -> Self
pub fn session_context(self, input: SessionContext) -> Self
The details of the session that was created for the credentials, including the entity that issued the session.
sourcepub fn set_session_context(self, input: Option<SessionContext>) -> Self
pub fn set_session_context(self, input: Option<SessionContext>) -> Self
The details of the session that was created for the credentials, including the entity that issued the session.
sourcepub fn get_session_context(&self) -> &Option<SessionContext>
pub fn get_session_context(&self) -> &Option<SessionContext>
The details of the session that was created for the credentials, including the entity that issued the session.
sourcepub fn build(self) -> AssumedRole
pub fn build(self) -> AssumedRole
Consumes the builder and constructs a AssumedRole.
Trait Implementations§
source§impl Clone for AssumedRoleBuilder
impl Clone for AssumedRoleBuilder
source§fn clone(&self) -> AssumedRoleBuilder
fn clone(&self) -> AssumedRoleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AssumedRoleBuilder
impl Debug for AssumedRoleBuilder
source§impl Default for AssumedRoleBuilder
impl Default for AssumedRoleBuilder
source§fn default() -> AssumedRoleBuilder
fn default() -> AssumedRoleBuilder
source§impl PartialEq for AssumedRoleBuilder
impl PartialEq for AssumedRoleBuilder
source§fn eq(&self, other: &AssumedRoleBuilder) -> bool
fn eq(&self, other: &AssumedRoleBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssumedRoleBuilder
Auto Trait Implementations§
impl Freeze for AssumedRoleBuilder
impl RefUnwindSafe for AssumedRoleBuilder
impl Send for AssumedRoleBuilder
impl Sync for AssumedRoleBuilder
impl Unpin for AssumedRoleBuilder
impl UnwindSafe for AssumedRoleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more