Class CfnVolume.OriginSnapshotProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnVolume.OriginSnapshotProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolume.OriginSnapshotProperty>
- Enclosing interface:
CfnVolume.OriginSnapshotProperty
@Stability(Stable)
public static final class CfnVolume.OriginSnapshotProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolume.OriginSnapshotProperty>
A builder for
CfnVolume.OriginSnapshotProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.copyStrategy(String copyStrategy) Sets the value ofCfnVolume.OriginSnapshotProperty.getCopyStrategy()snapshotArn(String snapshotArn) Sets the value ofCfnVolume.OriginSnapshotProperty.getSnapshotArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copyStrategy
@Stability(Stable) public CfnVolume.OriginSnapshotProperty.Builder copyStrategy(String copyStrategy) Sets the value ofCfnVolume.OriginSnapshotProperty.getCopyStrategy()- Parameters:
copyStrategy- Specifies the strategy used when copying data from the snapshot to the new volume. This parameter is required.CLONE- The new volume references the data in the origin snapshot. Cloning a snapshot is faster than copying data from the snapshot to a new volume and doesn't consume disk throughput. However, the origin snapshot can't be deleted if there is a volume using its copied data.FULL_COPY- Copies all data from the snapshot to the new volume.
Specify this option to create the volume from a snapshot on another FSx for OpenZFS file system.
The
INCREMENTAL_COPYoption is only for updating an existing volume by using a snapshot from another FSx for OpenZFS file system. For more information, see CopySnapshotAndUpdateVolume .- Returns:
this
-
snapshotArn
Sets the value ofCfnVolume.OriginSnapshotProperty.getSnapshotArn()- Parameters:
snapshotArn- Specifies the snapshot to use when creating an OpenZFS volume from a snapshot. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolume.OriginSnapshotProperty>- Returns:
- a new instance of
CfnVolume.OriginSnapshotProperty - Throws:
NullPointerException- if any required attribute was not provided
-