Class DiskInstanceView
java.lang.Object
com.azure.resourcemanager.compute.models.DiskInstanceView
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskInstanceView>
public final class DiskInstanceView
extends Object
implements com.azure.json.JsonSerializable<DiskInstanceView>
The instance view of the disk.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the encryptionSettings property: Specifies the encryption settings for the OS Disk.static DiskInstanceViewfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskInstanceView from the JsonReader.name()Get the name property: The disk name.statuses()Get the statuses property: The resource status information.Get the storageAlignmentStatus property: Specifies the storage alignment status for the disk.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEncryptionSettings(List<DiskEncryptionSettings> encryptionSettings) Set the encryptionSettings property: Specifies the encryption settings for the OS Disk.Set the name property: The disk name.withStatuses(List<InstanceViewStatus> statuses) Set the statuses property: The resource status information.withStorageAlignmentStatus(StorageAlignmentStatus storageAlignmentStatus) Set the storageAlignmentStatus property: Specifies the storage alignment status for the disk.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DiskInstanceView
public DiskInstanceView()Creates an instance of DiskInstanceView class.
-
-
Method Details
-
name
-
withName
Set the name property: The disk name.- Parameters:
name- the name value to set.- Returns:
- the DiskInstanceView object itself.
-
encryptionSettings
Get the encryptionSettings property: Specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15.- Returns:
- the encryptionSettings value.
-
withEncryptionSettings
Set the encryptionSettings property: Specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15.- Parameters:
encryptionSettings- the encryptionSettings value to set.- Returns:
- the DiskInstanceView object itself.
-
statuses
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
withStatuses
Set the statuses property: The resource status information.- Parameters:
statuses- the statuses value to set.- Returns:
- the DiskInstanceView object itself.
-
storageAlignmentStatus
Get the storageAlignmentStatus property: Specifies the storage alignment status for the disk.- Returns:
- the storageAlignmentStatus value.
-
withStorageAlignmentStatus
Set the storageAlignmentStatus property: Specifies the storage alignment status for the disk.- Parameters:
storageAlignmentStatus- the storageAlignmentStatus value to set.- Returns:
- the DiskInstanceView object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiskInstanceView>- Throws:
IOException
-
fromJson
Reads an instance of DiskInstanceView from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskInstanceView if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DiskInstanceView.
-