KeyVaultProperties Class
- java.
lang. Object - com.
azure. resourcemanager. eventhubs. models. KeyVaultProperties
- com.
Implements
public final class KeyVaultProperties
implements JsonSerializable<KeyVaultProperties>
Properties to configure keyVault Properties.
Constructor Summary
Constructor | Description |
---|---|
KeyVaultProperties() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
User |
identity()
Get the identity property: The identity property. |
String |
keyName()
Get the key |
String |
keyVaultUri()
Get the key |
String |
keyVersion()
Get the key |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Key |
withIdentity(UserAssignedIdentityProperties identity)
Set the identity property: The identity property. |
Key |
withKeyName(String keyName)
Set the key |
Key |
withKeyVaultUri(String keyVaultUri)
Set the key |
Key |
withKeyVersion(String keyVersion)
Set the key |
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:
Returns:
Throws:
identity
public UserAssignedIdentityProperties identity()
Get the identity property: The identity property.
Returns:
keyName
public String keyName()
Get the keyName property: Name of the Key from KeyVault.
Returns:
keyVaultUri
public String keyVaultUri()
Get the keyVaultUri property: Uri of KeyVault.
Returns:
keyVersion
public String keyVersion()
Get the keyVersion property: Key Version.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIdentity
public KeyVaultProperties withIdentity(UserAssignedIdentityProperties identity)
Set the identity property: The identity property.
Parameters:
Returns:
withKeyName
public KeyVaultProperties withKeyName(String keyName)
Set the keyName property: Name of the Key from KeyVault.
Parameters:
Returns:
withKeyVaultUri
public KeyVaultProperties withKeyVaultUri(String keyVaultUri)
Set the keyVaultUri property: Uri of KeyVault.
Parameters:
Returns:
withKeyVersion
public KeyVaultProperties withKeyVersion(String keyVersion)
Set the keyVersion property: Key Version.
Parameters:
Returns:
Applies to
Azure SDK for Java