VirtualMachineDiskProperties Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineDiskProperties
- com.
Implements
public final class VirtualMachineDiskProperties
implements JsonSerializable<VirtualMachineDiskProperties>
Specifies the properties of a managed disk that can be set at the time of implicit creation of the disk.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachineDiskProperties() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Disk |
availabilityPolicy()
Get the availability |
| Boolean |
burstingEnabled()
Get the bursting |
| String |
diskAccessId()
Get the disk |
| Long |
diskIOPSReadOnly()
Get the disk |
| Long |
diskMBpsReadOnly()
Get the disk |
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
| Integer |
logicalSectorSize()
Get the logical |
| Integer |
maxShares()
Get the max |
|
Virtual |
networkAccessPolicy()
Get the network |
| Boolean |
optimizedForFrequentAttach()
Get the optimized |
| Boolean |
performancePlus()
Get the performance |
| String |
tier()
Get the tier property: Performance tier of the disk (e. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Virtual |
withAvailabilityPolicy(DiskAvailabilityPolicy availabilityPolicy)
Set the availability |
|
Virtual |
withBurstingEnabled(Boolean burstingEnabled)
Set the bursting |
|
Virtual |
withDiskAccessId(String diskAccessId)
Set the disk |
|
Virtual |
withDiskIOPSReadOnly(Long diskIOPSReadOnly)
Set the disk |
|
Virtual |
withDiskMBpsReadOnly(Long diskMBpsReadOnly)
Set the disk |
|
Virtual |
withLogicalSectorSize(Integer logicalSectorSize)
Set the logical |
|
Virtual |
withMaxShares(Integer maxShares)
Set the max |
|
Virtual |
withNetworkAccessPolicy(VirtualMachineDiskNetworkAccessPolicy networkAccessPolicy)
Set the network |
|
Virtual |
withOptimizedForFrequentAttach(Boolean optimizedForFrequentAttach)
Set the optimized |
|
Virtual |
withPerformancePlus(Boolean performancePlus)
Set the performance |
|
Virtual |
withTier(String tier)
Set the tier property: Performance tier of the disk (e. |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineDiskProperties
public VirtualMachineDiskProperties()
Creates an instance of VirtualMachineDiskProperties class.
Method Details
availabilityPolicy
public DiskAvailabilityPolicy availabilityPolicy()
Get the availabilityPolicy property: In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.
Returns:
burstingEnabled
public Boolean burstingEnabled()
Get the burstingEnabled property: Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
Returns:
diskAccessId
public String diskAccessId()
Get the diskAccessId property: Azure resource Id of the DiskAccess resource for using private endpoints on disks.
Returns:
diskIOPSReadOnly
public Long diskIOPSReadOnly()
Get the diskIOPSReadOnly property: The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
Returns:
diskMBpsReadOnly
public Long diskMBpsReadOnly()
Get the diskMBpsReadOnly property: The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
Returns:
fromJson
public static VirtualMachineDiskProperties fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineDiskProperties from the JsonReader.
Parameters:
Returns:
Throws:
logicalSectorSize
public Integer logicalSectorSize()
Get the logicalSectorSize property: Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default.
Returns:
maxShares
public Integer maxShares()
Get the maxShares property: The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.
Returns:
networkAccessPolicy
public VirtualMachineDiskNetworkAccessPolicy networkAccessPolicy()
Get the networkAccessPolicy property: Policy for accessing the disk via network.
Returns:
optimizedForFrequentAttach
public Boolean optimizedForFrequentAttach()
Get the optimizedForFrequentAttach property: Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
Returns:
performancePlus
public Boolean performancePlus()
Get the performancePlus property: Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled.
Returns:
tier
public String tier()
Get the tier property: Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAvailabilityPolicy
public VirtualMachineDiskProperties withAvailabilityPolicy(DiskAvailabilityPolicy availabilityPolicy)
Set the availabilityPolicy property: In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.
Parameters:
Returns:
withBurstingEnabled
public VirtualMachineDiskProperties withBurstingEnabled(Boolean burstingEnabled)
Set the burstingEnabled property: Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.
Parameters:
Returns:
withDiskAccessId
public VirtualMachineDiskProperties withDiskAccessId(String diskAccessId)
Set the diskAccessId property: Azure resource Id of the DiskAccess resource for using private endpoints on disks.
Parameters:
Returns:
withDiskIOPSReadOnly
public VirtualMachineDiskProperties withDiskIOPSReadOnly(Long diskIOPSReadOnly)
Set the diskIOPSReadOnly property: The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.
Parameters:
Returns:
withDiskMBpsReadOnly
public VirtualMachineDiskProperties withDiskMBpsReadOnly(Long diskMBpsReadOnly)
Set the diskMBpsReadOnly property: The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.
Parameters:
Returns:
withLogicalSectorSize
public VirtualMachineDiskProperties withLogicalSectorSize(Integer logicalSectorSize)
Set the logicalSectorSize property: Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default.
Parameters:
Returns:
withMaxShares
public VirtualMachineDiskProperties withMaxShares(Integer maxShares)
Set the maxShares property: The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.
Parameters:
Returns:
withNetworkAccessPolicy
public VirtualMachineDiskProperties withNetworkAccessPolicy(VirtualMachineDiskNetworkAccessPolicy networkAccessPolicy)
Set the networkAccessPolicy property: Policy for accessing the disk via network.
Parameters:
Returns:
withOptimizedForFrequentAttach
public VirtualMachineDiskProperties withOptimizedForFrequentAttach(Boolean optimizedForFrequentAttach)
Set the optimizedForFrequentAttach property: Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.
Parameters:
Returns:
withPerformancePlus
public VirtualMachineDiskProperties withPerformancePlus(Boolean performancePlus)
Set the performancePlus property: Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled.
Parameters:
Returns:
withTier
public VirtualMachineDiskProperties withTier(String tier)
Set the tier property: Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.
Parameters:
Returns: