Interface CreateBackupRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateBackupRequest.Builder,
,CreateBackupRequest> FSxRequest.Builder
,SdkBuilder<CreateBackupRequest.Builder,
,CreateBackupRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateBackupRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) (Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation.fileSystemId
(String fileSystemId) The ID of the file system to back up.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) (Optional) The tags to apply to the backup at backup creation.tags
(Consumer<Tag.Builder>... tags) (Optional) The tags to apply to the backup at backup creation.(Optional) The tags to apply to the backup at backup creation.(Optional) The ID of the FSx for ONTAP volume to back up.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.fsx.model.FSxRequest.Builder
build
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
-
fileSystemId
The ID of the file system to back up.
- Parameters:
fileSystemId
- The ID of the file system to back up.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
(Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
- Parameters:
clientRequestToken
- (Optional) A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
(Optional) The tags to apply to the backup at backup creation. The key value of the
Name
tag appears in the console as the backup name. If you have setCopyTagsToBackups
totrue
, and you specify one or more tags using theCreateBackup
operation, no existing file system tags are copied from the file system to the backup.- Parameters:
tags
- (Optional) The tags to apply to the backup at backup creation. The key value of theName
tag appears in the console as the backup name. If you have setCopyTagsToBackups
totrue
, and you specify one or more tags using theCreateBackup
operation, no existing file system tags are copied from the file system to the backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
(Optional) The tags to apply to the backup at backup creation. The key value of the
Name
tag appears in the console as the backup name. If you have setCopyTagsToBackups
totrue
, and you specify one or more tags using theCreateBackup
operation, no existing file system tags are copied from the file system to the backup.- Parameters:
tags
- (Optional) The tags to apply to the backup at backup creation. The key value of theName
tag appears in the console as the backup name. If you have setCopyTagsToBackups
totrue
, and you specify one or more tags using theCreateBackup
operation, no existing file system tags are copied from the file system to the backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
(Optional) The tags to apply to the backup at backup creation. The key value of the
This is a convenience method that creates an instance of theName
tag appears in the console as the backup name. If you have setCopyTagsToBackups
totrue
, and you specify one or more tags using theCreateBackup
operation, no existing file system tags are copied from the file system to the backup.Tag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
volumeId
(Optional) The ID of the FSx for ONTAP volume to back up.
- Parameters:
volumeId
- (Optional) The ID of the FSx for ONTAP volume to back up.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateBackupRequest.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
CreateBackupRequest.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.
-