Class ServicePrincipalDatastoreSecrets

java.lang.Object
com.azure.resourcemanager.machinelearning.fluent.models.DatastoreSecretsInner
com.azure.resourcemanager.machinelearning.models.ServicePrincipalDatastoreSecrets
All Implemented Interfaces:
com.azure.json.JsonSerializable<DatastoreSecretsInner>

public final class ServicePrincipalDatastoreSecrets extends DatastoreSecretsInner
Datastore Service Principal secrets.
  • Constructor Details

    • ServicePrincipalDatastoreSecrets

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

    • secretsType

      public SecretsType secretsType()
      Get the secretsType property: [Required] Credential type used to authentication with storage.
      Overrides:
      secretsType in class DatastoreSecretsInner
      Returns:
      the secretsType value.
    • clientSecret

      public String clientSecret()
      Get the clientSecret property: Service principal secret.
      Returns:
      the clientSecret value.
    • withClientSecret

      public ServicePrincipalDatastoreSecrets withClientSecret(String clientSecret)
      Set the clientSecret property: Service principal secret.
      Parameters:
      clientSecret - the clientSecret value to set.
      Returns:
      the ServicePrincipalDatastoreSecrets object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class DatastoreSecretsInner
      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<DatastoreSecretsInner>
      Overrides:
      toJson in class DatastoreSecretsInner
      Throws:
      IOException
    • fromJson

      public static ServicePrincipalDatastoreSecrets fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServicePrincipalDatastoreSecrets from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServicePrincipalDatastoreSecrets if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ServicePrincipalDatastoreSecrets.