ManagedDiskEncryption Class

  • java.lang.Object
    • com.azure.resourcemanager.databricks.models.ManagedDiskEncryption

Implements

public final class ManagedDiskEncryption
implements JsonSerializable<ManagedDiskEncryption>

The object that contains details of encryption used on the workspace.

Constructor Summary

Constructor Description
ManagedDiskEncryption()

Creates an instance of ManagedDiskEncryption class.

Method Summary

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

Reads an instance of ManagedDiskEncryption from the JsonReader.

EncryptionKeySource keySource()

Get the keySource property: The encryption keySource (provider).

ManagedDiskEncryptionKeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Key Vault input properties for encryption.

Boolean rotationToLatestKeyVersionEnabled()

Get the rotationToLatestKeyVersionEnabled property: Indicate whether the latest key version should be automatically used for Managed Disk Encryption.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedDiskEncryption withKeySource(EncryptionKeySource keySource)

Set the keySource property: The encryption keySource (provider).

ManagedDiskEncryption withKeyVaultProperties(ManagedDiskEncryptionKeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Key Vault input properties for encryption.

ManagedDiskEncryption withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled)

Set the rotationToLatestKeyVersionEnabled property: Indicate whether the latest key version should be automatically used for Managed Disk Encryption.

Methods inherited from java.lang.Object

Constructor Details

ManagedDiskEncryption

public ManagedDiskEncryption()

Creates an instance of ManagedDiskEncryption class.

Method Details

fromJson

public static ManagedDiskEncryption fromJson(JsonReader jsonReader)

Reads an instance of ManagedDiskEncryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedDiskEncryption if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

keySource

public EncryptionKeySource keySource()

Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault.

Returns:

the keySource value.

keyVaultProperties

public ManagedDiskEncryptionKeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Key Vault input properties for encryption.

Returns:

the keyVaultProperties value.

rotationToLatestKeyVersionEnabled

public Boolean rotationToLatestKeyVersionEnabled()

Get the rotationToLatestKeyVersionEnabled property: Indicate whether the latest key version should be automatically used for Managed Disk Encryption.

Returns:

the rotationToLatestKeyVersionEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeySource

public ManagedDiskEncryption withKeySource(EncryptionKeySource keySource)

Set the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault.

Parameters:

keySource - the keySource value to set.

Returns:

the ManagedDiskEncryption object itself.

withKeyVaultProperties

public ManagedDiskEncryption withKeyVaultProperties(ManagedDiskEncryptionKeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Key Vault input properties for encryption.

Parameters:

keyVaultProperties - the keyVaultProperties value to set.

Returns:

the ManagedDiskEncryption object itself.

withRotationToLatestKeyVersionEnabled

public ManagedDiskEncryption withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled)

Set the rotationToLatestKeyVersionEnabled property: Indicate whether the latest key version should be automatically used for Managed Disk Encryption.

Parameters:

rotationToLatestKeyVersionEnabled - the rotationToLatestKeyVersionEnabled value to set.

Returns:

the ManagedDiskEncryption object itself.

Applies to