DiskInner Class

public final class DiskInner
extends Resource

Disk resource.

Constructor Summary

Constructor Description
DiskInner()

Creates an instance of DiskInner class.

Method Summary

Modifier and Type Method and Description
Boolean burstingEnabled()

Get the burstingEnabled property: Set to true to enable bursting beyond the provisioned performance target of the disk.

OffsetDateTime burstingEnabledTime()

Get the burstingEnabledTime property: Latest time when bursting was last enabled on a disk.

Float completionPercent()

Get the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.

CreationData creationData()

Get the creationData property: Disk source information.

DataAccessAuthMode dataAccessAuthMode()

Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.

String diskAccessId()

Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.

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.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location where the disk will be created.

static DiskInner fromJson(JsonReader jsonReader)

Reads an instance of DiskInner from the JsonReader.

HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

String id()

Get the id property: Fully qualified resource Id for the resource.

OffsetDateTime lastOwnershipUpdateTime()

Get the lastOwnershipUpdateTime property: The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.

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.

String name()

Get the name property: The name of the resource.

NetworkAccessPolicy networkAccessPolicy()

Get the networkAccessPolicy property: Policy for accessing the disk via network.

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) by detached from one virtual machine and attached to another.

OperatingSystemTypes osType()

Get the osType property: The Operating System type.

PropertyUpdatesInProgress propertyUpdatesInProgress()

Get the propertyUpdatesInProgress property: Properties of the disk for which update is pending.

String provisioningState()

Get the provisioningState property: The disk provisioning state.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Policy for controlling export on the disk.

PurchasePlanAutoGenerated purchasePlan()

Get the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.

DiskSecurityProfile securityProfile()

Get the securityProfile property: Contains the security related information for the resource.

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.

SupportedCapabilities supportedCapabilities()

Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.

Boolean supportsHibernation()

Get the supportsHibernation property: Indicates the OS on a disk supports hibernation.

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/.

OffsetDateTime timeCreated()

Get the timeCreated property: The time when the disk was created.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String uniqueId()

Get the uniqueId property: Unique Guid identifying the resource.

void validate()

Validates the instance.

DiskInner withBurstingEnabled(Boolean burstingEnabled)

Set the burstingEnabled property: Set to true to enable bursting beyond the provisioned performance target of the disk.

DiskInner withCompletionPercent(Float completionPercent)

Set the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.

DiskInner withCreationData(CreationData creationData)

Set the creationData property: Disk source information.

DiskInner withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode)

Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.

DiskInner withDiskAccessId(String diskAccessId)

Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.

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 withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location where the disk will be created.

DiskInner withHyperVGeneration(HyperVGeneration hyperVGeneration)

Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

DiskInner withLocation(String location)
DiskInner withMaxShares(Integer maxShares)

Set the maxShares property: The maximum number of VMs that can attach to the disk at the same time.

DiskInner withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)

Set the networkAccessPolicy property: Policy for accessing the disk via network.

DiskInner 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) by detached from one virtual machine and attached to another.

DiskInner withOsType(OperatingSystemTypes osType)

Set the osType property: The Operating System type.

DiskInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Policy for controlling export on the disk.

DiskInner withPurchasePlan(PurchasePlanAutoGenerated purchasePlan)

Set the purchasePlan property: Purchase plan information for the the image from which the OS disk was created.

DiskInner withSecurityProfile(DiskSecurityProfile securityProfile)

Set the securityProfile property: Contains the security related information for the resource.

DiskInner withSku(DiskSku sku)

Set the sku property: The disks sku name.

DiskInner withSupportedCapabilities(SupportedCapabilities supportedCapabilities)

Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.

DiskInner withSupportsHibernation(Boolean supportsHibernation)

Set the supportsHibernation property: Indicates the OS on a disk supports hibernation.

DiskInner withTags(Map<String,String> tags)
DiskInner 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/.

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.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DiskInner

public DiskInner()

Creates an instance of DiskInner class.

Method Details

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:

the burstingEnabled value.

burstingEnabledTime

public OffsetDateTime burstingEnabledTime()

Get the burstingEnabledTime property: Latest time when bursting was last enabled on a disk.

Returns:

the burstingEnabledTime value.

completionPercent

public Float completionPercent()

Get the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.

Returns:

the completionPercent value.

creationData

public CreationData creationData()

Get the creationData property: Disk source information. CreationData information cannot be changed after the disk has been created.

Returns:

the creationData value.

dataAccessAuthMode

public DataAccessAuthMode dataAccessAuthMode()

Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.

Returns:

the dataAccessAuthMode value.

diskAccessId

public String diskAccessId()

Get the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.

Returns:

the diskAccessId value.

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:

the diskIopsReadOnly value.

diskIopsReadWrite

public Long diskIopsReadWrite()

Get the diskIopsReadWrite property: The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.

Returns:

the diskIopsReadWrite value.

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:

the diskMBpsReadOnly value.

diskMBpsReadWrite

public Long diskMBpsReadWrite()

Get the diskMBpsReadWrite property: The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.

Returns:

the diskMBpsReadWrite value.

diskSizeBytes

public Long diskSizeBytes()

Get the diskSizeBytes property: The size of the disk in bytes. This field is read only.

Returns:

the diskSizeBytes value.

diskSizeGB

public 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. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.

Returns:

the diskSizeGB value.

diskState

public DiskState diskState()

Get the diskState property: The state of the disk.

Returns:

the diskState value.

encryption

public Encryption encryption()

Get the encryption property: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.

Returns:

the encryption value.

encryptionSettingsCollection

public EncryptionSettingsCollection encryptionSettingsCollection()

Get the encryptionSettingsCollection property: Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

Returns:

the encryptionSettingsCollection value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location where the disk will be created. Extended location cannot be changed.

Returns:

the extendedLocation value.

fromJson

public static DiskInner fromJson(JsonReader jsonReader)

Reads an instance of DiskInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiskInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hyperVGeneration

public HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Returns:

the hyperVGeneration value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DiskInner.id()

Returns:

the id value.

lastOwnershipUpdateTime

public OffsetDateTime lastOwnershipUpdateTime()

Get the lastOwnershipUpdateTime property: The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started.

Returns:

the lastOwnershipUpdateTime value.

managedBy

public String managedBy()

Get the managedBy property: A relative URI containing the ID of the VM that has the disk attached.

Returns:

the managedBy value.

managedByExtended

public List managedByExtended()

Get the managedByExtended property: List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.

Returns:

the managedByExtended value.

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.

Returns:

the maxShares value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DiskInner.name()

Returns:

the name value.

networkAccessPolicy

public NetworkAccessPolicy networkAccessPolicy()

Get the networkAccessPolicy property: Policy for accessing the disk via network.

Returns:

the networkAccessPolicy value.

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) by 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:

the optimizedForFrequentAttach value.

osType

public OperatingSystemTypes osType()

Get the osType property: The Operating System type.

Returns:

the osType value.

propertyUpdatesInProgress

public PropertyUpdatesInProgress propertyUpdatesInProgress()

Get the propertyUpdatesInProgress property: Properties of the disk for which update is pending.

Returns:

the propertyUpdatesInProgress value.

provisioningState

public String provisioningState()

Get the provisioningState property: The disk provisioning state.

Returns:

the provisioningState value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Policy for controlling export on the disk.

Returns:

the publicNetworkAccess value.

purchasePlan

public PurchasePlanAutoGenerated purchasePlan()

Get the purchasePlan property: Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}.

Returns:

the purchasePlan value.

securityProfile

public DiskSecurityProfile securityProfile()

Get the securityProfile property: Contains the security related information for the resource.

Returns:

the securityProfile value.

shareInfo

public List shareInfo()

Get the shareInfo property: Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs.

Returns:

the shareInfo value.

sku

public DiskSku sku()

Get the sku property: The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.

Returns:

the sku value.

supportedCapabilities

public SupportedCapabilities supportedCapabilities()

Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.

Returns:

the supportedCapabilities value.

supportsHibernation

public Boolean supportsHibernation()

Get the supportsHibernation property: Indicates the OS on a disk supports hibernation.

Returns:

the supportsHibernation value.

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:

the tier value.

timeCreated

public OffsetDateTime timeCreated()

Get the timeCreated property: The time when the disk was created.

Returns:

the timeCreated value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiskInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DiskInner.type()

Returns:

the type value.

uniqueId

public String uniqueId()

Get the uniqueId property: Unique Guid identifying the resource.

Returns:

the uniqueId value.

validate

public void validate()

Validates the instance.

withBurstingEnabled

public DiskInner 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:

burstingEnabled - the burstingEnabled value to set.

Returns:

the DiskInner object itself.

withCompletionPercent

public DiskInner withCompletionPercent(Float completionPercent)

Set the completionPercent property: Percentage complete for the background copy when a resource is created via the CopyStart operation.

Parameters:

completionPercent - the completionPercent value to set.

Returns:

the DiskInner object itself.

withCreationData

public DiskInner withCreationData(CreationData creationData)

Set the creationData property: Disk source information. CreationData information cannot be changed after the disk has been created.

Parameters:

creationData - the creationData value to set.

Returns:

the DiskInner object itself.

withDataAccessAuthMode

public DiskInner withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode)

Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk or snapshot.

Parameters:

dataAccessAuthMode - the dataAccessAuthMode value to set.

Returns:

the DiskInner object itself.

withDiskAccessId

public DiskInner withDiskAccessId(String diskAccessId)

Set the diskAccessId property: ARM id of the DiskAccess resource for using private endpoints on disks.

Parameters:

diskAccessId - the diskAccessId value to set.

Returns:

the DiskInner object itself.

withDiskIopsReadOnly

public 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. One operation can transfer between 4k and 256k bytes.

Parameters:

diskIopsReadOnly - the diskIopsReadOnly value to set.

Returns:

the DiskInner object itself.

withDiskIopsReadWrite

public DiskInner withDiskIopsReadWrite(Long diskIopsReadWrite)

Set the diskIopsReadWrite property: The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.

Parameters:

diskIopsReadWrite - the diskIopsReadWrite value to set.

Returns:

the DiskInner object itself.

withDiskMBpsReadOnly

public 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. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.

Parameters:

diskMBpsReadOnly - the diskMBpsReadOnly value to set.

Returns:

the DiskInner object itself.

withDiskMBpsReadWrite

public DiskInner withDiskMBpsReadWrite(Long diskMBpsReadWrite)

Set the diskMBpsReadWrite property: The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.

Parameters:

diskMBpsReadWrite - the diskMBpsReadWrite value to set.

Returns:

the DiskInner object itself.

withDiskSizeGB

public 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. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.

Parameters:

diskSizeGB - the diskSizeGB value to set.

Returns:

the DiskInner object itself.

withEncryption

public 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.

Parameters:

encryption - the encryption value to set.

Returns:

the DiskInner object itself.

withEncryptionSettingsCollection

public 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.

Parameters:

encryptionSettingsCollection - the encryptionSettingsCollection value to set.

Returns:

the DiskInner object itself.

withExtendedLocation

public DiskInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location where the disk will be created. Extended location cannot be changed.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the DiskInner object itself.

withHyperVGeneration

public DiskInner withHyperVGeneration(HyperVGeneration hyperVGeneration)

Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Parameters:

hyperVGeneration - the hyperVGeneration value to set.

Returns:

the DiskInner object itself.

withLocation

public DiskInner withLocation(String location)

Overrides:

DiskInner.withLocation(String location)

Parameters:

location

withMaxShares

public DiskInner 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.

Parameters:

maxShares - the maxShares value to set.

Returns:

the DiskInner object itself.

withNetworkAccessPolicy

public DiskInner withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy)

Set the networkAccessPolicy property: Policy for accessing the disk via network.

Parameters:

networkAccessPolicy - the networkAccessPolicy value to set.

Returns:

the DiskInner object itself.

withOptimizedForFrequentAttach

public DiskInner 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) by 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:

optimizedForFrequentAttach - the optimizedForFrequentAttach value to set.

Returns:

the DiskInner object itself.

withOsType

public DiskInner withOsType(OperatingSystemTypes osType)

Set the osType property: The Operating System type.

Parameters:

osType - the osType value to set.

Returns:

the DiskInner object itself.

withPublicNetworkAccess

public DiskInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Policy for controlling export on the disk.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the DiskInner object itself.

withPurchasePlan

public DiskInner withPurchasePlan(PurchasePlanAutoGenerated purchasePlan)

Set the purchasePlan property: Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}.

Parameters:

purchasePlan - the purchasePlan value to set.

Returns:

the DiskInner object itself.

withSecurityProfile

public DiskInner withSecurityProfile(DiskSecurityProfile securityProfile)

Set the securityProfile property: Contains the security related information for the resource.

Parameters:

securityProfile - the securityProfile value to set.

Returns:

the DiskInner object itself.

withSku

public DiskInner withSku(DiskSku sku)

Set the sku property: The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.

Parameters:

sku - the sku value to set.

Returns:

the DiskInner object itself.

withSupportedCapabilities

public DiskInner withSupportedCapabilities(SupportedCapabilities supportedCapabilities)

Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was created.

Parameters:

supportedCapabilities - the supportedCapabilities value to set.

Returns:

the DiskInner object itself.

withSupportsHibernation

public DiskInner withSupportsHibernation(Boolean supportsHibernation)

Set the supportsHibernation property: Indicates the OS on a disk supports hibernation.

Parameters:

supportsHibernation - the supportsHibernation value to set.

Returns:

the DiskInner object itself.

withTags

public DiskInner withTags(Map tags)

Overrides:

DiskInner.withTags(Map<String,String> tags)

Parameters:

tags

withTier

public DiskInner 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:

tier - the tier value to set.

Returns:

the DiskInner object itself.

withZones

public DiskInner withZones(List zones)

Set the zones property: The Logical zone list for Disk.

Parameters:

zones - the zones value to set.

Returns:

the DiskInner object itself.

zones

public List zones()

Get the zones property: The Logical zone list for Disk.

Returns:

the zones value.

Applies to