OSDiskImageSecurityProfile Class

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

Implements

public final class OSDiskImageSecurityProfile
implements JsonSerializable<OSDiskImageSecurityProfile>

Contains security profile for an OS disk image.

Constructor Summary

Constructor Description
OSDiskImageSecurityProfile()

Creates an instance of OSDiskImageSecurityProfile class.

Method Summary

Modifier and Type Method and Description
ConfidentialVMEncryptionType confidentialVMEncryptionType()

Get the confidentialVMEncryptionType property: confidential VM encryption types.

static OSDiskImageSecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of OSDiskImageSecurityProfile from the JsonReader.

String secureVMDiskEncryptionSetId()

Get the secureVMDiskEncryptionSetId property: secure VM disk encryption set id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OSDiskImageSecurityProfile withConfidentialVMEncryptionType(ConfidentialVMEncryptionType confidentialVMEncryptionType)

Set the confidentialVMEncryptionType property: confidential VM encryption types.

OSDiskImageSecurityProfile withSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId)

Set the secureVMDiskEncryptionSetId property: secure VM disk encryption set id.

Methods inherited from java.lang.Object

Constructor Details

OSDiskImageSecurityProfile

public OSDiskImageSecurityProfile()

Creates an instance of OSDiskImageSecurityProfile class.

Method Details

confidentialVMEncryptionType

public ConfidentialVMEncryptionType confidentialVMEncryptionType()

Get the confidentialVMEncryptionType property: confidential VM encryption types.

Returns:

the confidentialVMEncryptionType value.

fromJson

public static OSDiskImageSecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of OSDiskImageSecurityProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

secureVMDiskEncryptionSetId

public String secureVMDiskEncryptionSetId()

Get the secureVMDiskEncryptionSetId property: secure VM disk encryption set id.

Returns:

the secureVMDiskEncryptionSetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConfidentialVMEncryptionType

public OSDiskImageSecurityProfile withConfidentialVMEncryptionType(ConfidentialVMEncryptionType confidentialVMEncryptionType)

Set the confidentialVMEncryptionType property: confidential VM encryption types.

Parameters:

confidentialVMEncryptionType - the confidentialVMEncryptionType value to set.

Returns:

the OSDiskImageSecurityProfile object itself.

withSecureVMDiskEncryptionSetId

public OSDiskImageSecurityProfile withSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId)

Set the secureVMDiskEncryptionSetId property: secure VM disk encryption set id.

Parameters:

secureVMDiskEncryptionSetId - the secureVMDiskEncryptionSetId value to set.

Returns:

the OSDiskImageSecurityProfile object itself.

Applies to