Struct aws_sdk_ssoadmin::operation::create_account_assignment::builders::CreateAccountAssignmentInputBuilder
source · #[non_exhaustive]pub struct CreateAccountAssignmentInputBuilder { /* private fields */ }
Expand description
A builder for CreateAccountAssignmentInput
.
Implementations§
source§impl CreateAccountAssignmentInputBuilder
impl CreateAccountAssignmentInputBuilder
sourcepub fn instance_arn(self, input: impl Into<String>) -> Self
pub fn instance_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.
This field is required.sourcepub fn set_instance_arn(self, input: Option<String>) -> Self
pub fn set_instance_arn(self, input: Option<String>) -> Self
The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.
sourcepub fn get_instance_arn(&self) -> &Option<String>
pub fn get_instance_arn(&self) -> &Option<String>
The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.
sourcepub fn target_id(self, input: impl Into<String>) -> Self
pub fn target_id(self, input: impl Into<String>) -> Self
TargetID is an Amazon Web Services account identifier, (For example, 123456789012).
This field is required.sourcepub fn set_target_id(self, input: Option<String>) -> Self
pub fn set_target_id(self, input: Option<String>) -> Self
TargetID is an Amazon Web Services account identifier, (For example, 123456789012).
sourcepub fn get_target_id(&self) -> &Option<String>
pub fn get_target_id(&self) -> &Option<String>
TargetID is an Amazon Web Services account identifier, (For example, 123456789012).
sourcepub fn target_type(self, input: TargetType) -> Self
pub fn target_type(self, input: TargetType) -> Self
The entity type for which the assignment will be created.
This field is required.sourcepub fn set_target_type(self, input: Option<TargetType>) -> Self
pub fn set_target_type(self, input: Option<TargetType>) -> Self
The entity type for which the assignment will be created.
sourcepub fn get_target_type(&self) -> &Option<TargetType>
pub fn get_target_type(&self) -> &Option<TargetType>
The entity type for which the assignment will be created.
sourcepub fn permission_set_arn(self, input: impl Into<String>) -> Self
pub fn permission_set_arn(self, input: impl Into<String>) -> Self
The ARN of the permission set that the admin wants to grant the principal access to.
This field is required.sourcepub fn set_permission_set_arn(self, input: Option<String>) -> Self
pub fn set_permission_set_arn(self, input: Option<String>) -> Self
The ARN of the permission set that the admin wants to grant the principal access to.
sourcepub fn get_permission_set_arn(&self) -> &Option<String>
pub fn get_permission_set_arn(&self) -> &Option<String>
The ARN of the permission set that the admin wants to grant the principal access to.
sourcepub fn principal_type(self, input: PrincipalType) -> Self
pub fn principal_type(self, input: PrincipalType) -> Self
The entity type for which the assignment will be created.
This field is required.sourcepub fn set_principal_type(self, input: Option<PrincipalType>) -> Self
pub fn set_principal_type(self, input: Option<PrincipalType>) -> Self
The entity type for which the assignment will be created.
sourcepub fn get_principal_type(&self) -> &Option<PrincipalType>
pub fn get_principal_type(&self) -> &Option<PrincipalType>
The entity type for which the assignment will be created.
sourcepub fn principal_id(self, input: impl Into<String>) -> Self
pub fn principal_id(self, input: impl Into<String>) -> Self
An identifier for an object in IAM Identity Center, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the IAM Identity Center Identity Store API Reference.
This field is required.sourcepub fn set_principal_id(self, input: Option<String>) -> Self
pub fn set_principal_id(self, input: Option<String>) -> Self
An identifier for an object in IAM Identity Center, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the IAM Identity Center Identity Store API Reference.
sourcepub fn get_principal_id(&self) -> &Option<String>
pub fn get_principal_id(&self) -> &Option<String>
An identifier for an object in IAM Identity Center, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the IAM Identity Center Identity Store API Reference.
sourcepub fn build(self) -> Result<CreateAccountAssignmentInput, BuildError>
pub fn build(self) -> Result<CreateAccountAssignmentInput, BuildError>
Consumes the builder and constructs a CreateAccountAssignmentInput
.
source§impl CreateAccountAssignmentInputBuilder
impl CreateAccountAssignmentInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateAccountAssignmentOutput, SdkError<CreateAccountAssignmentError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateAccountAssignmentOutput, SdkError<CreateAccountAssignmentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateAccountAssignmentInputBuilder
impl Clone for CreateAccountAssignmentInputBuilder
source§fn clone(&self) -> CreateAccountAssignmentInputBuilder
fn clone(&self) -> CreateAccountAssignmentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateAccountAssignmentInputBuilder
impl Default for CreateAccountAssignmentInputBuilder
source§fn default() -> CreateAccountAssignmentInputBuilder
fn default() -> CreateAccountAssignmentInputBuilder
source§impl PartialEq for CreateAccountAssignmentInputBuilder
impl PartialEq for CreateAccountAssignmentInputBuilder
source§fn eq(&self, other: &CreateAccountAssignmentInputBuilder) -> bool
fn eq(&self, other: &CreateAccountAssignmentInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateAccountAssignmentInputBuilder
Auto Trait Implementations§
impl Freeze for CreateAccountAssignmentInputBuilder
impl RefUnwindSafe for CreateAccountAssignmentInputBuilder
impl Send for CreateAccountAssignmentInputBuilder
impl Sync for CreateAccountAssignmentInputBuilder
impl Unpin for CreateAccountAssignmentInputBuilder
impl UnwindSafe for CreateAccountAssignmentInputBuilder
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