Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
Disk update resource.
/** * Disk update resource. */
@JsonFlatten public class DiskUpdate {
the Operating System type. Possible values include: 'Windows', 'Linux'.
/** * the Operating System type. Possible values include: 'Windows', 'Linux'. */
@JsonProperty(value = "properties.osType") private OperatingSystemTypes osType;
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.
/** * 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. */
@JsonProperty(value = "properties.diskSizeGB") private Integer diskSizeGB;
Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
/** * Encryption settings collection used be Azure Disk Encryption, can * contain multiple encryption settings per disk or snapshot. */
@JsonProperty(value = "properties.encryptionSettingsCollection") private EncryptionSettingsCollection encryptionSettingsCollection;
The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
/** * The number of IOPS allowed for this disk; only settable for UltraSSD * disks. One operation can transfer between 4k and 256k bytes. */
@JsonProperty(value = "properties.diskIOPSReadWrite") private Long diskIOPSReadWrite;
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.
/** * 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. */
@JsonProperty(value = "properties.diskMBpsReadWrite") private Long diskMBpsReadWrite;
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.
/** * 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. */
@JsonProperty(value = "properties.diskIOPSReadOnly") private Long diskIOPSReadOnly;
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.
/** * 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. */
@JsonProperty(value = "properties.diskMBpsReadOnly") private Long diskMBpsReadOnly;
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.
/** * 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. */
@JsonProperty(value = "properties.maxShares") private Integer maxShares;
Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
/** * Encryption property can be used to encrypt data at rest with customer * managed keys or platform managed keys. */
@JsonProperty(value = "properties.encryption") private Encryption encryption;
Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.
/** * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'. */
@JsonProperty(value = "properties.networkAccessPolicy") private NetworkAccessPolicy networkAccessPolicy;
ARM id of the DiskAccess resource for using private endpoints on disks.
/** * ARM id of the DiskAccess resource for using private endpoints on disks. */
@JsonProperty(value = "properties.diskAccessId") private String diskAccessId;
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.
/** * 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. */
@JsonProperty(value = "properties.tier") private String tier;
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.
/** * 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. */
@JsonProperty(value = "properties.burstingEnabled") private Boolean burstingEnabled;
Purchase plan information to be added on the OS disk.
/** * Purchase plan information to be added on the OS disk. */
@JsonProperty(value = "properties.purchasePlan") private PurchasePlan purchasePlan;
Resource tags.
/** * Resource tags. */
@JsonProperty(value = "tags") private Map<String, String> tags;
The sku property.
/** * The sku property. */
@JsonProperty(value = "sku") private DiskSku sku;
Get the Operating System type. Possible values include: 'Windows', 'Linux'.
Returns:the osType value
/** * Get the Operating System type. Possible values include: 'Windows', 'Linux'. * * @return the osType value */
public OperatingSystemTypes osType() { return this.osType; }
Set the Operating System type. Possible values include: 'Windows', 'Linux'.
Params:
  • osType – the osType value to set
Returns:the DiskUpdate object itself.
/** * Set the Operating System type. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the DiskUpdate object itself. */
public DiskUpdate withOsType(OperatingSystemTypes osType) { this.osType = osType; return this; }
Get 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
/** * Get 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. * * @return the diskSizeGB value */
public Integer diskSizeGB() { return this.diskSizeGB; }
Set 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.
Params:
  • diskSizeGB – the diskSizeGB value to set
Returns:the DiskUpdate object itself.
/** * Set 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. * * @param diskSizeGB the diskSizeGB value to set * @return the DiskUpdate object itself. */
public DiskUpdate withDiskSizeGB(Integer diskSizeGB) { this.diskSizeGB = diskSizeGB; return this; }
Get encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
Returns:the encryptionSettingsCollection value
/** * Get encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. * * @return the encryptionSettingsCollection value */
public EncryptionSettingsCollection encryptionSettingsCollection() { return this.encryptionSettingsCollection; }
Set encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.
Params:
  • encryptionSettingsCollection – the encryptionSettingsCollection value to set
Returns:the DiskUpdate object itself.
/** * Set encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. * * @param encryptionSettingsCollection the encryptionSettingsCollection value to set * @return the DiskUpdate object itself. */
public DiskUpdate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection) { this.encryptionSettingsCollection = encryptionSettingsCollection; return this; }
Get 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
/** * Get the number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. * * @return the diskIOPSReadWrite value */
public Long diskIOPSReadWrite() { return this.diskIOPSReadWrite; }
Set the number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.
Params:
  • diskIOPSReadWrite – the diskIOPSReadWrite value to set
Returns:the DiskUpdate object itself.
/** * Set the number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. * * @param diskIOPSReadWrite the diskIOPSReadWrite value to set * @return the DiskUpdate object itself. */
public DiskUpdate withDiskIOPSReadWrite(Long diskIOPSReadWrite) { this.diskIOPSReadWrite = diskIOPSReadWrite; return this; }
Get 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
/** * Get 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. * * @return the diskMBpsReadWrite value */
public Long diskMBpsReadWrite() { return this.diskMBpsReadWrite; }
Set 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.
Params:
  • diskMBpsReadWrite – the diskMBpsReadWrite value to set
Returns:the DiskUpdate object itself.
/** * Set 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. * * @param diskMBpsReadWrite the diskMBpsReadWrite value to set * @return the DiskUpdate object itself. */
public DiskUpdate withDiskMBpsReadWrite(Long diskMBpsReadWrite) { this.diskMBpsReadWrite = diskMBpsReadWrite; return this; }
Get 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
/** * Get 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. * * @return the diskIOPSReadOnly value */
public Long diskIOPSReadOnly() { return this.diskIOPSReadOnly; }
Set 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.
Params:
  • diskIOPSReadOnly – the diskIOPSReadOnly value to set
Returns:the DiskUpdate object itself.
/** * Set 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. * * @param diskIOPSReadOnly the diskIOPSReadOnly value to set * @return the DiskUpdate object itself. */
public DiskUpdate withDiskIOPSReadOnly(Long diskIOPSReadOnly) { this.diskIOPSReadOnly = diskIOPSReadOnly; return this; }
Get 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
/** * Get 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. * * @return the diskMBpsReadOnly value */
public Long diskMBpsReadOnly() { return this.diskMBpsReadOnly; }
Set 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.
Params:
  • diskMBpsReadOnly – the diskMBpsReadOnly value to set
Returns:the DiskUpdate object itself.
/** * Set 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. * * @param diskMBpsReadOnly the diskMBpsReadOnly value to set * @return the DiskUpdate object itself. */
public DiskUpdate withDiskMBpsReadOnly(Long diskMBpsReadOnly) { this.diskMBpsReadOnly = diskMBpsReadOnly; return this; }
Get 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
/** * Get 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. * * @return the maxShares value */
public Integer maxShares() { return this.maxShares; }
Set 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.
Params:
  • maxShares – the maxShares value to set
Returns:the DiskUpdate object itself.
/** * Set 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. * * @param maxShares the maxShares value to set * @return the DiskUpdate object itself. */
public DiskUpdate withMaxShares(Integer maxShares) { this.maxShares = maxShares; return this; }
Get encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
Returns:the encryption value
/** * Get encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. * * @return the encryption value */
public Encryption encryption() { return this.encryption; }
Set encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
Params:
  • encryption – the encryption value to set
Returns:the DiskUpdate object itself.
/** * Set encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. * * @param encryption the encryption value to set * @return the DiskUpdate object itself. */
public DiskUpdate withEncryption(Encryption encryption) { this.encryption = encryption; return this; }
Get possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.
Returns:the networkAccessPolicy value
/** * Get possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'. * * @return the networkAccessPolicy value */
public NetworkAccessPolicy networkAccessPolicy() { return this.networkAccessPolicy; }
Set possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'.
Params:
  • networkAccessPolicy – the networkAccessPolicy value to set
Returns:the DiskUpdate object itself.
/** * Set possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll'. * * @param networkAccessPolicy the networkAccessPolicy value to set * @return the DiskUpdate object itself. */
public DiskUpdate withNetworkAccessPolicy(NetworkAccessPolicy networkAccessPolicy) { this.networkAccessPolicy = networkAccessPolicy; return this; }
Get aRM id of the DiskAccess resource for using private endpoints on disks.
Returns:the diskAccessId value
/** * Get aRM id of the DiskAccess resource for using private endpoints on disks. * * @return the diskAccessId value */
public String diskAccessId() { return this.diskAccessId; }
Set aRM id of the DiskAccess resource for using private endpoints on disks.
Params:
  • diskAccessId – the diskAccessId value to set
Returns:the DiskUpdate object itself.
/** * Set aRM id of the DiskAccess resource for using private endpoints on disks. * * @param diskAccessId the diskAccessId value to set * @return the DiskUpdate object itself. */
public DiskUpdate withDiskAccessId(String diskAccessId) { this.diskAccessId = diskAccessId; return this; }
Get 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
/** * Get 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. * * @return the tier value */
public String tier() { return this.tier; }
Set 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.
Params:
  • tier – the tier value to set
Returns:the DiskUpdate object itself.
/** * Set 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. * * @param tier the tier value to set * @return the DiskUpdate object itself. */
public DiskUpdate withTier(String tier) { this.tier = tier; return this; }
Get 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
/** * Get 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. * * @return the burstingEnabled value */
public Boolean burstingEnabled() { return this.burstingEnabled; }
Set 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.
Params:
  • burstingEnabled – the burstingEnabled value to set
Returns:the DiskUpdate object itself.
/** * Set 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. * * @param burstingEnabled the burstingEnabled value to set * @return the DiskUpdate object itself. */
public DiskUpdate withBurstingEnabled(Boolean burstingEnabled) { this.burstingEnabled = burstingEnabled; return this; }
Get purchase plan information to be added on the OS disk.
Returns:the purchasePlan value
/** * Get purchase plan information to be added on the OS disk. * * @return the purchasePlan value */
public PurchasePlan purchasePlan() { return this.purchasePlan; }
Set purchase plan information to be added on the OS disk.
Params:
  • purchasePlan – the purchasePlan value to set
Returns:the DiskUpdate object itself.
/** * Set purchase plan information to be added on the OS disk. * * @param purchasePlan the purchasePlan value to set * @return the DiskUpdate object itself. */
public DiskUpdate withPurchasePlan(PurchasePlan purchasePlan) { this.purchasePlan = purchasePlan; return this; }
Get resource tags.
Returns:the tags value
/** * Get resource tags. * * @return the tags value */
public Map<String, String> tags() { return this.tags; }
Set resource tags.
Params:
  • tags – the tags value to set
Returns:the DiskUpdate object itself.
/** * Set resource tags. * * @param tags the tags value to set * @return the DiskUpdate object itself. */
public DiskUpdate withTags(Map<String, String> tags) { this.tags = tags; return this; }
Get the sku value.
Returns:the sku value
/** * Get the sku value. * * @return the sku value */
public DiskSku sku() { return this.sku; }
Set the sku value.
Params:
  • sku – the sku value to set
Returns:the DiskUpdate object itself.
/** * Set the sku value. * * @param sku the sku value to set * @return the DiskUpdate object itself. */
public DiskUpdate withSku(DiskSku sku) { this.sku = sku; return this; } }