Class CfnSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnSnapshotProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotProps>
- Enclosing interface:
CfnSnapshotProps
@Stability(Stable)
public static final class CfnSnapshotProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotProps>
A builder for
CfnSnapshotProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSnapshotProps.getName()Sets the value ofCfnSnapshotProps.getTags()Sets the value ofCfnSnapshotProps.getVolumeId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSnapshotProps.getName()- Parameters:
name- The name of the snapshot. This parameter is required.- Returns:
this
-
volumeId
Sets the value ofCfnSnapshotProps.getVolumeId()- Parameters:
volumeId- The ID of the volume that the snapshot is of. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnSnapshotProps.getTags()- Parameters:
tags- A list ofTagvalues, with a maximum of 50 elements.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotProps>- Returns:
- a new instance of
CfnSnapshotProps - Throws:
NullPointerException- if any required attribute was not provided
-