Interface CopyBackupToRegionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudHsmV2Response.Builder
,CopyableBuilder<CopyBackupToRegionResponse.Builder,
,CopyBackupToRegionResponse> SdkBuilder<CopyBackupToRegionResponse.Builder,
,CopyBackupToRegionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CopyBackupToRegionResponse
-
Method Summary
Modifier and TypeMethodDescriptiondestinationBackup
(Consumer<DestinationBackup.Builder> destinationBackup) Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region.destinationBackup
(DestinationBackup destinationBackup) Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region.Methods inherited from interface software.amazon.awssdk.services.cloudhsmv2.model.CloudHsmV2Response.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
destinationBackup
Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.
You will need to use the
sourceBackupID
returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.- Parameters:
destinationBackup
- Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.You will need to use the
sourceBackupID
returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationBackup
default CopyBackupToRegionResponse.Builder destinationBackup(Consumer<DestinationBackup.Builder> destinationBackup) Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.
You will need to use the
This is a convenience method that creates an instance of thesourceBackupID
returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.DestinationBackup.Builder
avoiding the need to create one manually viaDestinationBackup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestinationBackup(DestinationBackup)
.- Parameters:
destinationBackup
- a consumer that will call methods onDestinationBackup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-