Interface GetImpersonationRoleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetImpersonationRoleResponse.Builder,
,GetImpersonationRoleResponse> SdkBuilder<GetImpersonationRoleResponse.Builder,
,GetImpersonationRoleResponse> SdkPojo
,SdkResponse.Builder
,WorkMailResponse.Builder
- Enclosing class:
GetImpersonationRoleResponse
public static interface GetImpersonationRoleResponse.Builder
extends WorkMailResponse.Builder, SdkPojo, CopyableBuilder<GetImpersonationRoleResponse.Builder,GetImpersonationRoleResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondateCreated
(Instant dateCreated) The date when the impersonation role was created.dateModified
(Instant dateModified) The date when the impersonation role was last modified.description
(String description) The impersonation role description.impersonationRoleId
(String impersonationRoleId) The impersonation role ID.The impersonation role name.rules
(Collection<ImpersonationRule> rules) The list of rules for the given impersonation role.rules
(Consumer<ImpersonationRule.Builder>... rules) The list of rules for the given impersonation role.rules
(ImpersonationRule... rules) The list of rules for the given impersonation role.The impersonation role type.type
(ImpersonationRoleType type) The impersonation role type.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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.workmail.model.WorkMailResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
impersonationRoleId
The impersonation role ID.
- Parameters:
impersonationRoleId
- The impersonation role ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The impersonation role name.
- Parameters:
name
- The impersonation role name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The impersonation role type.
- Parameters:
type
- The impersonation role type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The impersonation role type.
- Parameters:
type
- The impersonation role type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The impersonation role description.
- Parameters:
description
- The impersonation role description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The list of rules for the given impersonation role.
- Parameters:
rules
- The list of rules for the given impersonation role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The list of rules for the given impersonation role.
- Parameters:
rules
- The list of rules for the given impersonation role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The list of rules for the given 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:
-
dateCreated
The date when the impersonation role was created.
- Parameters:
dateCreated
- The date when the impersonation role was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateModified
The date when the impersonation role was last modified.
- Parameters:
dateModified
- The date when the impersonation role was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-