Partager via


EncryptionProperties Class

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

Implements

public final class EncryptionProperties
implements JsonSerializable<EncryptionProperties>

The container group encryption properties.

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.

String identity()

Get the identity property: The keyvault managed identity.

String keyName()

Get the keyName property: The encryption key name.

String keyVersion()

Get the keyVersion property: The encryption key version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String vaultBaseUrl()

Get the vaultBaseUrl property: The keyvault base url.

EncryptionProperties withIdentity(String identity)

Set the identity property: The keyvault managed identity.

EncryptionProperties withKeyName(String keyName)

Set the keyName property: The encryption key name.

EncryptionProperties withKeyVersion(String keyVersion)

Set the keyVersion property: The encryption key version.

EncryptionProperties withVaultBaseUrl(String vaultBaseUrl)

Set the vaultBaseUrl property: The keyvault base url.

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 the deserialized JSON object was missing any required properties.

identity

public String identity()

Get the identity property: The keyvault managed identity.

Returns:

the identity value.

keyName

public String keyName()

Get the keyName property: The encryption key name.

Returns:

the keyName value.

keyVersion

public String keyVersion()

Get the keyVersion property: The encryption key version.

Returns:

the keyVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vaultBaseUrl

public String vaultBaseUrl()

Get the vaultBaseUrl property: The keyvault base url.

Returns:

the vaultBaseUrl value.

withIdentity

public EncryptionProperties withIdentity(String identity)

Set the identity property: The keyvault managed identity.

Parameters:

identity - the identity value to set.

Returns:

the EncryptionProperties object itself.

withKeyName

public EncryptionProperties withKeyName(String keyName)

Set the keyName property: The encryption key name.

Parameters:

keyName - the keyName value to set.

Returns:

the EncryptionProperties object itself.

withKeyVersion

public EncryptionProperties withKeyVersion(String keyVersion)

Set the keyVersion property: The encryption key version.

Parameters:

keyVersion - the keyVersion value to set.

Returns:

the EncryptionProperties object itself.

withVaultBaseUrl

public EncryptionProperties withVaultBaseUrl(String vaultBaseUrl)

Set the vaultBaseUrl property: The keyvault base url.

Parameters:

vaultBaseUrl - the vaultBaseUrl value to set.

Returns:

the EncryptionProperties object itself.

Applies to