DiskCustomerManagedKey Class
- java.
lang. Object - com.
azure. compute. 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 |
|
Batch |
getIdentityReference()
Get the identity |
| String |
getKeyUrl()
Get the key |
| Boolean |
isRotationToLatestKeyVersionEnabled()
Get the rotation |
|
Disk |
setIdentityReference(BatchPoolIdentityReference identityReference)
Set the identity |
|
Disk |
setKeyUrl(String keyUrl)
Set the key |
|
Disk |
setRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled)
Set the rotation |
|
Json |
toJson(JsonWriter jsonWriter) |
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:
getIdentityReference
public BatchPoolIdentityReference getIdentityReference()
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:
getKeyUrl
public String getKeyUrl()
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:
isRotationToLatestKeyVersionEnabled
public Boolean isRotationToLatestKeyVersionEnabled()
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:
setIdentityReference
public DiskCustomerManagedKey setIdentityReference(BatchPoolIdentityReference 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:
setKeyUrl
public DiskCustomerManagedKey setKeyUrl(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:
setRotationToLatestKeyVersionEnabled
public DiskCustomerManagedKey setRotationToLatestKeyVersionEnabled(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: