Interface GetDefaultRetentionPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetDefaultRetentionPolicyResponse.Builder,
,GetDefaultRetentionPolicyResponse> SdkBuilder<GetDefaultRetentionPolicyResponse.Builder,
,GetDefaultRetentionPolicyResponse> SdkPojo
,SdkResponse.Builder
,WorkMailResponse.Builder
- Enclosing class:
GetDefaultRetentionPolicyResponse
public static interface GetDefaultRetentionPolicyResponse.Builder
extends WorkMailResponse.Builder, SdkPojo, CopyableBuilder<GetDefaultRetentionPolicyResponse.Builder,GetDefaultRetentionPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The retention policy description.folderConfigurations
(Collection<FolderConfiguration> folderConfigurations) The retention policy folder configurations.folderConfigurations
(Consumer<FolderConfiguration.Builder>... folderConfigurations) The retention policy folder configurations.folderConfigurations
(FolderConfiguration... folderConfigurations) The retention policy folder configurations.The retention policy ID.The retention policy name.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
-
id
The retention policy ID.
- Parameters:
id
- The retention policy ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The retention policy name.
- Parameters:
name
- The retention policy name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The retention policy description.
- Parameters:
description
- The retention policy description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
folderConfigurations
GetDefaultRetentionPolicyResponse.Builder folderConfigurations(Collection<FolderConfiguration> folderConfigurations) The retention policy folder configurations.
- Parameters:
folderConfigurations
- The retention policy folder configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
folderConfigurations
GetDefaultRetentionPolicyResponse.Builder folderConfigurations(FolderConfiguration... folderConfigurations) The retention policy folder configurations.
- Parameters:
folderConfigurations
- The retention policy folder configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
folderConfigurations
GetDefaultRetentionPolicyResponse.Builder folderConfigurations(Consumer<FolderConfiguration.Builder>... folderConfigurations) The retention policy folder configurations.
This is a convenience method that creates an instance of theFolderConfiguration.Builder
avoiding the need to create one manually viaFolderConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofolderConfigurations(List<FolderConfiguration>)
.- Parameters:
folderConfigurations
- a consumer that will call methods onFolderConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-