Share via


EncryptionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.automation.models.EncryptionProperties

Implements

public final class EncryptionProperties
implements JsonSerializable<EncryptionProperties>

The encryption settings for automation account.

Constructor Summary

Constructor Description
EncryptionProperties()

Creates an instance of EncryptionProperties class.

Method Summary

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

Reads an instance of EncryptionProperties from the JsonReader.

EncryptionPropertiesIdentity identity()

Get the identity property: User identity used for CMK.

EncryptionKeySourceType keySource()

Get the keySource property: Encryption Key Source.

KeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Key vault properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EncryptionProperties withIdentity(EncryptionPropertiesIdentity identity)

Set the identity property: User identity used for CMK.

EncryptionProperties withKeySource(EncryptionKeySourceType keySource)

Set the keySource property: Encryption Key Source.

EncryptionProperties withKeyVaultProperties(KeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Key vault properties.

Methods inherited from java.lang.Object

Constructor Details

EncryptionProperties

public EncryptionProperties()

Creates an instance of EncryptionProperties class.

Method Details

fromJson

public static EncryptionProperties fromJson(JsonReader jsonReader)

Reads an instance of EncryptionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public EncryptionPropertiesIdentity identity()

Get the identity property: User identity used for CMK.

Returns:

the identity value.

keySource

public EncryptionKeySourceType keySource()

Get the keySource property: Encryption Key Source.

Returns:

the keySource value.

keyVaultProperties

public KeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Key vault properties.

Returns:

the keyVaultProperties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public EncryptionProperties withIdentity(EncryptionPropertiesIdentity identity)

Set the identity property: User identity used for CMK.

Parameters:

identity - the identity value to set.

Returns:

the EncryptionProperties object itself.

withKeySource

public EncryptionProperties withKeySource(EncryptionKeySourceType keySource)

Set the keySource property: Encryption Key Source.

Parameters:

keySource - the keySource value to set.

Returns:

the EncryptionProperties object itself.

withKeyVaultProperties

public EncryptionProperties withKeyVaultProperties(KeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Key vault properties.

Parameters:

keyVaultProperties - the keyVaultProperties value to set.

Returns:

the EncryptionProperties object itself.

Applies to