Struct aws_sdk_workmail::operation::get_impersonation_role_effect::builders::GetImpersonationRoleEffectInputBuilder
source · #[non_exhaustive]pub struct GetImpersonationRoleEffectInputBuilder { /* private fields */ }
Expand description
A builder for GetImpersonationRoleEffectInput
.
Implementations§
source§impl GetImpersonationRoleEffectInputBuilder
impl GetImpersonationRoleEffectInputBuilder
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The WorkMail organization where the impersonation role is defined.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The WorkMail organization where the impersonation role is defined.
sourcepub fn get_organization_id(&self) -> &Option<String>
pub fn get_organization_id(&self) -> &Option<String>
The WorkMail organization where the impersonation role is defined.
sourcepub fn impersonation_role_id(self, input: impl Into<String>) -> Self
pub fn impersonation_role_id(self, input: impl Into<String>) -> Self
The impersonation role ID to test.
sourcepub fn set_impersonation_role_id(self, input: Option<String>) -> Self
pub fn set_impersonation_role_id(self, input: Option<String>) -> Self
The impersonation role ID to test.
sourcepub fn get_impersonation_role_id(&self) -> &Option<String>
pub fn get_impersonation_role_id(&self) -> &Option<String>
The impersonation role ID to test.
sourcepub fn target_user(self, input: impl Into<String>) -> Self
pub fn target_user(self, input: impl Into<String>) -> Self
The WorkMail organization user chosen to test the impersonation role. The following identity formats are available:
-
User ID:
12345678-1234-1234-1234-123456789012
orS-1-1-12-1234567890-123456789-123456789-1234
-
Email address:
user@domain.tld
-
User name:
user
sourcepub fn set_target_user(self, input: Option<String>) -> Self
pub fn set_target_user(self, input: Option<String>) -> Self
The WorkMail organization user chosen to test the impersonation role. The following identity formats are available:
-
User ID:
12345678-1234-1234-1234-123456789012
orS-1-1-12-1234567890-123456789-123456789-1234
-
Email address:
user@domain.tld
-
User name:
user
sourcepub fn get_target_user(&self) -> &Option<String>
pub fn get_target_user(&self) -> &Option<String>
The WorkMail organization user chosen to test the impersonation role. The following identity formats are available:
-
User ID:
12345678-1234-1234-1234-123456789012
orS-1-1-12-1234567890-123456789-123456789-1234
-
Email address:
user@domain.tld
-
User name:
user
sourcepub fn build(self) -> Result<GetImpersonationRoleEffectInput, BuildError>
pub fn build(self) -> Result<GetImpersonationRoleEffectInput, BuildError>
Consumes the builder and constructs a GetImpersonationRoleEffectInput
.
source§impl GetImpersonationRoleEffectInputBuilder
impl GetImpersonationRoleEffectInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetImpersonationRoleEffectOutput, SdkError<GetImpersonationRoleEffectError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetImpersonationRoleEffectOutput, SdkError<GetImpersonationRoleEffectError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetImpersonationRoleEffectInputBuilder
impl Clone for GetImpersonationRoleEffectInputBuilder
source§fn clone(&self) -> GetImpersonationRoleEffectInputBuilder
fn clone(&self) -> GetImpersonationRoleEffectInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetImpersonationRoleEffectInputBuilder
impl Default for GetImpersonationRoleEffectInputBuilder
source§fn default() -> GetImpersonationRoleEffectInputBuilder
fn default() -> GetImpersonationRoleEffectInputBuilder
source§impl PartialEq<GetImpersonationRoleEffectInputBuilder> for GetImpersonationRoleEffectInputBuilder
impl PartialEq<GetImpersonationRoleEffectInputBuilder> for GetImpersonationRoleEffectInputBuilder
source§fn eq(&self, other: &GetImpersonationRoleEffectInputBuilder) -> bool
fn eq(&self, other: &GetImpersonationRoleEffectInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.