Class JobService
java.lang.Object
com.azure.resourcemanager.machinelearning.models.JobService
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobService>
Job endpoint definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendpoint()Get the endpoint property: Url for endpoint.Get the errorMessage property: Any error in the service.static JobServicefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobService from the JsonReader.Get the jobServiceType property: Endpoint type.nodes()Get the nodes property: Nodes that user would like to start the service on.port()Get the port property: Port for endpoint.Get the properties property: Additional properties to set on the endpoint.status()Get the status property: Status of endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndpoint(String endpoint) Set the endpoint property: Url for endpoint.withJobServiceType(String jobServiceType) Set the jobServiceType property: Endpoint type.Set the nodes property: Nodes that user would like to start the service on.Set the port property: Port for endpoint.withProperties(Map<String, String> properties) Set the properties property: Additional properties to set on the endpoint.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobService
public JobService()Creates an instance of JobService class.
-
-
Method Details
-
jobServiceType
Get the jobServiceType property: Endpoint type.- Returns:
- the jobServiceType value.
-
withJobServiceType
Set the jobServiceType property: Endpoint type.- Parameters:
jobServiceType- the jobServiceType value to set.- Returns:
- the JobService object itself.
-
port
Get the port property: Port for endpoint.- Returns:
- the port value.
-
withPort
Set the port property: Port for endpoint.- Parameters:
port- the port value to set.- Returns:
- the JobService object itself.
-
endpoint
Get the endpoint property: Url for endpoint.- Returns:
- the endpoint value.
-
withEndpoint
Set the endpoint property: Url for endpoint.- Parameters:
endpoint- the endpoint value to set.- Returns:
- the JobService object itself.
-
status
Get the status property: Status of endpoint.- Returns:
- the status value.
-
errorMessage
Get the errorMessage property: Any error in the service.- Returns:
- the errorMessage value.
-
properties
Get the properties property: Additional properties to set on the endpoint.- Returns:
- the properties value.
-
withProperties
Set the properties property: Additional properties to set on the endpoint.- Parameters:
properties- the properties value to set.- Returns:
- the JobService object itself.
-
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<JobService>- Throws:
IOException
-
fromJson
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.
-