Interface CreateImpersonationRoleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateImpersonationRoleRequest.Builder,,CreateImpersonationRoleRequest> SdkBuilder<CreateImpersonationRoleRequest.Builder,,CreateImpersonationRoleRequest> SdkPojo,SdkRequest.Builder,WorkMailRequest.Builder
- Enclosing class:
CreateImpersonationRoleRequest
public static interface CreateImpersonationRoleRequest.Builder
extends WorkMailRequest.Builder, SdkPojo, CopyableBuilder<CreateImpersonationRoleRequest.Builder,CreateImpersonationRoleRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) The idempotency token for the client request.description(String description) The description of the new impersonation role.The name of the new impersonation role.organizationId(String organizationId) The WorkMail organization to create the new impersonation role within.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 list of rules for the impersonation role.rules(Consumer<ImpersonationRule.Builder>... rules) The list of rules for the impersonation role.rules(ImpersonationRule... rules) The list of rules for the impersonation role.The impersonation role's type.type(ImpersonationRoleType type) The impersonation role's 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
-
clientToken
The idempotency token for the client request.
- Parameters:
clientToken- The idempotency token for the client request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationId
The WorkMail organization to create the new impersonation role within.
- Parameters:
organizationId- The WorkMail organization to create the new impersonation role within.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the new impersonation role.
- Parameters:
name- The name of the new impersonation role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The impersonation role's type. The available impersonation role types are
READ_ONLYorFULL_ACCESS.- Parameters:
type- The impersonation role's type. The available impersonation role types areREAD_ONLYorFULL_ACCESS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The impersonation role's type. The available impersonation role types are
READ_ONLYorFULL_ACCESS.- Parameters:
type- The impersonation role's type. The available impersonation role types areREAD_ONLYorFULL_ACCESS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description of the new impersonation role.
- Parameters:
description- The description of the new impersonation role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The list of rules for the impersonation role.
- Parameters:
rules- The list of rules for the impersonation role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The list of rules for the impersonation role.
- Parameters:
rules- The list of rules for the impersonation role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The list of rules for the impersonation role.
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
CreateImpersonationRoleRequest.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
CreateImpersonationRoleRequest.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.
-