Class WorkspaceConnectionSharedAccessSignature

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

public final class WorkspaceConnectionSharedAccessSignature extends Object implements com.azure.json.JsonSerializable<WorkspaceConnectionSharedAccessSignature>
The WorkspaceConnectionSharedAccessSignature model.
  • Constructor Details

    • WorkspaceConnectionSharedAccessSignature

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

    • sas

      public String sas()
      Get the sas property: The sas property.
      Returns:
      the sas value.
    • withSas

      Set the sas property: The sas property.
      Parameters:
      sas - the sas value to set.
      Returns:
      the WorkspaceConnectionSharedAccessSignature 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<WorkspaceConnectionSharedAccessSignature>
      Throws:
      IOException
    • fromJson

      public static WorkspaceConnectionSharedAccessSignature fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WorkspaceConnectionSharedAccessSignature from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WorkspaceConnectionSharedAccessSignature 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 WorkspaceConnectionSharedAccessSignature.