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 com.microsoft.azure.SubResource;
import com.fasterxml.jackson.annotation.JsonProperty;
Describes a image disk.
/**
* Describes a image disk.
*/
public class ImageDisk {
The snapshot.
/**
* The snapshot.
*/
@JsonProperty(value = "snapshot")
private SubResource snapshot;
The managedDisk.
/**
* The managedDisk.
*/
@JsonProperty(value = "managedDisk")
private SubResource managedDisk;
The Virtual Hard Disk.
/**
* The Virtual Hard Disk.
*/
@JsonProperty(value = "blobUri")
private String blobUri;
Specifies the caching requirements. <br><br> Possible values
are: <br><br> **None** <br><br> **ReadOnly**
<br><br> **ReadWrite** <br><br> Default: **None
for Standard storage. ReadOnly for Premium storage**. Possible values
include: 'None', 'ReadOnly', 'ReadWrite'.
/**
* Specifies the caching requirements. <br><br> Possible values
* are: <br><br> **None** <br><br> **ReadOnly**
* <br><br> **ReadWrite** <br><br> Default: **None
* for Standard storage. ReadOnly for Premium storage**. Possible values
* include: 'None', 'ReadOnly', 'ReadWrite'.
*/
@JsonProperty(value = "caching")
private CachingTypes caching;
Specifies the size of empty data disks in gigabytes. This element can be
used to overwrite the name of the disk in a virtual machine image.
<br><br> This value cannot be larger than 1023 GB.
/**
* Specifies the size of empty data disks in gigabytes. This element can be
* used to overwrite the name of the disk in a virtual machine image.
* <br><br> This value cannot be larger than 1023 GB.
*/
@JsonProperty(value = "diskSizeGB")
private Integer diskSizeGB;
Specifies the storage account type for the managed disk. NOTE:
UltraSSD_LRS can only be used with data disks, it cannot be used with OS
Disk. Possible values include: 'Standard_LRS', 'Premium_LRS',
'StandardSSD_LRS', 'UltraSSD_LRS'.
/**
* Specifies the storage account type for the managed disk. NOTE:
* UltraSSD_LRS can only be used with data disks, it cannot be used with OS
* Disk. Possible values include: 'Standard_LRS', 'Premium_LRS',
* 'StandardSSD_LRS', 'UltraSSD_LRS'.
*/
@JsonProperty(value = "storageAccountType")
private StorageAccountTypes storageAccountType;
Specifies the customer managed disk encryption set resource id for the
managed image disk.
/**
* Specifies the customer managed disk encryption set resource id for the
* managed image disk.
*/
@JsonProperty(value = "diskEncryptionSet")
private DiskEncryptionSetParameters diskEncryptionSet;
Get the snapshot.
Returns: the snapshot value
/**
* Get the snapshot.
*
* @return the snapshot value
*/
public SubResource snapshot() {
return this.snapshot;
}
Set the snapshot.
Params: - snapshot – the snapshot value to set
Returns: the ImageDisk object itself.
/**
* Set the snapshot.
*
* @param snapshot the snapshot value to set
* @return the ImageDisk object itself.
*/
public ImageDisk withSnapshot(SubResource snapshot) {
this.snapshot = snapshot;
return this;
}
Get the managedDisk.
Returns: the managedDisk value
/**
* Get the managedDisk.
*
* @return the managedDisk value
*/
public SubResource managedDisk() {
return this.managedDisk;
}
Set the managedDisk.
Params: - managedDisk – the managedDisk value to set
Returns: the ImageDisk object itself.
/**
* Set the managedDisk.
*
* @param managedDisk the managedDisk value to set
* @return the ImageDisk object itself.
*/
public ImageDisk withManagedDisk(SubResource managedDisk) {
this.managedDisk = managedDisk;
return this;
}
Get the Virtual Hard Disk.
Returns: the blobUri value
/**
* Get the Virtual Hard Disk.
*
* @return the blobUri value
*/
public String blobUri() {
return this.blobUri;
}
Set the Virtual Hard Disk.
Params: - blobUri – the blobUri value to set
Returns: the ImageDisk object itself.
/**
* Set the Virtual Hard Disk.
*
* @param blobUri the blobUri value to set
* @return the ImageDisk object itself.
*/
public ImageDisk withBlobUri(String blobUri) {
this.blobUri = blobUri;
return this;
}
Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
Returns: the caching value
/**
* Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
*
* @return the caching value
*/
public CachingTypes caching() {
return this.caching;
}
Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
Params: - caching – the caching value to set
Returns: the ImageDisk object itself.
/**
* Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
*
* @param caching the caching value to set
* @return the ImageDisk object itself.
*/
public ImageDisk withCaching(CachingTypes caching) {
this.caching = caching;
return this;
}
Get specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
Returns: the diskSizeGB value
/**
* Get specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
*
* @return the diskSizeGB value
*/
public Integer diskSizeGB() {
return this.diskSizeGB;
}
Set specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
Params: - diskSizeGB – the diskSizeGB value to set
Returns: the ImageDisk object itself.
/**
* Set specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
*
* @param diskSizeGB the diskSizeGB value to set
* @return the ImageDisk object itself.
*/
public ImageDisk withDiskSizeGB(Integer diskSizeGB) {
this.diskSizeGB = diskSizeGB;
return this;
}
Get specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'.
Returns: the storageAccountType value
/**
* Get specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'.
*
* @return the storageAccountType value
*/
public StorageAccountTypes storageAccountType() {
return this.storageAccountType;
}
Set specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'.
Params: - storageAccountType – the storageAccountType value to set
Returns: the ImageDisk object itself.
/**
* Set specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'.
*
* @param storageAccountType the storageAccountType value to set
* @return the ImageDisk object itself.
*/
public ImageDisk withStorageAccountType(StorageAccountTypes storageAccountType) {
this.storageAccountType = storageAccountType;
return this;
}
Get specifies the customer managed disk encryption set resource id for the managed image disk.
Returns: the diskEncryptionSet value
/**
* Get specifies the customer managed disk encryption set resource id for the managed image disk.
*
* @return the diskEncryptionSet value
*/
public DiskEncryptionSetParameters diskEncryptionSet() {
return this.diskEncryptionSet;
}
Set specifies the customer managed disk encryption set resource id for the managed image disk.
Params: - diskEncryptionSet – the diskEncryptionSet value to set
Returns: the ImageDisk object itself.
/**
* Set specifies the customer managed disk encryption set resource id for the managed image disk.
*
* @param diskEncryptionSet the diskEncryptionSet value to set
* @return the ImageDisk object itself.
*/
public ImageDisk withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet) {
this.diskEncryptionSet = diskEncryptionSet;
return this;
}
}