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 Details

    • CustomService

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

    • name

      public String name()
      Get the name property: Name of the Custom Service.
      Returns:
      the name value.
    • withName

      public CustomService withName(String name)
      Set the name property: Name of the Custom Service.
      Parameters:
      name - the name value to set.
      Returns:
      the CustomService object itself.
    • image

      public Image image()
      Get the image property: Describes the Image Specifications.
      Returns:
      the image value.
    • withImage

      public CustomService withImage(Image image)
      Set the image property: Describes the Image Specifications.
      Parameters:
      image - the image value to set.
      Returns:
      the CustomService object itself.
    • environmentVariables

      public Map<String,EnvironmentVariable> environmentVariables()
      Get the environmentVariables property: Environment Variable for the container.
      Returns:
      the environmentVariables value.
    • withEnvironmentVariables

      public CustomService withEnvironmentVariables(Map<String,EnvironmentVariable> environmentVariables)
      Set the environmentVariables property: Environment Variable for the container.
      Parameters:
      environmentVariables - the environmentVariables value to set.
      Returns:
      the CustomService object itself.
    • docker

      public Docker docker()
      Get the docker property: Describes the docker settings for the image.
      Returns:
      the docker value.
    • withDocker

      public CustomService withDocker(Docker docker)
      Set the docker property: Describes the docker settings for the image.
      Parameters:
      docker - the docker value to set.
      Returns:
      the CustomService object itself.
    • endpoints

      public List<Endpoint> endpoints()
      Get the endpoints property: Configuring the endpoints for the container.
      Returns:
      the endpoints value.
    • withEndpoints

      public CustomService withEndpoints(List<Endpoint> endpoints)
      Set the endpoints property: Configuring the endpoints for the container.
      Parameters:
      endpoints - the endpoints value to set.
      Returns:
      the CustomService object itself.
    • volumes

      public List<VolumeDefinition> volumes()
      Get the volumes property: Configuring the volumes for the container.
      Returns:
      the volumes value.
    • withVolumes

      public CustomService withVolumes(List<VolumeDefinition> volumes)
      Set the volumes property: Configuring the volumes for the container.
      Parameters:
      volumes - the volumes value to set.
      Returns:
      the CustomService object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: Specifies the custom service configuration.
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public CustomService withAdditionalProperties(Map<String,Object> additionalProperties)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CustomService>
      Throws:
      IOException
    • fromJson

      public static CustomService fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.