KeyVaultKeyReference Class
- java.
lang. Object - com.
azure. resourcemanager. logic. models. KeyVaultKeyReference
- com.
Implements
public final class KeyVaultKeyReference
implements JsonSerializable<KeyVaultKeyReference>
The reference to the key vault key.
Constructor Summary
| Constructor | Description |
|---|---|
| KeyVaultKeyReference() |
Creates an instance of Key |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
| String |
keyName()
Get the key |
|
Key |
keyVault()
Get the key |
| String |
keyVersion()
Get the key |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Key |
withKeyName(String keyName)
Set the key |
|
Key |
withKeyVault(KeyVaultKeyReferenceKeyVault keyVault)
Set the key |
|
Key |
withKeyVersion(String keyVersion)
Set the key |
Methods inherited from java.lang.Object
Constructor Details
KeyVaultKeyReference
public KeyVaultKeyReference()
Creates an instance of KeyVaultKeyReference class.
Method Details
fromJson
public static KeyVaultKeyReference fromJson(JsonReader jsonReader)
Reads an instance of KeyVaultKeyReference from the JsonReader.
Parameters:
Returns:
Throws:
keyName
public String keyName()
Get the keyName property: The private key name in key vault.
Returns:
keyVault
public KeyVaultKeyReferenceKeyVault keyVault()
Get the keyVault property: The key vault reference.
Returns:
keyVersion
public String keyVersion()
Get the keyVersion property: The private key version in key vault.
Returns:
toJson
validate
public void validate()
Validates the instance.
withKeyName
public KeyVaultKeyReference withKeyName(String keyName)
Set the keyName property: The private key name in key vault.
Parameters:
Returns:
withKeyVault
public KeyVaultKeyReference withKeyVault(KeyVaultKeyReferenceKeyVault keyVault)
Set the keyVault property: The key vault reference.
Parameters:
Returns:
withKeyVersion
public KeyVaultKeyReference withKeyVersion(String keyVersion)
Set the keyVersion property: The private key version in key vault.
Parameters:
Returns: