KeyVaultProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.eventhubs.models.KeyVaultProperties

Implements

public final class KeyVaultProperties
implements JsonSerializable<KeyVaultProperties>

Properties to configure keyVault Properties.

Constructor Summary

Constructor Description
KeyVaultProperties()

Creates an instance of KeyVaultProperties class.

Method Summary

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

Reads an instance of KeyVaultProperties from the JsonReader.

UserAssignedIdentityProperties identity()

Get the identity property: The identity property.

String keyName()

Get the keyName property: Name of the Key from KeyVault.

String keyVaultUri()

Get the keyVaultUri property: Uri of KeyVault.

String keyVersion()

Get the keyVersion property: Key Version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyVaultProperties withIdentity(UserAssignedIdentityProperties identity)

Set the identity property: The identity property.

KeyVaultProperties withKeyName(String keyName)

Set the keyName property: Name of the Key from KeyVault.

KeyVaultProperties withKeyVaultUri(String keyVaultUri)

Set the keyVaultUri property: Uri of KeyVault.

KeyVaultProperties withKeyVersion(String keyVersion)

Set the keyVersion property: Key Version.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultProperties

public KeyVaultProperties()

Creates an instance of KeyVaultProperties class.

Method Details

fromJson

public static KeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public UserAssignedIdentityProperties identity()

Get the identity property: The identity property.

Returns:

the identity value.

keyName

public String keyName()

Get the keyName property: Name of the Key from KeyVault.

Returns:

the keyName value.

keyVaultUri

public String keyVaultUri()

Get the keyVaultUri property: Uri of KeyVault.

Returns:

the keyVaultUri value.

keyVersion

public String keyVersion()

Get the keyVersion property: Key Version.

Returns:

the keyVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public KeyVaultProperties withIdentity(UserAssignedIdentityProperties identity)

Set the identity property: The identity property.

Parameters:

identity - the identity value to set.

Returns:

the KeyVaultProperties object itself.

withKeyName

public KeyVaultProperties withKeyName(String keyName)

Set the keyName property: Name of the Key from KeyVault.

Parameters:

keyName - the keyName value to set.

Returns:

the KeyVaultProperties object itself.

withKeyVaultUri

public KeyVaultProperties withKeyVaultUri(String keyVaultUri)

Set the keyVaultUri property: Uri of KeyVault.

Parameters:

keyVaultUri - the keyVaultUri value to set.

Returns:

the KeyVaultProperties object itself.

withKeyVersion

public KeyVaultProperties withKeyVersion(String keyVersion)

Set the keyVersion property: Key Version.

Parameters:

keyVersion - the keyVersion value to set.

Returns:

the KeyVaultProperties object itself.

Applies to