Class SasDatastoreSecrets

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

public final class SasDatastoreSecrets extends DatastoreSecretsInner
Datastore SAS secrets.
  • Constructor Details

    • SasDatastoreSecrets

      public SasDatastoreSecrets()
      Creates an instance of SasDatastoreSecrets 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.
    • sasToken

      public String sasToken()
      Get the sasToken property: Storage container SAS token.
      Returns:
      the sasToken value.
    • withSasToken

      public SasDatastoreSecrets withSasToken(String sasToken)
      Set the sasToken property: Storage container SAS token.
      Parameters:
      sasToken - the sasToken value to set.
      Returns:
      the SasDatastoreSecrets 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 SasDatastoreSecrets fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SasDatastoreSecrets from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SasDatastoreSecrets 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 SasDatastoreSecrets.