public static final class CfnVolumeProps.Builder
extends java.lang.Object
CfnVolumeProps
Constructor and Description |
---|
Builder() |
public CfnVolumeProps.Builder name(java.lang.String name)
CfnVolumeProps.getName()
name
- The name of the volume. This parameter is required.this
public CfnVolumeProps.Builder backupId(java.lang.String backupId)
CfnVolumeProps.getBackupId()
backupId
- Specifies the ID of the volume backup to use to create a new volume.this
public CfnVolumeProps.Builder ontapConfiguration(IResolvable ontapConfiguration)
CfnVolumeProps.getOntapConfiguration()
ontapConfiguration
- The configuration of an Amazon FSx for NetApp ONTAP volume.this
public CfnVolumeProps.Builder ontapConfiguration(CfnVolume.OntapConfigurationProperty ontapConfiguration)
CfnVolumeProps.getOntapConfiguration()
ontapConfiguration
- The configuration of an Amazon FSx for NetApp ONTAP volume.this
public CfnVolumeProps.Builder openZfsConfiguration(IResolvable openZfsConfiguration)
CfnVolumeProps.getOpenZfsConfiguration()
openZfsConfiguration
- The configuration of an Amazon FSx for OpenZFS volume.this
public CfnVolumeProps.Builder openZfsConfiguration(CfnVolume.OpenZFSConfigurationProperty openZfsConfiguration)
CfnVolumeProps.getOpenZfsConfiguration()
openZfsConfiguration
- The configuration of an Amazon FSx for OpenZFS volume.this
public CfnVolumeProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnVolumeProps.getTags()
tags
- An array of key-value pairs to apply to this resource.
For more information, see Tag .this
public CfnVolumeProps.Builder volumeType(java.lang.String volumeType)
CfnVolumeProps.getVolumeType()
volumeType
- The type of the volume.this
public CfnVolumeProps build()
CfnVolumeProps
java.lang.NullPointerException
- if any required attribute was not provided