DiskCustomerManagedKey Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. DiskCustomerManagedKey
- com.
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 Disk |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Disk |
fromJson(JsonReader jsonReader)
Reads an instance of Disk |
|
Compute |
identityReference()
Get the identity |
| String |
keyUrl()
Get the key |
| Boolean |
rotationToLatestKeyVersionEnabled()
Get the rotation |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Disk |
withIdentityReference(ComputeNodeIdentityReference identityReference)
Set the identity |
|
Disk |
withKeyUrl(String keyUrl)
Set the key |
|
Disk |
withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled)
Set the rotation |
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:
Returns:
Throws:
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:
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:
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:
toJson
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:
Returns:
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:
Returns:
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:
Returns: