Class CfnVolumePropsMixin.OriginSnapshotProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.fsx.CfnVolumePropsMixin.OriginSnapshotProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumePropsMixin.OriginSnapshotProperty>
- Enclosing interface:
CfnVolumePropsMixin.OriginSnapshotProperty
@Stability(Stable)
public static final class CfnVolumePropsMixin.OriginSnapshotProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumePropsMixin.OriginSnapshotProperty>
A builder for
CfnVolumePropsMixin.OriginSnapshotProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.copyStrategy(String copyStrategy) Sets the value ofCfnVolumePropsMixin.OriginSnapshotProperty.getCopyStrategy()snapshotArn(String snapshotArn) Sets the value ofCfnVolumePropsMixin.OriginSnapshotProperty.getSnapshotArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copyStrategy
@Stability(Stable) public CfnVolumePropsMixin.OriginSnapshotProperty.Builder copyStrategy(String copyStrategy) Sets the value ofCfnVolumePropsMixin.OriginSnapshotProperty.getCopyStrategy()- Parameters:
copyStrategy- Specifies the strategy used when copying data from the snapshot to the new volume.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
@Stability(Stable) public CfnVolumePropsMixin.OriginSnapshotProperty.Builder snapshotArn(String snapshotArn) Sets the value ofCfnVolumePropsMixin.OriginSnapshotProperty.getSnapshotArn()- Parameters:
snapshotArn- Specifies the snapshot to use when creating an OpenZFS volume from a snapshot.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumePropsMixin.OriginSnapshotProperty>- Returns:
- a new instance of
CfnVolumePropsMixin.OriginSnapshotProperty - Throws:
NullPointerException- if any required attribute was not provided
-