你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DiskSecurityProfile Class

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

Implements

public final class DiskSecurityProfile
implements JsonSerializable<DiskSecurityProfile>

Contains the security related information for the resource.

Constructor Summary

Constructor Description
DiskSecurityProfile()

Creates an instance of DiskSecurityProfile class.

Method Summary

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

Reads an instance of DiskSecurityProfile from the JsonReader.

String secureVMDiskEncryptionSetId()

Get the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.

DiskSecurityTypes securityType()

Get the securityType property: Specifies the SecurityType of the VM.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskSecurityProfile withSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId)

Set the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.

DiskSecurityProfile withSecurityType(DiskSecurityTypes securityType)

Set the securityType property: Specifies the SecurityType of the VM.

Methods inherited from java.lang.Object

Constructor Details

DiskSecurityProfile

public DiskSecurityProfile()

Creates an instance of DiskSecurityProfile class.

Method Details

fromJson

public static DiskSecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of DiskSecurityProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

secureVMDiskEncryptionSetId

public String secureVMDiskEncryptionSetId()

Get the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.

Returns:

the secureVMDiskEncryptionSetId value.

securityType

public DiskSecurityTypes securityType()

Get the securityType property: Specifies the SecurityType of the VM. Applicable for OS disks only.

Returns:

the securityType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSecureVMDiskEncryptionSetId

public DiskSecurityProfile withSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId)

Set the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.

Parameters:

secureVMDiskEncryptionSetId - the secureVMDiskEncryptionSetId value to set.

Returns:

the DiskSecurityProfile object itself.

withSecurityType

public DiskSecurityProfile withSecurityType(DiskSecurityTypes securityType)

Set the securityType property: Specifies the SecurityType of the VM. Applicable for OS disks only.

Parameters:

securityType - the securityType value to set.

Returns:

the DiskSecurityProfile object itself.

Applies to