Class OntapVolumeConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.fsx.model.OntapVolumeConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OntapVolumeConfiguration.Builder,OntapVolumeConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class OntapVolumeConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OntapVolumeConfiguration.Builder,OntapVolumeConfiguration>
The configuration of an Amazon FSx for NetApp ONTAP volume.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOntapVolumeConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregateConfigurationaggregateConfiguration()This structure specifies configuration options for a volume’s storage aggregate or aggregates.static OntapVolumeConfiguration.Builderbuilder()BooleancopyTagsToBackups()A boolean flag indicating whether tags for the volume should be copied to backups.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FlexCacheEndpointTypeflexCacheEndpointType()Specifies the FlexCache endpoint type of the volume.StringflexCacheEndpointTypeAsString()Specifies the FlexCache endpoint type of the volume.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringjunctionPath()Specifies the directory that network-attached storage (NAS) clients use to mount the volume, along with the storage virtual machine (SVM) Domain Name System (DNS) name or IP address.OntapVolumeTypeontapVolumeType()Specifies the type of volume.StringontapVolumeTypeAsString()Specifies the type of volume.List<SdkField<?>>sdkFields()SecurityStylesecurityStyle()The security style for the volume, which can beUNIX,NTFS, orMIXED.StringsecurityStyleAsString()The security style for the volume, which can beUNIX,NTFS, orMIXED.static Class<? extends OntapVolumeConfiguration.Builder>serializableBuilderClass()LongsizeInBytes()The configured size of the volume, in bytes.IntegersizeInMegabytes()The configured size of the volume, in megabytes (MBs).SnaplockConfigurationsnaplockConfiguration()The SnapLock configuration object for an FSx for ONTAP SnapLock volume.StringsnapshotPolicy()Specifies the snapshot policy for the volume.BooleanstorageEfficiencyEnabled()The volume's storage efficiency setting.StringstorageVirtualMachineId()The ID of the volume's storage virtual machine.BooleanstorageVirtualMachineRoot()A Boolean flag indicating whether this volume is the root volume for its storage virtual machine (SVM).TieringPolicytieringPolicy()The volume'sTieringPolicysetting.OntapVolumeConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringuuid()The volume's universally unique identifier (UUID).VolumeStylevolumeStyle()Use to specify the style of an ONTAP volume.StringvolumeStyleAsString()Use to specify the style of an ONTAP volume.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
flexCacheEndpointType
public final FlexCacheEndpointType flexCacheEndpointType()
Specifies the FlexCache endpoint type of the volume. Valid values are the following:
-
NONEspecifies that the volume doesn't have a FlexCache configuration.NONEis the default. -
ORIGINspecifies that the volume is the origin volume for a FlexCache volume. -
CACHEspecifies that the volume is a FlexCache volume.
If the service returns an enum value that is not available in the current SDK version,
flexCacheEndpointTypewill returnFlexCacheEndpointType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromflexCacheEndpointTypeAsString().- Returns:
- Specifies the FlexCache endpoint type of the volume. Valid values are the following:
-
NONEspecifies that the volume doesn't have a FlexCache configuration.NONEis the default. -
ORIGINspecifies that the volume is the origin volume for a FlexCache volume. -
CACHEspecifies that the volume is a FlexCache volume.
-
- See Also:
FlexCacheEndpointType
-
-
flexCacheEndpointTypeAsString
public final String flexCacheEndpointTypeAsString()
Specifies the FlexCache endpoint type of the volume. Valid values are the following:
-
NONEspecifies that the volume doesn't have a FlexCache configuration.NONEis the default. -
ORIGINspecifies that the volume is the origin volume for a FlexCache volume. -
CACHEspecifies that the volume is a FlexCache volume.
If the service returns an enum value that is not available in the current SDK version,
flexCacheEndpointTypewill returnFlexCacheEndpointType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromflexCacheEndpointTypeAsString().- Returns:
- Specifies the FlexCache endpoint type of the volume. Valid values are the following:
-
NONEspecifies that the volume doesn't have a FlexCache configuration.NONEis the default. -
ORIGINspecifies that the volume is the origin volume for a FlexCache volume. -
CACHEspecifies that the volume is a FlexCache volume.
-
- See Also:
FlexCacheEndpointType
-
-
junctionPath
public final String junctionPath()
Specifies the directory that network-attached storage (NAS) clients use to mount the volume, along with the storage virtual machine (SVM) Domain Name System (DNS) name or IP address. You can create a
JunctionPathdirectly below a parent volume junction or on a directory within a volume. AJunctionPathfor a volume namedvol3might be/vol1/vol2/vol3, or/vol1/dir2/vol3, or even/dir1/dir2/vol3.- Returns:
- Specifies the directory that network-attached storage (NAS) clients use to mount the volume, along with
the storage virtual machine (SVM) Domain Name System (DNS) name or IP address. You can create a
JunctionPathdirectly below a parent volume junction or on a directory within a volume. AJunctionPathfor a volume namedvol3might be/vol1/vol2/vol3, or/vol1/dir2/vol3, or even/dir1/dir2/vol3.
-
securityStyle
public final SecurityStyle securityStyle()
The security style for the volume, which can be
UNIX,NTFS, orMIXED.If the service returns an enum value that is not available in the current SDK version,
securityStylewill returnSecurityStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsecurityStyleAsString().- Returns:
- The security style for the volume, which can be
UNIX,NTFS, orMIXED. - See Also:
SecurityStyle
-
securityStyleAsString
public final String securityStyleAsString()
The security style for the volume, which can be
UNIX,NTFS, orMIXED.If the service returns an enum value that is not available in the current SDK version,
securityStylewill returnSecurityStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsecurityStyleAsString().- Returns:
- The security style for the volume, which can be
UNIX,NTFS, orMIXED. - See Also:
SecurityStyle
-
sizeInMegabytes
public final Integer sizeInMegabytes()
The configured size of the volume, in megabytes (MBs).
- Returns:
- The configured size of the volume, in megabytes (MBs).
-
storageEfficiencyEnabled
public final Boolean storageEfficiencyEnabled()
The volume's storage efficiency setting.
- Returns:
- The volume's storage efficiency setting.
-
storageVirtualMachineId
public final String storageVirtualMachineId()
The ID of the volume's storage virtual machine.
- Returns:
- The ID of the volume's storage virtual machine.
-
storageVirtualMachineRoot
public final Boolean storageVirtualMachineRoot()
A Boolean flag indicating whether this volume is the root volume for its storage virtual machine (SVM). Only one volume on an SVM can be the root volume. This value defaults to
false. If this value istrue, then this is the SVM root volume.This flag is useful when you're deleting an SVM, because you must first delete all non-root volumes. This flag, when set to
false, helps you identify which volumes to delete before you can delete the SVM.- Returns:
- A Boolean flag indicating whether this volume is the root volume for its storage virtual machine (SVM).
Only one volume on an SVM can be the root volume. This value defaults to
false. If this value istrue, then this is the SVM root volume.This flag is useful when you're deleting an SVM, because you must first delete all non-root volumes. This flag, when set to
false, helps you identify which volumes to delete before you can delete the SVM.
-
tieringPolicy
public final TieringPolicy tieringPolicy()
The volume's
TieringPolicysetting.- Returns:
- The volume's
TieringPolicysetting.
-
uuid
public final String uuid()
The volume's universally unique identifier (UUID).
- Returns:
- The volume's universally unique identifier (UUID).
-
ontapVolumeType
public final OntapVolumeType ontapVolumeType()
Specifies the type of volume. Valid values are the following:
-
RWspecifies a read/write volume.RWis the default. -
DPspecifies a data-protection volume. You can protect data by replicating it to data-protection mirror copies. If a disaster occurs, you can use these data-protection mirror copies to recover data. -
LSspecifies a load-sharing mirror volume. A load-sharing mirror reduces the network traffic to a FlexVol volume by providing additional read-only access to clients.
If the service returns an enum value that is not available in the current SDK version,
ontapVolumeTypewill returnOntapVolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromontapVolumeTypeAsString().- Returns:
- Specifies the type of volume. Valid values are the following:
-
RWspecifies a read/write volume.RWis the default. -
DPspecifies a data-protection volume. You can protect data by replicating it to data-protection mirror copies. If a disaster occurs, you can use these data-protection mirror copies to recover data. -
LSspecifies a load-sharing mirror volume. A load-sharing mirror reduces the network traffic to a FlexVol volume by providing additional read-only access to clients.
-
- See Also:
OntapVolumeType
-
-
ontapVolumeTypeAsString
public final String ontapVolumeTypeAsString()
Specifies the type of volume. Valid values are the following:
-
RWspecifies a read/write volume.RWis the default. -
DPspecifies a data-protection volume. You can protect data by replicating it to data-protection mirror copies. If a disaster occurs, you can use these data-protection mirror copies to recover data. -
LSspecifies a load-sharing mirror volume. A load-sharing mirror reduces the network traffic to a FlexVol volume by providing additional read-only access to clients.
If the service returns an enum value that is not available in the current SDK version,
ontapVolumeTypewill returnOntapVolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromontapVolumeTypeAsString().- Returns:
- Specifies the type of volume. Valid values are the following:
-
RWspecifies a read/write volume.RWis the default. -
DPspecifies a data-protection volume. You can protect data by replicating it to data-protection mirror copies. If a disaster occurs, you can use these data-protection mirror copies to recover data. -
LSspecifies a load-sharing mirror volume. A load-sharing mirror reduces the network traffic to a FlexVol volume by providing additional read-only access to clients.
-
- See Also:
OntapVolumeType
-
-
snapshotPolicy
public final String snapshotPolicy()
Specifies the snapshot policy for the volume. There are three built-in snapshot policies:
-
default: This is the default policy. A maximum of six hourly snapshots taken five minutes past the hour. A maximum of two daily snapshots taken Monday through Saturday at 10 minutes after midnight. A maximum of two weekly snapshots taken every Sunday at 15 minutes after midnight. -
default-1weekly: This policy is the same as thedefaultpolicy except that it only retains one snapshot from the weekly schedule. -
none: This policy does not take any snapshots. This policy can be assigned to volumes to prevent automatic snapshots from being taken.
You can also provide the name of a custom policy that you created with the ONTAP CLI or REST API.
For more information, see Snapshot policies in the Amazon FSx for NetApp ONTAP User Guide.
- Returns:
- Specifies the snapshot policy for the volume. There are three built-in snapshot policies:
-
default: This is the default policy. A maximum of six hourly snapshots taken five minutes past the hour. A maximum of two daily snapshots taken Monday through Saturday at 10 minutes after midnight. A maximum of two weekly snapshots taken every Sunday at 15 minutes after midnight. -
default-1weekly: This policy is the same as thedefaultpolicy except that it only retains one snapshot from the weekly schedule. -
none: This policy does not take any snapshots. This policy can be assigned to volumes to prevent automatic snapshots from being taken.
You can also provide the name of a custom policy that you created with the ONTAP CLI or REST API.
For more information, see Snapshot policies in the Amazon FSx for NetApp ONTAP User Guide.
-
-
-
copyTagsToBackups
public final Boolean copyTagsToBackups()
A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to false. If it's set to true, all tags for the volume are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the volume, regardless of this value.
- Returns:
- A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to false. If it's set to true, all tags for the volume are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the volume, regardless of this value.
-
snaplockConfiguration
public final SnaplockConfiguration snaplockConfiguration()
The SnapLock configuration object for an FSx for ONTAP SnapLock volume.
- Returns:
- The SnapLock configuration object for an FSx for ONTAP SnapLock volume.
-
volumeStyle
public final VolumeStyle volumeStyle()
Use to specify the style of an ONTAP volume. For more information about FlexVols and FlexGroups, see Volume types in Amazon FSx for NetApp ONTAP User Guide.
If the service returns an enum value that is not available in the current SDK version,
volumeStylewill returnVolumeStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvolumeStyleAsString().- Returns:
- Use to specify the style of an ONTAP volume. For more information about FlexVols and FlexGroups, see Volume types in Amazon FSx for NetApp ONTAP User Guide.
- See Also:
VolumeStyle
-
volumeStyleAsString
public final String volumeStyleAsString()
Use to specify the style of an ONTAP volume. For more information about FlexVols and FlexGroups, see Volume types in Amazon FSx for NetApp ONTAP User Guide.
If the service returns an enum value that is not available in the current SDK version,
volumeStylewill returnVolumeStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvolumeStyleAsString().- Returns:
- Use to specify the style of an ONTAP volume. For more information about FlexVols and FlexGroups, see Volume types in Amazon FSx for NetApp ONTAP User Guide.
- See Also:
VolumeStyle
-
aggregateConfiguration
public final AggregateConfiguration aggregateConfiguration()
This structure specifies configuration options for a volume’s storage aggregate or aggregates.
- Returns:
- This structure specifies configuration options for a volume’s storage aggregate or aggregates.
-
sizeInBytes
public final Long sizeInBytes()
The configured size of the volume, in bytes.
- Returns:
- The configured size of the volume, in bytes.
-
toBuilder
public OntapVolumeConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OntapVolumeConfiguration.Builder,OntapVolumeConfiguration>
-
builder
public static OntapVolumeConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends OntapVolumeConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-