Class SecretReference
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.SecretReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SecretReference>
public final class SecretReference
extends Object
implements com.azure.json.JsonSerializable<SecretReference>
Secret reference and corresponding properties of a key vault secret.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecretReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecretReference from the JsonReader.Get the keyVaultObjectName property: Object identifier name of the secret in key vault.Get the referenceName property: Reference name of the secret to be used in service configs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of key vault object: secret, key or certificate.voidvalidate()Validates the instance.version()Get the version property: Version of the secret in key vault.withKeyVaultObjectName(String keyVaultObjectName) Set the keyVaultObjectName property: Object identifier name of the secret in key vault.withReferenceName(String referenceName) Set the referenceName property: Reference name of the secret to be used in service configs.withType(KeyVaultObjectType type) Set the type property: Type of key vault object: secret, key or certificate.withVersion(String version) Set the version property: Version of the secret in key vault.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SecretReference
public SecretReference()Creates an instance of SecretReference class.
-
-
Method Details
-
referenceName
Get the referenceName property: Reference name of the secret to be used in service configs.- Returns:
- the referenceName value.
-
withReferenceName
Set the referenceName property: Reference name of the secret to be used in service configs.- Parameters:
referenceName- the referenceName value to set.- Returns:
- the SecretReference object itself.
-
type
Get the type property: Type of key vault object: secret, key or certificate.- Returns:
- the type value.
-
withType
Set the type property: Type of key vault object: secret, key or certificate.- Parameters:
type- the type value to set.- Returns:
- the SecretReference object itself.
-
version
Get the version property: Version of the secret in key vault.- Returns:
- the version value.
-
withVersion
Set the version property: Version of the secret in key vault.- Parameters:
version- the version value to set.- Returns:
- the SecretReference object itself.
-
keyVaultObjectName
Get the keyVaultObjectName property: Object identifier name of the secret in key vault.- Returns:
- the keyVaultObjectName value.
-
withKeyVaultObjectName
Set the keyVaultObjectName property: Object identifier name of the secret in key vault.- Parameters:
keyVaultObjectName- the keyVaultObjectName value to set.- Returns:
- the SecretReference object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SecretReference>- Throws:
IOException
-
fromJson
Reads an instance of SecretReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SecretReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SecretReference.
-