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
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, sdkFields
Methods 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_ONLY
orFULL_ACCESS
.- Parameters:
type
- The impersonation role's type. The available impersonation role types areREAD_ONLY
orFULL_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_ONLY
orFULL_ACCESS
.- Parameters:
type
- The impersonation role's type. The available impersonation role types areREAD_ONLY
orFULL_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.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
CreateImpersonationRoleRequest.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
CreateImpersonationRoleRequest.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.
-