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 Details

    • SecretsProfile

      public SecretsProfile()
      Creates an instance of SecretsProfile class.
  • Method Details

    • keyVaultResourceId

      public String 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

      public SecretsProfile withKeyVaultResourceId(String keyVaultResourceId)
      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

      public List<SecretReference> secrets()
      Get the secrets property: Properties of Key Vault secret.
      Returns:
      the secrets value.
    • withSecrets

      public SecretsProfile withSecrets(List<SecretReference> secrets)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SecretsProfile>
      Throws:
      IOException
    • fromJson

      public static SecretsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.