Struct aws_sdk_emr::operation::create_studio_session_mapping::builders::CreateStudioSessionMappingInputBuilder
source · #[non_exhaustive]pub struct CreateStudioSessionMappingInputBuilder { /* private fields */ }
Expand description
A builder for CreateStudioSessionMappingInput
.
Implementations§
source§impl CreateStudioSessionMappingInputBuilder
impl CreateStudioSessionMappingInputBuilder
sourcepub fn studio_id(self, input: impl Into<String>) -> Self
pub fn studio_id(self, input: impl Into<String>) -> Self
The ID of the Amazon EMR Studio to which the user or group will be mapped.
This field is required.sourcepub fn set_studio_id(self, input: Option<String>) -> Self
pub fn set_studio_id(self, input: Option<String>) -> Self
The ID of the Amazon EMR Studio to which the user or group will be mapped.
sourcepub fn get_studio_id(&self) -> &Option<String>
pub fn get_studio_id(&self) -> &Option<String>
The ID of the Amazon EMR Studio to which the user or group will be mapped.
sourcepub fn identity_id(self, input: impl Into<String>) -> Self
pub fn identity_id(self, input: impl Into<String>) -> Self
sourcepub fn set_identity_id(self, input: Option<String>) -> Self
pub fn set_identity_id(self, input: Option<String>) -> Self
sourcepub fn get_identity_id(&self) -> &Option<String>
pub fn get_identity_id(&self) -> &Option<String>
sourcepub fn identity_name(self, input: impl Into<String>) -> Self
pub fn identity_name(self, input: impl Into<String>) -> Self
The name of the user or group. For more information, see UserName and DisplayName in the IAM Identity Center Identity Store API Reference. Either IdentityName
or IdentityId
must be specified, but not both.
sourcepub fn set_identity_name(self, input: Option<String>) -> Self
pub fn set_identity_name(self, input: Option<String>) -> Self
The name of the user or group. For more information, see UserName and DisplayName in the IAM Identity Center Identity Store API Reference. Either IdentityName
or IdentityId
must be specified, but not both.
sourcepub fn get_identity_name(&self) -> &Option<String>
pub fn get_identity_name(&self) -> &Option<String>
The name of the user or group. For more information, see UserName and DisplayName in the IAM Identity Center Identity Store API Reference. Either IdentityName
or IdentityId
must be specified, but not both.
sourcepub fn identity_type(self, input: IdentityType) -> Self
pub fn identity_type(self, input: IdentityType) -> Self
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
This field is required.sourcepub fn set_identity_type(self, input: Option<IdentityType>) -> Self
pub fn set_identity_type(self, input: Option<IdentityType>) -> Self
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
sourcepub fn get_identity_type(&self) -> &Option<IdentityType>
pub fn get_identity_type(&self) -> &Option<IdentityType>
Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
sourcepub fn session_policy_arn(self, input: impl Into<String>) -> Self
pub fn session_policy_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. You should specify the ARN for the session policy that you want to apply, not the ARN of your user role. For more information, see Create an Amazon EMR Studio User Role with Session Policies.
This field is required.sourcepub fn set_session_policy_arn(self, input: Option<String>) -> Self
pub fn set_session_policy_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. You should specify the ARN for the session policy that you want to apply, not the ARN of your user role. For more information, see Create an Amazon EMR Studio User Role with Session Policies.
sourcepub fn get_session_policy_arn(&self) -> &Option<String>
pub fn get_session_policy_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group. You should specify the ARN for the session policy that you want to apply, not the ARN of your user role. For more information, see Create an Amazon EMR Studio User Role with Session Policies.
sourcepub fn build(self) -> Result<CreateStudioSessionMappingInput, BuildError>
pub fn build(self) -> Result<CreateStudioSessionMappingInput, BuildError>
Consumes the builder and constructs a CreateStudioSessionMappingInput
.
source§impl CreateStudioSessionMappingInputBuilder
impl CreateStudioSessionMappingInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateStudioSessionMappingOutput, SdkError<CreateStudioSessionMappingError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateStudioSessionMappingOutput, SdkError<CreateStudioSessionMappingError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateStudioSessionMappingInputBuilder
impl Clone for CreateStudioSessionMappingInputBuilder
source§fn clone(&self) -> CreateStudioSessionMappingInputBuilder
fn clone(&self) -> CreateStudioSessionMappingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateStudioSessionMappingInputBuilder
impl Default for CreateStudioSessionMappingInputBuilder
source§fn default() -> CreateStudioSessionMappingInputBuilder
fn default() -> CreateStudioSessionMappingInputBuilder
source§impl PartialEq for CreateStudioSessionMappingInputBuilder
impl PartialEq for CreateStudioSessionMappingInputBuilder
source§fn eq(&self, other: &CreateStudioSessionMappingInputBuilder) -> bool
fn eq(&self, other: &CreateStudioSessionMappingInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.