Freigeben über


AccountEncryption Class

  • java.lang.Object
    • com.azure.resourcemanager.netapp.models.AccountEncryption

Implements

public final class AccountEncryption
implements JsonSerializable<AccountEncryption>

Encryption settings.

Constructor Summary

Constructor Description
AccountEncryption()

Creates an instance of AccountEncryption class.

Method Summary

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

Reads an instance of AccountEncryption from the JsonReader.

EncryptionIdentity identity()

Get the identity property: Identity used to authenticate to KeyVault.

KeySource keySource()

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

KeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Properties provided by KeVault.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccountEncryption withIdentity(EncryptionIdentity identity)

Set the identity property: Identity used to authenticate to KeyVault.

AccountEncryption withKeySource(KeySource keySource)

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

AccountEncryption withKeyVaultProperties(KeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Properties provided by KeVault.

Methods inherited from java.lang.Object

Constructor Details

AccountEncryption

public AccountEncryption()

Creates an instance of AccountEncryption class.

Method Details

fromJson

public static AccountEncryption fromJson(JsonReader jsonReader)

Reads an instance of AccountEncryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public EncryptionIdentity identity()

Get the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'.

Returns:

the identity value.

keySource

public KeySource keySource()

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

Returns:

the keySource value.

keyVaultProperties

public KeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'.

Returns:

the keyVaultProperties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public AccountEncryption withIdentity(EncryptionIdentity identity)

Set the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'.

Parameters:

identity - the identity value to set.

Returns:

the AccountEncryption object itself.

withKeySource

public AccountEncryption withKeySource(KeySource keySource)

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

Parameters:

keySource - the keySource value to set.

Returns:

the AccountEncryption object itself.

withKeyVaultProperties

public AccountEncryption withKeyVaultProperties(KeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'.

Parameters:

keyVaultProperties - the keyVaultProperties value to set.

Returns:

the AccountEncryption object itself.

Applies to