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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.fsx.model.FSxRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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
Nametag appears in the console as the backup name. If you have setCopyTagsToBackupstotrue, and you specify one or more tags using theCreateBackupoperation, 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 theNametag appears in the console as the backup name. If you have setCopyTagsToBackupstotrue, and you specify one or more tags using theCreateBackupoperation, 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
Nametag appears in the console as the backup name. If you have setCopyTagsToBackupstotrue, and you specify one or more tags using theCreateBackupoperation, 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 theNametag appears in the console as the backup name. If you have setCopyTagsToBackupstotrue, and you specify one or more tags using theCreateBackupoperation, 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 theNametag appears in the console as the backup name. If you have setCopyTagsToBackupstotrue, and you specify one or more tags using theCreateBackupoperation, no existing file system tags are copied from the file system to the backup.Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-