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
-
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 Detail
-
clientToken
CreateImpersonationRoleRequest.Builder clientToken(String 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
CreateImpersonationRoleRequest.Builder organizationId(String 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
CreateImpersonationRoleRequest.Builder name(String 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
CreateImpersonationRoleRequest.Builder type(String 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:
ImpersonationRoleType,ImpersonationRoleType
-
type
CreateImpersonationRoleRequest.Builder type(ImpersonationRoleType 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:
ImpersonationRoleType,ImpersonationRoleType
-
description
CreateImpersonationRoleRequest.Builder description(String 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
CreateImpersonationRoleRequest.Builder rules(Collection<ImpersonationRule> 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
CreateImpersonationRoleRequest.Builder rules(ImpersonationRule... 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
CreateImpersonationRoleRequest.Builder rules(Consumer<ImpersonationRule.Builder>... 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 to#rules(List.) - 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:
#rules(java.util.Collection)
-
overrideConfiguration
CreateImpersonationRoleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateImpersonationRoleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-