public class DiskInner
extends com.azure.core.management.Resource
Constructor and Description |
---|
DiskInner() |
Modifier and Type | Method and Description |
---|---|
CreationData |
creationData()
Get the creationData property: Disk source information.
|
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.
|
Long |
diskSizeBytes()
Get the diskSizeBytes property: The size of the disk in bytes.
|
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.
|
DiskState |
diskState()
Get the diskState property: The state of the disk.
|
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 for Azure Disk Encryption, can
contain multiple encryption settings per disk or snapshot.
|
HyperVGeneration |
hyperVGeneration()
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.
|
String |
managedBy()
Get the managedBy property: A relative URI containing the ID of the VM that has the disk attached.
|
List<String> |
managedByExtended()
Get the managedByExtended property: List of relative URIs containing the IDs of the VMs that have the disk
attached.
|
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.
|
String |
provisioningState()
Get the provisioningState property: The disk provisioning state.
|
List<ShareInfoElement> |
shareInfo()
Get the shareInfo property: Details of the list of all VMs that have the disk attached.
|
DiskSku |
sku()
Get the sku property: The disks sku name.
|
OffsetDateTime |
timeCreated()
Get the timeCreated property: The time when the disk was created.
|
String |
uniqueId()
Get the uniqueId property: Unique Guid identifying the resource.
|
void |
validate()
Validates the instance.
|
DiskInner |
withCreationData(CreationData creationData)
Set the creationData property: Disk source information.
|
DiskInner |
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.
|
DiskInner |
withDiskIopsReadWrite(Long diskIopsReadWrite)
Set the diskIopsReadWrite property: The number of IOPS allowed for this disk; only settable for UltraSSD disks.
|
DiskInner |
withDiskMBpsReadOnly(Long diskMBpsReadOnly)
Set the diskMBpsReadOnly property: The total throughput (MBps) that will be allowed across all VMs mounting the
shared disk as ReadOnly.
|
DiskInner |
withDiskMBpsReadWrite(Long diskMBpsReadWrite)
Set the diskMBpsReadWrite property: The bandwidth allowed for this disk; only settable for UltraSSD disks.
|
DiskInner |
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.
|
DiskInner |
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.
|
DiskInner |
withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
Set the encryptionSettingsCollection property: Encryption settings collection used for Azure Disk Encryption, can
contain multiple encryption settings per disk or snapshot.
|
DiskInner |
withHyperVGeneration(HyperVGeneration hyperVGeneration)
Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.
|
DiskInner |
withMaxShares(Integer maxShares)
Set the maxShares property: The maximum number of VMs that can attach to the disk at the same time.
|
DiskInner |
withOsType(OperatingSystemTypes osType)
Set the osType property: The Operating System type.
|
DiskInner |
withSku(DiskSku sku)
Set the sku property: The disks sku name.
|
DiskInner |
withZones(List<String> zones)
Set the zones property: The Logical zone list for Disk.
|
List<String> |
zones()
Get the zones property: The Logical zone list for Disk.
|
public String managedBy()
public List<String> managedByExtended()
public DiskSku sku()
public DiskInner withSku(DiskSku sku)
sku
- the sku value to set.public List<String> zones()
public DiskInner withZones(List<String> zones)
zones
- the zones value to set.public OffsetDateTime timeCreated()
public OperatingSystemTypes osType()
public DiskInner withOsType(OperatingSystemTypes osType)
osType
- the osType value to set.public HyperVGeneration hyperVGeneration()
public DiskInner withHyperVGeneration(HyperVGeneration hyperVGeneration)
hyperVGeneration
- the hyperVGeneration value to set.public CreationData creationData()
public DiskInner withCreationData(CreationData creationData)
creationData
- the creationData value to set.public Integer diskSizeGB()
public DiskInner withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to set.public Long diskSizeBytes()
public String uniqueId()
public EncryptionSettingsCollection encryptionSettingsCollection()
public DiskInner withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection)
encryptionSettingsCollection
- the encryptionSettingsCollection value to set.public String provisioningState()
public Long diskIopsReadWrite()
public DiskInner withDiskIopsReadWrite(Long diskIopsReadWrite)
diskIopsReadWrite
- the diskIopsReadWrite value to set.public Long diskMBpsReadWrite()
public DiskInner withDiskMBpsReadWrite(Long diskMBpsReadWrite)
diskMBpsReadWrite
- the diskMBpsReadWrite value to set.public Long diskIopsReadOnly()
public DiskInner withDiskIopsReadOnly(Long diskIopsReadOnly)
diskIopsReadOnly
- the diskIopsReadOnly value to set.public Long diskMBpsReadOnly()
public DiskInner withDiskMBpsReadOnly(Long diskMBpsReadOnly)
diskMBpsReadOnly
- the diskMBpsReadOnly value to set.public DiskState diskState()
public Encryption encryption()
public DiskInner withEncryption(Encryption encryption)
encryption
- the encryption value to set.public Integer maxShares()
public DiskInner withMaxShares(Integer maxShares)
maxShares
- the maxShares value to set.public List<ShareInfoElement> shareInfo()
public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.