EncryptionKeyVaultProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.avs.models.EncryptionKeyVaultProperties

public final class EncryptionKeyVaultProperties

An Encryption Key.

Constructor Summary

Constructor Description
EncryptionKeyVaultProperties()

Creates an instance of EncryptionKeyVaultProperties class.

Method Summary

Modifier and Type Method and Description
String autoDetectedKeyVersion()

Get the autoDetectedKeyVersion property: The auto-detected version of the key if versionType is auto-detected.

String keyName()

Get the keyName property: The name of the key.

EncryptionKeyStatus keyState()

Get the keyState property: The state of key provided.

String keyVaultUrl()

Get the keyVaultUrl property: The URL of the vault.

String keyVersion()

Get the keyVersion property: The version of the key.

void validate()

Validates the instance.

EncryptionVersionType versionType()

Get the versionType property: Property of the key if user provided or auto detected.

EncryptionKeyVaultProperties withKeyName(String keyName)

Set the keyName property: The name of the key.

EncryptionKeyVaultProperties withKeyVaultUrl(String keyVaultUrl)

Set the keyVaultUrl property: The URL of the vault.

EncryptionKeyVaultProperties withKeyVersion(String keyVersion)

Set the keyVersion property: The version of the key.

Methods inherited from java.lang.Object

Constructor Details

EncryptionKeyVaultProperties

public EncryptionKeyVaultProperties()

Creates an instance of EncryptionKeyVaultProperties class.

Method Details

autoDetectedKeyVersion

public String autoDetectedKeyVersion()

Get the autoDetectedKeyVersion property: The auto-detected version of the key if versionType is auto-detected.

Returns:

the autoDetectedKeyVersion value.

keyName

public String keyName()

Get the keyName property: The name of the key.

Returns:

the keyName value.

keyState

public EncryptionKeyStatus keyState()

Get the keyState property: The state of key provided.

Returns:

the keyState value.

keyVaultUrl

public String keyVaultUrl()

Get the keyVaultUrl property: The URL of the vault.

Returns:

the keyVaultUrl value.

keyVersion

public String keyVersion()

Get the keyVersion property: The version of the key.

Returns:

the keyVersion value.

validate

public void validate()

Validates the instance.

versionType

public EncryptionVersionType versionType()

Get the versionType property: Property of the key if user provided or auto detected.

Returns:

the versionType value.

withKeyName

public EncryptionKeyVaultProperties withKeyName(String keyName)

Set the keyName property: The name of the key.

Parameters:

keyName - the keyName value to set.

Returns:

the EncryptionKeyVaultProperties object itself.

withKeyVaultUrl

public EncryptionKeyVaultProperties withKeyVaultUrl(String keyVaultUrl)

Set the keyVaultUrl property: The URL of the vault.

Parameters:

keyVaultUrl - the keyVaultUrl value to set.

Returns:

the EncryptionKeyVaultProperties object itself.

withKeyVersion

public EncryptionKeyVaultProperties withKeyVersion(String keyVersion)

Set the keyVersion property: The version of the key.

Parameters:

keyVersion - the keyVersion value to set.

Returns:

the EncryptionKeyVaultProperties object itself.

Applies to