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

public final class JobService extends Object implements com.azure.json.JsonSerializable<JobService>
Job endpoint definition.
  • Constructor Details

    • JobService

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

    • jobServiceType

      public String jobServiceType()
      Get the jobServiceType property: Endpoint type.
      Returns:
      the jobServiceType value.
    • withJobServiceType

      public JobService withJobServiceType(String jobServiceType)
      Set the jobServiceType property: Endpoint type.
      Parameters:
      jobServiceType - the jobServiceType value to set.
      Returns:
      the JobService object itself.
    • port

      public Integer port()
      Get the port property: Port for endpoint.
      Returns:
      the port value.
    • withPort

      public JobService withPort(Integer port)
      Set the port property: Port for endpoint.
      Parameters:
      port - the port value to set.
      Returns:
      the JobService object itself.
    • endpoint

      public String endpoint()
      Get the endpoint property: Url for endpoint.
      Returns:
      the endpoint value.
    • withEndpoint

      public JobService withEndpoint(String endpoint)
      Set the endpoint property: Url for endpoint.
      Parameters:
      endpoint - the endpoint value to set.
      Returns:
      the JobService object itself.
    • status

      public String status()
      Get the status property: Status of endpoint.
      Returns:
      the status value.
    • errorMessage

      public String errorMessage()
      Get the errorMessage property: Any error in the service.
      Returns:
      the errorMessage value.
    • properties

      public Map<String,String> properties()
      Get the properties property: Additional properties to set on the endpoint.
      Returns:
      the properties value.
    • withProperties

      public JobService withProperties(Map<String,String> properties)
      Set the properties property: Additional properties to set on the endpoint.
      Parameters:
      properties - the properties value to set.
      Returns:
      the JobService object itself.
    • nodes

      public Nodes nodes()
      Get the nodes property: Nodes that user would like to start the service on. If Nodes is not set or set to null, the service will only be started on leader node.
      Returns:
      the nodes value.
    • withNodes

      public JobService withNodes(Nodes nodes)
      Set the nodes property: Nodes that user would like to start the service on. If Nodes is not set or set to null, the service will only be started on leader node.
      Parameters:
      nodes - the nodes value to set.
      Returns:
      the JobService 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<JobService>
      Throws:
      IOException
    • fromJson

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