OSDiskImageEncryption Class

public final class OSDiskImageEncryption
extends DiskImageEncryption

Contains encryption settings for an OS disk image.

Constructor Summary

Constructor Description
OSDiskImageEncryption()

Creates an instance of OSDiskImageEncryption class.

Method Summary

Modifier and Type Method and Description
static OSDiskImageEncryption fromJson(JsonReader jsonReader)

Reads an instance of OSDiskImageEncryption from the JsonReader.

OSDiskImageSecurityProfile securityProfile()

Get the securityProfile property: This property specifies the security profile of an OS disk image.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OSDiskImageEncryption withDiskEncryptionSetId(String diskEncryptionSetId)

Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.

OSDiskImageEncryption withSecurityProfile(OSDiskImageSecurityProfile securityProfile)

Set the securityProfile property: This property specifies the security profile of an OS disk image.

Methods inherited from DiskImageEncryption

Methods inherited from java.lang.Object

Constructor Details

OSDiskImageEncryption

public OSDiskImageEncryption()

Creates an instance of OSDiskImageEncryption class.

Method Details

fromJson

public static OSDiskImageEncryption fromJson(JsonReader jsonReader)

Reads an instance of OSDiskImageEncryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OSDiskImageEncryption 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 OSDiskImageEncryption.

securityProfile

public OSDiskImageSecurityProfile securityProfile()

Get the securityProfile property: This property specifies the security profile of an OS disk image.

Returns:

the securityProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

OSDiskImageEncryption.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

OSDiskImageEncryption.validate()

withDiskEncryptionSetId

public OSDiskImageEncryption withDiskEncryptionSetId(String diskEncryptionSetId)

Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.

Overrides:

OSDiskImageEncryption.withDiskEncryptionSetId(String diskEncryptionSetId)

Parameters:

diskEncryptionSetId

withSecurityProfile

public OSDiskImageEncryption withSecurityProfile(OSDiskImageSecurityProfile securityProfile)

Set the securityProfile property: This property specifies the security profile of an OS disk image.

Parameters:

securityProfile - the securityProfile value to set.

Returns:

the OSDiskImageEncryption object itself.

Applies to