次の方法で共有


EncryptionKeyVaultProperties Class

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

Implements

public final class EncryptionKeyVaultProperties
implements JsonSerializable<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.

static EncryptionKeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of EncryptionKeyVaultProperties from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

fromJson

public static EncryptionKeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of EncryptionKeyVaultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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