Interface UpdateImpersonationRoleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateImpersonationRoleRequest.Builder,
,UpdateImpersonationRoleRequest> SdkBuilder<UpdateImpersonationRoleRequest.Builder,
,UpdateImpersonationRoleRequest> SdkPojo
,SdkRequest.Builder
,WorkMailRequest.Builder
- Enclosing class:
UpdateImpersonationRoleRequest
@Mutable
@NotThreadSafe
public static interface UpdateImpersonationRoleRequest.Builder
extends WorkMailRequest.Builder, SdkPojo, CopyableBuilder<UpdateImpersonationRoleRequest.Builder,UpdateImpersonationRoleRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The updated impersonation role description.impersonationRoleId
(String impersonationRoleId) The ID of the impersonation role to update.The updated impersonation role name.organizationId
(String organizationId) The WorkMail organization that contains the impersonation role to update.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rules
(Collection<ImpersonationRule> rules) The updated list of rules.rules
(Consumer<ImpersonationRule.Builder>... rules) The updated list of rules.rules
(ImpersonationRule... rules) The updated list of rules.The updated impersonation role type.type
(ImpersonationRoleType type) The updated impersonation role type.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.services.workmail.model.WorkMailRequest.Builder
build
-
Method Details
-
organizationId
The WorkMail organization that contains the impersonation role to update.
- Parameters:
organizationId
- The WorkMail organization that contains the impersonation role to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impersonationRoleId
The ID of the impersonation role to update.
- Parameters:
impersonationRoleId
- The ID of the impersonation role to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The updated impersonation role name.
- Parameters:
name
- The updated impersonation role name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The updated impersonation role type.
- Parameters:
type
- The updated impersonation role type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The updated impersonation role type.
- Parameters:
type
- The updated impersonation role type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The updated impersonation role description.
- Parameters:
description
- The updated impersonation role description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The updated list of rules.
- Parameters:
rules
- The updated list of rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The updated list of rules.
- Parameters:
rules
- The updated list of rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The updated list of rules.
This is a convenience method that creates an instance of theImpersonationRule.Builder
avoiding the need to create one manually viaImpersonationRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<ImpersonationRule>)
.- Parameters:
rules
- a consumer that will call methods onImpersonationRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateImpersonationRoleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateImpersonationRoleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-