DiskCustomerManagedKey Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.DiskCustomerManagedKey

Implements

public final class DiskCustomerManagedKey
implements JsonSerializable<DiskCustomerManagedKey>

The Customer Managed Key reference to encrypt the Disk.

Constructor Summary

Constructor Description
DiskCustomerManagedKey()

Creates an instance of DiskCustomerManagedKey class.

Method Summary

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

Reads an instance of DiskCustomerManagedKey from the JsonReader.

ComputeNodeIdentityReference identityReference()

Get the identityReference property: The reference of one of the pool identities to encrypt Disk.

String keyUrl()

Get the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault.

Boolean rotationToLatestKeyVersionEnabled()

Get the rotationToLatestKeyVersionEnabled property: Set this flag to true to enable auto-updating of the Disk Encryption to the latest key version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskCustomerManagedKey withIdentityReference(ComputeNodeIdentityReference identityReference)

Set the identityReference property: The reference of one of the pool identities to encrypt Disk.

DiskCustomerManagedKey withKeyUrl(String keyUrl)

Set the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault.

DiskCustomerManagedKey withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled)

Set the rotationToLatestKeyVersionEnabled property: Set this flag to true to enable auto-updating of the Disk Encryption to the latest key version.

Methods inherited from java.lang.Object

Constructor Details

DiskCustomerManagedKey

public DiskCustomerManagedKey()

Creates an instance of DiskCustomerManagedKey class.

Method Details

fromJson

public static DiskCustomerManagedKey fromJson(JsonReader jsonReader)

Reads an instance of DiskCustomerManagedKey from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identityReference

public ComputeNodeIdentityReference identityReference()

Get the identityReference property: The reference of one of the pool identities to encrypt Disk. This identity will be used to access the KeyVault.

Returns:

the identityReference value.

keyUrl

public String keyUrl()

Get the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.

Returns:

the keyUrl value.

rotationToLatestKeyVersionEnabled

public Boolean rotationToLatestKeyVersionEnabled()

Get the rotationToLatestKeyVersionEnabled property: Set this flag to true to enable auto-updating of the Disk Encryption to the latest key version. Default is false.

Returns:

the rotationToLatestKeyVersionEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentityReference

public DiskCustomerManagedKey withIdentityReference(ComputeNodeIdentityReference identityReference)

Set the identityReference property: The reference of one of the pool identities to encrypt Disk. This identity will be used to access the KeyVault.

Parameters:

identityReference - the identityReference value to set.

Returns:

the DiskCustomerManagedKey object itself.

withKeyUrl

public DiskCustomerManagedKey withKeyUrl(String keyUrl)

Set the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.

Parameters:

keyUrl - the keyUrl value to set.

Returns:

the DiskCustomerManagedKey object itself.

withRotationToLatestKeyVersionEnabled

public DiskCustomerManagedKey withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled)

Set the rotationToLatestKeyVersionEnabled property: Set this flag to true to enable auto-updating of the Disk Encryption to the latest key version. Default is false.

Parameters:

rotationToLatestKeyVersionEnabled - the rotationToLatestKeyVersionEnabled value to set.

Returns:

the DiskCustomerManagedKey object itself.

Applies to