Class WorkspaceConnectionAccessKey

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

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

    • WorkspaceConnectionAccessKey

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

    • accessKeyId

      public String accessKeyId()
      Get the accessKeyId property: The accessKeyId property.
      Returns:
      the accessKeyId value.
    • withAccessKeyId

      public WorkspaceConnectionAccessKey withAccessKeyId(String accessKeyId)
      Set the accessKeyId property: The accessKeyId property.
      Parameters:
      accessKeyId - the accessKeyId value to set.
      Returns:
      the WorkspaceConnectionAccessKey object itself.
    • secretAccessKey

      public String secretAccessKey()
      Get the secretAccessKey property: The secretAccessKey property.
      Returns:
      the secretAccessKey value.
    • withSecretAccessKey

      public WorkspaceConnectionAccessKey withSecretAccessKey(String secretAccessKey)
      Set the secretAccessKey property: The secretAccessKey property.
      Parameters:
      secretAccessKey - the secretAccessKey value to set.
      Returns:
      the WorkspaceConnectionAccessKey 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<WorkspaceConnectionAccessKey>
      Throws:
      IOException
    • fromJson

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