Interface CreateLegalHoldResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BackupResponse.Builder
,Buildable
,CopyableBuilder<CreateLegalHoldResponse.Builder,
,CreateLegalHoldResponse> SdkBuilder<CreateLegalHoldResponse.Builder,
,CreateLegalHoldResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateLegalHoldResponse
@Mutable
@NotThreadSafe
public static interface CreateLegalHoldResponse.Builder
extends BackupResponse.Builder, SdkPojo, CopyableBuilder<CreateLegalHoldResponse.Builder,CreateLegalHoldResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncreationDate
(Instant creationDate) The time when the legal hold was created.description
(String description) The description of the legal hold.legalHoldArn
(String legalHoldArn) The Amazon Resource Name (ARN) of the legal hold.legalHoldId
(String legalHoldId) The ID of the legal hold.default CreateLegalHoldResponse.Builder
recoveryPointSelection
(Consumer<RecoveryPointSelection.Builder> recoveryPointSelection) The criteria to assign to a set of resources, such as resource types or backup vaults.recoveryPointSelection
(RecoveryPointSelection recoveryPointSelection) The criteria to assign to a set of resources, such as resource types or backup vaults.The status of the legal hold.status
(LegalHoldStatus status) The status of the legal hold.The title of the legal hold.Methods inherited from interface software.amazon.awssdk.services.backup.model.BackupResponse.Builder
build, responseMetadata, responseMetadata
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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
title
The title of the legal hold.
- Parameters:
title
- The title of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the legal hold.
- Parameters:
status
- The status of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the legal hold.
- Parameters:
status
- The status of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description of the legal hold.
- Parameters:
description
- The description of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHoldId
The ID of the legal hold.
- Parameters:
legalHoldId
- The ID of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHoldArn
The Amazon Resource Name (ARN) of the legal hold.
- Parameters:
legalHoldArn
- The Amazon Resource Name (ARN) of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
The time when the legal hold was created.
- Parameters:
creationDate
- The time when the legal hold was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recoveryPointSelection
CreateLegalHoldResponse.Builder recoveryPointSelection(RecoveryPointSelection recoveryPointSelection) The criteria to assign to a set of resources, such as resource types or backup vaults.
- Parameters:
recoveryPointSelection
- The criteria to assign to a set of resources, such as resource types or backup vaults.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recoveryPointSelection
default CreateLegalHoldResponse.Builder recoveryPointSelection(Consumer<RecoveryPointSelection.Builder> recoveryPointSelection) The criteria to assign to a set of resources, such as resource types or backup vaults.
This is a convenience method that creates an instance of theRecoveryPointSelection.Builder
avoiding the need to create one manually viaRecoveryPointSelection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecoveryPointSelection(RecoveryPointSelection)
.- Parameters:
recoveryPointSelection
- a consumer that will call methods onRecoveryPointSelection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-