Interface CopyBackupRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CopyBackupRequest.Builder,,CopyBackupRequest> FSxRequest.Builder,SdkBuilder<CopyBackupRequest.Builder,,CopyBackupRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CopyBackupRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) Sets the value of the ClientRequestToken property for this object.A Boolean flag indicating whether tags from the source backup should be copied to the backup copy.Sets the value of the KmsKeyId property for this object.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sourceBackupId(String sourceBackupId) The ID of the source backup.sourceRegion(String sourceRegion) The source Amazon Web Services Region of the backup.tags(Collection<Tag> tags) Sets the value of the Tags property for this object.tags(Consumer<Tag.Builder>... tags) Sets the value of the Tags property for this object.Sets the value of the Tags property for this object.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, sdkFields
-
Method Details
-
clientRequestToken
Sets the value of the ClientRequestToken property for this object.- Parameters:
clientRequestToken- The new value for the ClientRequestToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBackupId
The ID of the source backup. Specifies the ID of the backup that's being copied.
- Parameters:
sourceBackupId- The ID of the source backup. Specifies the ID of the backup that's being copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceRegion
The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don't specify a Region,
SourceRegiondefaults to the Region where the request is sent from (in-Region copy).- Parameters:
sourceRegion- The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don't specify a Region,SourceRegiondefaults to the Region where the request is sent from (in-Region copy).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
Sets the value of the KmsKeyId property for this object.- Parameters:
kmsKeyId- The new value for the KmsKeyId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyTags
A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to
false.If you set
CopyTagstotrueand the source backup has existing tags, you can use theTagsparameter to create new tags, provided that the sum of the source backup tags and the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same key but different values), the tags created with theTagsparameter take precedence.- Parameters:
copyTags- A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults tofalse.If you set
CopyTagstotrueand the source backup has existing tags, you can use theTagsparameter to create new tags, provided that the sum of the source backup tags and the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same key but different values), the tags created with theTagsparameter take precedence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object. This is a convenience method that creates an instance of theTag.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:
-
overrideConfiguration
CopyBackupRequest.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
CopyBackupRequest.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.
-