Class SecretsProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.SecretsProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SecretsProfile>
public final class SecretsProfile
extends Object
implements com.azure.json.JsonSerializable<SecretsProfile>
The cluster secret profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecretsProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecretsProfile from the JsonReader.Get the keyVaultResourceId property: Name of the user Key Vault where all the cluster specific user secrets are stored.secrets()Get the secrets property: Properties of Key Vault secret.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKeyVaultResourceId(String keyVaultResourceId) Set the keyVaultResourceId property: Name of the user Key Vault where all the cluster specific user secrets are stored.withSecrets(List<SecretReference> secrets) Set the secrets property: Properties of Key Vault secret.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
-
SecretsProfile
public SecretsProfile()Creates an instance of SecretsProfile class.
-
-
Method Details
-
keyVaultResourceId
Get the keyVaultResourceId property: Name of the user Key Vault where all the cluster specific user secrets are stored.- Returns:
- the keyVaultResourceId value.
-
withKeyVaultResourceId
Set the keyVaultResourceId property: Name of the user Key Vault where all the cluster specific user secrets are stored.- Parameters:
keyVaultResourceId- the keyVaultResourceId value to set.- Returns:
- the SecretsProfile object itself.
-
secrets
Get the secrets property: Properties of Key Vault secret.- Returns:
- the secrets value.
-
withSecrets
Set the secrets property: Properties of Key Vault secret.- Parameters:
secrets- the secrets value to set.- Returns:
- the SecretsProfile 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<SecretsProfile>- Throws:
IOException
-
fromJson
Reads an instance of SecretsProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SecretsProfile 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 SecretsProfile.
-