Interface OntapVolumeConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OntapVolumeConfiguration.Builder,OntapVolumeConfiguration>,SdkBuilder<OntapVolumeConfiguration.Builder,OntapVolumeConfiguration>,SdkPojo
- Enclosing class:
- OntapVolumeConfiguration
public static interface OntapVolumeConfiguration.Builder extends SdkPojo, CopyableBuilder<OntapVolumeConfiguration.Builder,OntapVolumeConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OntapVolumeConfiguration.BuilderaggregateConfiguration(Consumer<AggregateConfiguration.Builder> aggregateConfiguration)This structure specifies configuration options for a volume’s storage aggregate or aggregates.OntapVolumeConfiguration.BuilderaggregateConfiguration(AggregateConfiguration aggregateConfiguration)This structure specifies configuration options for a volume’s storage aggregate or aggregates.OntapVolumeConfiguration.BuildercopyTagsToBackups(Boolean copyTagsToBackups)A boolean flag indicating whether tags for the volume should be copied to backups.OntapVolumeConfiguration.BuilderflexCacheEndpointType(String flexCacheEndpointType)Specifies the FlexCache endpoint type of the volume.OntapVolumeConfiguration.BuilderflexCacheEndpointType(FlexCacheEndpointType flexCacheEndpointType)Specifies the FlexCache endpoint type of the volume.OntapVolumeConfiguration.BuilderjunctionPath(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.OntapVolumeConfiguration.BuilderontapVolumeType(String ontapVolumeType)Specifies the type of volume.OntapVolumeConfiguration.BuilderontapVolumeType(OntapVolumeType ontapVolumeType)Specifies the type of volume.OntapVolumeConfiguration.BuildersecurityStyle(String securityStyle)The security style for the volume, which can beUNIX,NTFS, orMIXED.OntapVolumeConfiguration.BuildersecurityStyle(SecurityStyle securityStyle)The security style for the volume, which can beUNIX,NTFS, orMIXED.OntapVolumeConfiguration.BuildersizeInBytes(Long sizeInBytes)The configured size of the volume, in bytes.OntapVolumeConfiguration.BuildersizeInMegabytes(Integer sizeInMegabytes)The configured size of the volume, in megabytes (MBs).default OntapVolumeConfiguration.BuildersnaplockConfiguration(Consumer<SnaplockConfiguration.Builder> snaplockConfiguration)The SnapLock configuration object for an FSx for ONTAP SnapLock volume.OntapVolumeConfiguration.BuildersnaplockConfiguration(SnaplockConfiguration snaplockConfiguration)The SnapLock configuration object for an FSx for ONTAP SnapLock volume.OntapVolumeConfiguration.BuildersnapshotPolicy(String snapshotPolicy)Specifies the snapshot policy for the volume.OntapVolumeConfiguration.BuilderstorageEfficiencyEnabled(Boolean storageEfficiencyEnabled)The volume's storage efficiency setting.OntapVolumeConfiguration.BuilderstorageVirtualMachineId(String storageVirtualMachineId)The ID of the volume's storage virtual machine.OntapVolumeConfiguration.BuilderstorageVirtualMachineRoot(Boolean storageVirtualMachineRoot)A Boolean flag indicating whether this volume is the root volume for its storage virtual machine (SVM).default OntapVolumeConfiguration.BuildertieringPolicy(Consumer<TieringPolicy.Builder> tieringPolicy)The volume'sTieringPolicysetting.OntapVolumeConfiguration.BuildertieringPolicy(TieringPolicy tieringPolicy)The volume'sTieringPolicysetting.OntapVolumeConfiguration.Builderuuid(String uuid)The volume's universally unique identifier (UUID).OntapVolumeConfiguration.BuildervolumeStyle(String volumeStyle)Use to specify the style of an ONTAP volume.OntapVolumeConfiguration.BuildervolumeStyle(VolumeStyle volumeStyle)Use to specify the style of an ONTAP volume.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
flexCacheEndpointType
OntapVolumeConfiguration.Builder flexCacheEndpointType(String 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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FlexCacheEndpointType,FlexCacheEndpointType
-
-
flexCacheEndpointType
OntapVolumeConfiguration.Builder flexCacheEndpointType(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FlexCacheEndpointType,FlexCacheEndpointType
-
-
junctionPath
OntapVolumeConfiguration.Builder junctionPath(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.- Parameters:
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 aJunctionPathdirectly 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:
- Returns a reference to this object so that method calls can be chained together.
-
securityStyle
OntapVolumeConfiguration.Builder securityStyle(String securityStyle)
The security style for the volume, which can be
UNIX,NTFS, orMIXED.- Parameters:
securityStyle- The security style for the volume, which can beUNIX,NTFS, orMIXED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SecurityStyle,SecurityStyle
-
securityStyle
OntapVolumeConfiguration.Builder securityStyle(SecurityStyle securityStyle)
The security style for the volume, which can be
UNIX,NTFS, orMIXED.- Parameters:
securityStyle- The security style for the volume, which can beUNIX,NTFS, orMIXED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SecurityStyle,SecurityStyle
-
sizeInMegabytes
OntapVolumeConfiguration.Builder sizeInMegabytes(Integer sizeInMegabytes)
The configured size of the volume, in megabytes (MBs).
- Parameters:
sizeInMegabytes- The configured size of the volume, in megabytes (MBs).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageEfficiencyEnabled
OntapVolumeConfiguration.Builder storageEfficiencyEnabled(Boolean storageEfficiencyEnabled)
The volume's storage efficiency setting.
- Parameters:
storageEfficiencyEnabled- The volume's storage efficiency setting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageVirtualMachineId
OntapVolumeConfiguration.Builder storageVirtualMachineId(String storageVirtualMachineId)
The ID of the volume's storage virtual machine.
- Parameters:
storageVirtualMachineId- The ID of the volume's storage virtual machine.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageVirtualMachineRoot
OntapVolumeConfiguration.Builder storageVirtualMachineRoot(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.- Parameters:
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 tofalse. 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:
- Returns a reference to this object so that method calls can be chained together.
-
tieringPolicy
OntapVolumeConfiguration.Builder tieringPolicy(TieringPolicy tieringPolicy)
The volume's
TieringPolicysetting.- Parameters:
tieringPolicy- The volume'sTieringPolicysetting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tieringPolicy
default OntapVolumeConfiguration.Builder tieringPolicy(Consumer<TieringPolicy.Builder> tieringPolicy)
The volume's
This is a convenience method that creates an instance of theTieringPolicysetting.TieringPolicy.Builderavoiding the need to create one manually viaTieringPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totieringPolicy(TieringPolicy).- Parameters:
tieringPolicy- a consumer that will call methods onTieringPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
tieringPolicy(TieringPolicy)
-
uuid
OntapVolumeConfiguration.Builder uuid(String uuid)
The volume's universally unique identifier (UUID).
- Parameters:
uuid- The volume's universally unique identifier (UUID).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ontapVolumeType
OntapVolumeConfiguration.Builder ontapVolumeType(String 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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OntapVolumeType,OntapVolumeType
-
-
ontapVolumeType
OntapVolumeConfiguration.Builder ontapVolumeType(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OntapVolumeType,OntapVolumeType
-
-
snapshotPolicy
OntapVolumeConfiguration.Builder snapshotPolicy(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
-
copyTagsToBackups
OntapVolumeConfiguration.Builder copyTagsToBackups(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
snaplockConfiguration
OntapVolumeConfiguration.Builder snaplockConfiguration(SnaplockConfiguration snaplockConfiguration)
The SnapLock configuration object for an FSx for ONTAP SnapLock volume.
- Parameters:
snaplockConfiguration- The SnapLock configuration object for an FSx for ONTAP SnapLock volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snaplockConfiguration
default OntapVolumeConfiguration.Builder snaplockConfiguration(Consumer<SnaplockConfiguration.Builder> snaplockConfiguration)
The SnapLock configuration object for an FSx for ONTAP SnapLock volume.
This is a convenience method that creates an instance of theSnaplockConfiguration.Builderavoiding the need to create one manually viaSnaplockConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnaplockConfiguration(SnaplockConfiguration).- Parameters:
snaplockConfiguration- a consumer that will call methods onSnaplockConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
snaplockConfiguration(SnaplockConfiguration)
-
volumeStyle
OntapVolumeConfiguration.Builder volumeStyle(String 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VolumeStyle,VolumeStyle
-
volumeStyle
OntapVolumeConfiguration.Builder volumeStyle(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VolumeStyle,VolumeStyle
-
aggregateConfiguration
OntapVolumeConfiguration.Builder aggregateConfiguration(AggregateConfiguration aggregateConfiguration)
This structure specifies configuration options for a volume’s storage aggregate or aggregates.
- Parameters:
aggregateConfiguration- This structure specifies configuration options for a volume’s storage aggregate or aggregates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aggregateConfiguration
default OntapVolumeConfiguration.Builder aggregateConfiguration(Consumer<AggregateConfiguration.Builder> aggregateConfiguration)
This structure specifies configuration options for a volume’s storage aggregate or aggregates.
This is a convenience method that creates an instance of theAggregateConfiguration.Builderavoiding the need to create one manually viaAggregateConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaggregateConfiguration(AggregateConfiguration).- Parameters:
aggregateConfiguration- a consumer that will call methods onAggregateConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
aggregateConfiguration(AggregateConfiguration)
-
sizeInBytes
OntapVolumeConfiguration.Builder sizeInBytes(Long sizeInBytes)
The configured size of the volume, in bytes.
- Parameters:
sizeInBytes- The configured size of the volume, in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-