Class CustomService
java.lang.Object
com.azure.resourcemanager.machinelearning.models.CustomService
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomService>
public final class CustomService
extends Object
implements com.azure.json.JsonSerializable<CustomService>
Specifies the custom service configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Specifies the custom service configuration.docker()Get the docker property: Describes the docker settings for the image.Get the endpoints property: Configuring the endpoints for the container.Get the environmentVariables property: Environment Variable for the container.static CustomServicefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomService from the JsonReader.image()Get the image property: Describes the Image Specifications.name()Get the name property: Name of the Custom Service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.volumes()Get the volumes property: Configuring the volumes for the container.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: Specifies the custom service configuration.withDocker(Docker docker) Set the docker property: Describes the docker settings for the image.withEndpoints(List<Endpoint> endpoints) Set the endpoints property: Configuring the endpoints for the container.withEnvironmentVariables(Map<String, EnvironmentVariable> environmentVariables) Set the environmentVariables property: Environment Variable for the container.Set the image property: Describes the Image Specifications.Set the name property: Name of the Custom Service.withVolumes(List<VolumeDefinition> volumes) Set the volumes property: Configuring the volumes for the container.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
-
CustomService
public CustomService()Creates an instance of CustomService class.
-
-
Method Details
-
name
Get the name property: Name of the Custom Service.- Returns:
- the name value.
-
withName
Set the name property: Name of the Custom Service.- Parameters:
name- the name value to set.- Returns:
- the CustomService object itself.
-
image
Get the image property: Describes the Image Specifications.- Returns:
- the image value.
-
withImage
Set the image property: Describes the Image Specifications.- Parameters:
image- the image value to set.- Returns:
- the CustomService object itself.
-
environmentVariables
Get the environmentVariables property: Environment Variable for the container.- Returns:
- the environmentVariables value.
-
withEnvironmentVariables
Set the environmentVariables property: Environment Variable for the container.- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the CustomService object itself.
-
docker
Get the docker property: Describes the docker settings for the image.- Returns:
- the docker value.
-
withDocker
Set the docker property: Describes the docker settings for the image.- Parameters:
docker- the docker value to set.- Returns:
- the CustomService object itself.
-
endpoints
Get the endpoints property: Configuring the endpoints for the container.- Returns:
- the endpoints value.
-
withEndpoints
Set the endpoints property: Configuring the endpoints for the container.- Parameters:
endpoints- the endpoints value to set.- Returns:
- the CustomService object itself.
-
volumes
Get the volumes property: Configuring the volumes for the container.- Returns:
- the volumes value.
-
withVolumes
Set the volumes property: Configuring the volumes for the container.- Parameters:
volumes- the volumes value to set.- Returns:
- the CustomService object itself.
-
additionalProperties
Get the additionalProperties property: Specifies the custom service configuration.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Specifies the custom service configuration.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the CustomService 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<CustomService>- Throws:
IOException
-
fromJson
Reads an instance of CustomService from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomService 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 CustomService.
-