public static final class CfnSnapshotProps.Builder
extends java.lang.Object
CfnSnapshotProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnSnapshotProps |
build()
Builds the configured instance.
|
CfnSnapshotProps.Builder |
name(java.lang.String name)
Sets the value of
CfnSnapshotProps.getName() |
CfnSnapshotProps.Builder |
tags(java.util.List<? extends CfnTag> tags)
Sets the value of
CfnSnapshotProps.getTags() |
CfnSnapshotProps.Builder |
volumeId(java.lang.String volumeId)
Sets the value of
CfnSnapshotProps.getVolumeId() |
public CfnSnapshotProps.Builder name(java.lang.String name)
CfnSnapshotProps.getName()
name
- The name of the snapshot. This parameter is required.this
public CfnSnapshotProps.Builder volumeId(java.lang.String volumeId)
CfnSnapshotProps.getVolumeId()
volumeId
- The ID of the volume that the snapshot is of. This parameter is required.this
public CfnSnapshotProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnSnapshotProps.getTags()
tags
- An array of key-value pairs to apply to this resource.
For more information, see Tag .this
public CfnSnapshotProps build()
CfnSnapshotProps
java.lang.NullPointerException
- if any required attribute was not provided