public class DiskUpdate extends Object
Constructor and Description |
---|
DiskUpdate() |
Modifier and Type | Method and Description |
---|---|
Long |
diskIopsReadOnly()
Get the diskIopsReadOnly property: The total number of IOPS that will be allowed across all VMs mounting the
shared disk as ReadOnly.
|
Long |
diskIopsReadWrite()
Get the diskIopsReadWrite property: The number of IOPS allowed for this disk; only settable for UltraSSD disks.
|
Long |
diskMBpsReadOnly()
Get the diskMBpsReadOnly property: The total throughput (MBps) that will be allowed across all VMs mounting the
shared disk as ReadOnly.
|
Long |
diskMBpsReadWrite()
Get the diskMBpsReadWrite property: The bandwidth allowed for this disk; only settable for UltraSSD disks.
|
Integer |
diskSizeGB()
Get the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the
size of the disk to create.
|
Encryption |
encryption()
Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys
or platform managed keys.
|
EncryptionSettingsCollection |
encryptionSettingsCollection()
Get the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can
contain multiple encryption settings per disk or snapshot.
|
Integer |
maxShares()
Get the maxShares property: The maximum number of VMs that can attach to the disk at the same time.
|
OperatingSystemTypes |
osType()
Get the osType property: the Operating System type.
|
DiskSku |
sku()
Get the sku property: The disks sku name.
|
Map<String,String> |
tags()
Get the tags property: Resource tags.
|
void |
validate()
Validates the instance.
|
DiskUpdate |
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.
|
DiskUpdate |
withDiskIopsReadWrite(Long diskIopsReadWrite)
Set the diskIopsReadWrite property: The number of IOPS allowed for this disk; only settable for UltraSSD disks.
|
DiskUpdate |
withDiskMBpsReadOnly(Long diskMBpsReadOnly)
Set the diskMBpsReadOnly property: The total throughput (MBps) that will be allowed across all VMs mounting the
shared disk as ReadOnly.
|
DiskUpdate |
withDiskMBpsReadWrite(Long diskMBpsReadWrite)
Set the diskMBpsReadWrite property: The bandwidth allowed for this disk; only settable for UltraSSD disks.
|
DiskUpdate |
withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it indicates the
size of the disk to create.
|
DiskUpdate |
withEncryption(Encryption encryption)
Set the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys
or platform managed keys.
|
DiskUpdate |
withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
Set the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk Encryption, can
contain multiple encryption settings per disk or snapshot.
|
DiskUpdate |
withMaxShares(Integer maxShares)
Set the maxShares property: The maximum number of VMs that can attach to the disk at the same time.
|
DiskUpdate |
withOsType(OperatingSystemTypes osType)
Set the osType property: the Operating System type.
|
DiskUpdate |
withSku(DiskSku sku)
Set the sku property: The disks sku name.
|
DiskUpdate |
withTags(Map<String,String> tags)
Set the tags property: Resource tags.
|
public Map<String,String> tags()
public DiskUpdate withTags(Map<String,String> tags)
tags
- the tags value to set.public DiskSku sku()
public DiskUpdate withSku(DiskSku sku)
sku
- the sku value to set.public OperatingSystemTypes osType()
public DiskUpdate withOsType(OperatingSystemTypes osType)
osType
- the osType value to set.public Integer diskSizeGB()
public DiskUpdate withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to set.public EncryptionSettingsCollection encryptionSettingsCollection()
public DiskUpdate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
encryptionSettingsCollection
- the encryptionSettingsCollection value to set.public Long diskIopsReadWrite()
public DiskUpdate withDiskIopsReadWrite(Long diskIopsReadWrite)
diskIopsReadWrite
- the diskIopsReadWrite value to set.public Long diskMBpsReadWrite()
public DiskUpdate withDiskMBpsReadWrite(Long diskMBpsReadWrite)
diskMBpsReadWrite
- the diskMBpsReadWrite value to set.public Long diskIopsReadOnly()
public DiskUpdate withDiskIopsReadOnly(Long diskIopsReadOnly)
diskIopsReadOnly
- the diskIopsReadOnly value to set.public Long diskMBpsReadOnly()
public DiskUpdate withDiskMBpsReadOnly(Long diskMBpsReadOnly)
diskMBpsReadOnly
- the diskMBpsReadOnly value to set.public Integer maxShares()
public DiskUpdate withMaxShares(Integer maxShares)
maxShares
- the maxShares value to set.public Encryption encryption()
public DiskUpdate withEncryption(Encryption encryption)
encryption
- the encryption value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.