Interface CrossRegionCopyConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CrossRegionCopyConfiguration.Builder,,CrossRegionCopyConfiguration> SdkBuilder<CrossRegionCopyConfiguration.Builder,,CrossRegionCopyConfiguration> SdkPojo
- Enclosing class:
CrossRegionCopyConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioncopyInterval(Consumer<CopyInterval.Builder> copyInterval) Specifies how often the policy copies snapshots to the destination Regions.copyInterval(CopyInterval copyInterval) Specifies how often the policy copies snapshots to the destination Regions.destinations(Collection<CrossRegionCopyTarget> destinations) The destination Regions for the snapshot copies, specified as a list ofCrossRegionCopyTarget.destinations(Consumer<CrossRegionCopyTarget.Builder>... destinations) The destination Regions for the snapshot copies, specified as a list ofCrossRegionCopyTarget.destinations(CrossRegionCopyTarget... destinations) The destination Regions for the snapshot copies, specified as a list ofCrossRegionCopyTarget.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
copyInterval
Specifies how often the policy copies snapshots to the destination Regions. The first cross-Region copy is created after the first snapshot of the volume completes in-region. After that, the policy copies cross-Region at the specified interval, each time copying the most recent completed snapshot of the volume.
- Parameters:
copyInterval- Specifies how often the policy copies snapshots to the destination Regions. The first cross-Region copy is created after the first snapshot of the volume completes in-region. After that, the policy copies cross-Region at the specified interval, each time copying the most recent completed snapshot of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyInterval
default CrossRegionCopyConfiguration.Builder copyInterval(Consumer<CopyInterval.Builder> copyInterval) Specifies how often the policy copies snapshots to the destination Regions. The first cross-Region copy is created after the first snapshot of the volume completes in-region. After that, the policy copies cross-Region at the specified interval, each time copying the most recent completed snapshot of the volume.
This is a convenience method that creates an instance of theCopyInterval.Builderavoiding the need to create one manually viaCopyInterval.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocopyInterval(CopyInterval).- Parameters:
copyInterval- a consumer that will call methods onCopyInterval.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinations
The destination Regions for the snapshot copies, specified as a list of
CrossRegionCopyTarget. You can specify up to 3 destinations. You can specify each Region only once, and you can't specify the Region in which the policy is created.- Parameters:
destinations- The destination Regions for the snapshot copies, specified as a list ofCrossRegionCopyTarget. You can specify up to 3 destinations. You can specify each Region only once, and you can't specify the Region in which the policy is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
The destination Regions for the snapshot copies, specified as a list of
CrossRegionCopyTarget. You can specify up to 3 destinations. You can specify each Region only once, and you can't specify the Region in which the policy is created.- Parameters:
destinations- The destination Regions for the snapshot copies, specified as a list ofCrossRegionCopyTarget. You can specify up to 3 destinations. You can specify each Region only once, and you can't specify the Region in which the policy is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
CrossRegionCopyConfiguration.Builder destinations(Consumer<CrossRegionCopyTarget.Builder>... destinations) The destination Regions for the snapshot copies, specified as a list of
This is a convenience method that creates an instance of theCrossRegionCopyTarget. You can specify up to 3 destinations. You can specify each Region only once, and you can't specify the Region in which the policy is created.CrossRegionCopyTarget.Builderavoiding the need to create one manually viaCrossRegionCopyTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestinations(List<CrossRegionCopyTarget>).- Parameters:
destinations- a consumer that will call methods onCrossRegionCopyTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-