Interface CreateLegalHoldResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BackupResponse.Builder,Buildable,CopyableBuilder<CreateLegalHoldResponse.Builder,CreateLegalHoldResponse>,SdkBuilder<CreateLegalHoldResponse.Builder,CreateLegalHoldResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateLegalHoldResponse
public static interface CreateLegalHoldResponse.Builder extends BackupResponse.Builder, SdkPojo, CopyableBuilder<CreateLegalHoldResponse.Builder,CreateLegalHoldResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateLegalHoldResponse.BuildercreationDate(Instant creationDate)Time in number format when legal hold was created.CreateLegalHoldResponse.Builderdescription(String description)This is the returned string description of the legal hold.CreateLegalHoldResponse.BuilderlegalHoldArn(String legalHoldArn)This is the ARN (Amazon Resource Number) of the created legal hold.CreateLegalHoldResponse.BuilderlegalHoldId(String legalHoldId)Legal hold ID returned for the specified legal hold on a recovery point.default CreateLegalHoldResponse.BuilderrecoveryPointSelection(Consumer<RecoveryPointSelection.Builder> recoveryPointSelection)This specifies criteria to assign a set of resources, such as resource types or backup vaults.CreateLegalHoldResponse.BuilderrecoveryPointSelection(RecoveryPointSelection recoveryPointSelection)This specifies criteria to assign a set of resources, such as resource types or backup vaults.CreateLegalHoldResponse.Builderstatus(String status)This displays the status of the legal hold returned after creating the legal hold.CreateLegalHoldResponse.Builderstatus(LegalHoldStatus status)This displays the status of the legal hold returned after creating the legal hold.CreateLegalHoldResponse.Buildertitle(String title)This is the string title of the legal hold returned after creating 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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
title
CreateLegalHoldResponse.Builder title(String title)
This is the string title of the legal hold returned after creating the legal hold.
- Parameters:
title- This is the string title of the legal hold returned after creating the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
CreateLegalHoldResponse.Builder status(String status)
This displays the status of the legal hold returned after creating the legal hold. Statuses can be
ACTIVE,PENDING,CANCELED,CANCELING, orFAILED.- Parameters:
status- This displays the status of the legal hold returned after creating the legal hold. Statuses can beACTIVE,PENDING,CANCELED,CANCELING, orFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LegalHoldStatus,LegalHoldStatus
-
status
CreateLegalHoldResponse.Builder status(LegalHoldStatus status)
This displays the status of the legal hold returned after creating the legal hold. Statuses can be
ACTIVE,PENDING,CANCELED,CANCELING, orFAILED.- Parameters:
status- This displays the status of the legal hold returned after creating the legal hold. Statuses can beACTIVE,PENDING,CANCELED,CANCELING, orFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LegalHoldStatus,LegalHoldStatus
-
description
CreateLegalHoldResponse.Builder description(String description)
This is the returned string description of the legal hold.
- Parameters:
description- This is the returned string description of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHoldId
CreateLegalHoldResponse.Builder legalHoldId(String legalHoldId)
Legal hold ID returned for the specified legal hold on a recovery point.
- Parameters:
legalHoldId- Legal hold ID returned for the specified legal hold on a recovery point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHoldArn
CreateLegalHoldResponse.Builder legalHoldArn(String legalHoldArn)
This is the ARN (Amazon Resource Number) of the created legal hold.
- Parameters:
legalHoldArn- This is the ARN (Amazon Resource Number) of the created legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
CreateLegalHoldResponse.Builder creationDate(Instant creationDate)
Time in number format when legal hold was created.
- Parameters:
creationDate- Time in number format when 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)
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
- Parameters:
recoveryPointSelection- This specifies criteria to assign 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)
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
This is a convenience method that creates an instance of theRecoveryPointSelection.Builderavoiding the need to create one manually viaRecoveryPointSelection.builder().When the
Consumercompletes,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:
recoveryPointSelection(RecoveryPointSelection)
-
-