Interface UpdateImpersonationRoleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateImpersonationRoleRequest.Builder,,UpdateImpersonationRoleRequest> SdkBuilder<UpdateImpersonationRoleRequest.Builder,,UpdateImpersonationRoleRequest> SdkPojo,SdkRequest.Builder,WorkMailRequest.Builder
- Enclosing class:
UpdateImpersonationRoleRequest
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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaImpersonationRule.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-