Interface CreateLegalHoldRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BackupRequest.Builder
,Buildable
,CopyableBuilder<CreateLegalHoldRequest.Builder,
,CreateLegalHoldRequest> SdkBuilder<CreateLegalHoldRequest.Builder,
,CreateLegalHoldRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateLegalHoldRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) This is the string description of the legal hold.idempotencyToken
(String idempotencyToken) This is a user-chosen string used to distinguish between otherwise identical calls.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateLegalHoldRequest.Builder
recoveryPointSelection
(Consumer<RecoveryPointSelection.Builder> recoveryPointSelection) This specifies criteria to assign a set of resources, such as resource types or backup vaults.recoveryPointSelection
(RecoveryPointSelection recoveryPointSelection) This specifies criteria to assign a set of resources, such as resource types or backup vaults.Optional tags to include.This is the string title of the legal hold.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.backup.model.BackupRequest.Builder
build
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
-
Method Details
-
title
This is the string title of the legal hold.
- Parameters:
title
- This is the string title of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
This is the string description of the legal hold.
- Parameters:
description
- This is the string description of the legal hold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idempotencyToken
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
- Parameters:
idempotencyToken
- This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recoveryPointSelection
CreateLegalHoldRequest.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 CreateLegalHoldRequest.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.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:
-
tags
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
- Parameters:
tags
- Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateLegalHoldRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateLegalHoldRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-