DiskInstanceView Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.DiskInstanceView

Implements

public final class DiskInstanceView
implements JsonSerializable<DiskInstanceView>

The instance view of the disk.

Constructor Summary

Constructor Description
DiskInstanceView()

Creates an instance of DiskInstanceView class.

Method Summary

Modifier and Type Method and Description
List<DiskEncryptionSettings> encryptionSettings()

Get the encryptionSettings property: Specifies the encryption settings for the OS Disk.

static DiskInstanceView fromJson(JsonReader jsonReader)

Reads an instance of DiskInstanceView from the JsonReader.

String name()

Get the name property: The disk name.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskInstanceView withEncryptionSettings(List<DiskEncryptionSettings> encryptionSettings)

Set the encryptionSettings property: Specifies the encryption settings for the OS Disk.

DiskInstanceView withName(String name)

Set the name property: The disk name.

DiskInstanceView withStatuses(List<InstanceViewStatus> statuses)

Set the statuses property: The resource status information.

Methods inherited from java.lang.Object

Constructor Details

DiskInstanceView

public DiskInstanceView()

Creates an instance of DiskInstanceView class.

Method Details

encryptionSettings

public List encryptionSettings()

Get the encryptionSettings property: Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15.

Returns:

the encryptionSettings value.

fromJson

public static DiskInstanceView fromJson(JsonReader jsonReader)

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.

name

public String name()

Get the name property: The disk name.

Returns:

the name value.

statuses

public List statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEncryptionSettings

public DiskInstanceView withEncryptionSettings(List encryptionSettings)

Set the encryptionSettings property: Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15.

Parameters:

encryptionSettings - the encryptionSettings value to set.

Returns:

the DiskInstanceView object itself.

withName

public DiskInstanceView withName(String name)

Set the name property: The disk name.

Parameters:

name - the name value to set.

Returns:

the DiskInstanceView object itself.

withStatuses

public DiskInstanceView withStatuses(List statuses)

Set the statuses property: The resource status information.

Parameters:

statuses - the statuses value to set.

Returns:

the DiskInstanceView object itself.

Applies to