Class DiskPoolVolume
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.DiskPoolVolume
-
public final class DiskPoolVolume extends Object
An iSCSI volume from Microsoft.StoragePool provider.
-
-
Constructor Summary
Constructors Constructor Description DiskPoolVolume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
lunName()
Get the lunName property: Name of the LUN to be used for datastore.MountOptionEnum
mountOption()
Get the mountOption property: Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.String
path()
Get the path property: Device path.String
targetId()
Get the targetId property: Azure resource ID of the iSCSI target.void
validate()
Validates the instance.DiskPoolVolume
withLunName(String lunName)
Set the lunName property: Name of the LUN to be used for datastore.DiskPoolVolume
withMountOption(MountOptionEnum mountOption)
Set the mountOption property: Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.DiskPoolVolume
withTargetId(String targetId)
Set the targetId property: Azure resource ID of the iSCSI target.
-
-
-
Method Detail
-
targetId
public String targetId()
Get the targetId property: Azure resource ID of the iSCSI target.- Returns:
- the targetId value.
-
withTargetId
public DiskPoolVolume withTargetId(String targetId)
Set the targetId property: Azure resource ID of the iSCSI target.- Parameters:
targetId
- the targetId value to set.- Returns:
- the DiskPoolVolume object itself.
-
lunName
public String lunName()
Get the lunName property: Name of the LUN to be used for datastore.- Returns:
- the lunName value.
-
withLunName
public DiskPoolVolume withLunName(String lunName)
Set the lunName property: Name of the LUN to be used for datastore.- Parameters:
lunName
- the lunName value to set.- Returns:
- the DiskPoolVolume object itself.
-
mountOption
public MountOptionEnum mountOption()
Get the mountOption property: Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.- Returns:
- the mountOption value.
-
withMountOption
public DiskPoolVolume withMountOption(MountOptionEnum mountOption)
Set the mountOption property: Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.- Parameters:
mountOption
- the mountOption value to set.- Returns:
- the DiskPoolVolume object itself.
-
path
public String path()
Get the path property: Device path.- Returns:
- the path value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-