ImageDisk Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ImageDisk
- com.
Implements
public class ImageDisk
implements JsonSerializable<ImageDisk>
Describes a image disk.
Constructor Summary
Constructor | Description |
---|---|
ImageDisk() |
Creates an instance of Image |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
blobUri()
Get the blob |
Caching |
caching()
Get the caching property: Specifies the caching requirements. |
Disk |
diskEncryptionSet()
Get the disk |
Integer |
diskSizeGB()
Get the disk |
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
Sub |
managedDisk()
Get the managed |
Sub |
snapshot()
Get the snapshot property: The snapshot. |
Storage |
storageAccountType()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Image |
withBlobUri(String blobUri)
Set the blob |
Image |
withCaching(CachingTypes caching)
Set the caching property: Specifies the caching requirements. |
Image |
withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)
Set the disk |
Image |
withDiskSizeGB(Integer diskSizeGB)
Set the disk |
Image |
withManagedDisk(SubResource managedDisk)
Set the managed |
Image |
withSnapshot(SubResource snapshot)
Set the snapshot property: The snapshot. |
Image |
withStorageAccountType(StorageAccountTypes storageAccountType)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
ImageDisk
public ImageDisk()
Creates an instance of ImageDisk class.
Method Details
blobUri
public String blobUri()
Get the blobUri property: The Virtual Hard Disk.
Returns:
caching
public CachingTypes caching()
Get the caching property: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**.
Returns:
diskEncryptionSet
public DiskEncryptionSetParameters diskEncryptionSet()
Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed image disk.
Returns:
diskSizeGB
public Integer diskSizeGB()
Get the diskSizeGB property: 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. This value cannot be larger than 1023 GB.
Returns:
fromJson
public static ImageDisk fromJson(JsonReader jsonReader)
Reads an instance of ImageDisk from the JsonReader.
Parameters:
Returns:
Throws:
managedDisk
public SubResource managedDisk()
Get the managedDisk property: The managedDisk.
Returns:
snapshot
public SubResource snapshot()
Get the snapshot property: The snapshot.
Returns:
storageAccountType
public StorageAccountTypes storageAccountType()
Get the storageAccountType property: 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.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBlobUri
public ImageDisk withBlobUri(String blobUri)
Set the blobUri property: The Virtual Hard Disk.
Parameters:
Returns:
withCaching
public ImageDisk withCaching(CachingTypes caching)
Set the caching property: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**.
Parameters:
Returns:
withDiskEncryptionSet
public ImageDisk withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)
Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed image disk.
Parameters:
Returns:
withDiskSizeGB
public ImageDisk withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: 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. This value cannot be larger than 1023 GB.
Parameters:
Returns:
withManagedDisk
public ImageDisk withManagedDisk(SubResource managedDisk)
Set the managedDisk property: The managedDisk.
Parameters:
Returns:
withSnapshot
public ImageDisk withSnapshot(SubResource snapshot)
Set the snapshot property: The snapshot.
Parameters:
Returns:
withStorageAccountType
public ImageDisk withStorageAccountType(StorageAccountTypes storageAccountType)
Set the storageAccountType property: 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.
Parameters:
Returns:
Applies to
Azure SDK for Java