public class DiskUpdate extends Object
| Constructor and Description |
|---|
DiskUpdate() |
| Modifier and Type | Method and Description |
|---|---|
Long |
diskIOPSReadOnly()
Get the total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly.
|
Long |
diskIOPSReadWrite()
Get the number of IOPS allowed for this disk; only settable for UltraSSD disks.
|
Long |
diskMBpsReadOnly()
Get the total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly.
|
Long |
diskMBpsReadWrite()
Get the bandwidth allowed for this disk; only settable for UltraSSD disks.
|
Integer |
diskSizeGB()
Get if creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.
|
Encryption |
encryption()
Get encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
|
EncryptionSettingsCollection |
encryptionSettingsCollection()
Get encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
|
Integer |
maxShares()
Get the maximum number of VMs that can attach to the disk at the same time.
|
OperatingSystemTypes |
osType()
Get the Operating System type.
|
DiskSku |
sku()
Get the sku value.
|
Map<String,String> |
tags()
Get resource tags.
|
DiskUpdate |
withDiskIOPSReadOnly(Long diskIOPSReadOnly)
Set the total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly.
|
DiskUpdate |
withDiskIOPSReadWrite(Long diskIOPSReadWrite)
Set the number of IOPS allowed for this disk; only settable for UltraSSD disks.
|
DiskUpdate |
withDiskMBpsReadOnly(Long diskMBpsReadOnly)
Set the total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly.
|
DiskUpdate |
withDiskMBpsReadWrite(Long diskMBpsReadWrite)
Set the bandwidth allowed for this disk; only settable for UltraSSD disks.
|
DiskUpdate |
withDiskSizeGB(Integer diskSizeGB)
Set if creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create.
|
DiskUpdate |
withEncryption(Encryption encryption)
Set encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
|
DiskUpdate |
withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
Set encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
|
DiskUpdate |
withMaxShares(Integer maxShares)
Set the maximum number of VMs that can attach to the disk at the same time.
|
DiskUpdate |
withOsType(OperatingSystemTypes osType)
Set the Operating System type.
|
DiskUpdate |
withSku(DiskSku sku)
Set the sku value.
|
DiskUpdate |
withTags(Map<String,String> tags)
Set resource tags.
|
public OperatingSystemTypes osType()
public DiskUpdate withOsType(OperatingSystemTypes osType)
osType - the osType value to setpublic Integer diskSizeGB()
public DiskUpdate withDiskSizeGB(Integer diskSizeGB)
diskSizeGB - the diskSizeGB value to setpublic EncryptionSettingsCollection encryptionSettingsCollection()
public DiskUpdate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
encryptionSettingsCollection - the encryptionSettingsCollection value to setpublic Long diskIOPSReadWrite()
public DiskUpdate withDiskIOPSReadWrite(Long diskIOPSReadWrite)
diskIOPSReadWrite - the diskIOPSReadWrite value to setpublic Long diskMBpsReadWrite()
public DiskUpdate withDiskMBpsReadWrite(Long diskMBpsReadWrite)
diskMBpsReadWrite - the diskMBpsReadWrite value to setpublic Long diskIOPSReadOnly()
public DiskUpdate withDiskIOPSReadOnly(Long diskIOPSReadOnly)
diskIOPSReadOnly - the diskIOPSReadOnly value to setpublic Long diskMBpsReadOnly()
public DiskUpdate withDiskMBpsReadOnly(Long diskMBpsReadOnly)
diskMBpsReadOnly - the diskMBpsReadOnly value to setpublic Integer maxShares()
public DiskUpdate withMaxShares(Integer maxShares)
maxShares - the maxShares value to setpublic Encryption encryption()
public DiskUpdate withEncryption(Encryption encryption)
encryption - the encryption value to setpublic DiskUpdate withTags(Map<String,String> tags)
tags - the tags value to setpublic DiskSku sku()
public DiskUpdate withSku(DiskSku sku)
sku - the sku value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/