CustomService Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.CustomService

Implements

public final class CustomService
implements JsonSerializable<CustomService>

Specifies the custom service configuration.

Constructor Summary

Constructor Description
CustomService()

Creates an instance of CustomService class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: Specifies the custom service configuration.

Docker docker()

Get the docker property: Describes the docker settings for the image.

List<Endpoint> endpoints()

Get the endpoints property: Configuring the endpoints for the container.

Map<String,EnvironmentVariable> environmentVariables()

Get the environmentVariables property: Environment Variable for the container.

static CustomService fromJson(JsonReader jsonReader)

Reads an instance of CustomService from the JsonReader.

Image image()

Get the image property: Describes the Image Specifications.

String name()

Get the name property: Name of the Custom Service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<VolumeDefinition> volumes()

Get the volumes property: Configuring the volumes for the container.

CustomService withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Specifies the custom service configuration.

CustomService withDocker(Docker docker)

Set the docker property: Describes the docker settings for the image.

CustomService withEndpoints(List<Endpoint> endpoints)

Set the endpoints property: Configuring the endpoints for the container.

CustomService withEnvironmentVariables(Map<String,EnvironmentVariable> environmentVariables)

Set the environmentVariables property: Environment Variable for the container.

CustomService withImage(Image image)

Set the image property: Describes the Image Specifications.

CustomService withName(String name)

Set the name property: Name of the Custom Service.

CustomService withVolumes(List<VolumeDefinition> volumes)

Set the volumes property: Configuring the volumes for the container.

Methods inherited from java.lang.Object

Constructor Details

CustomService

public CustomService()

Creates an instance of CustomService class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: Specifies the custom service configuration.

Returns:

the additionalProperties value.

docker

public Docker docker()

Get the docker property: Describes the docker settings for the image.

Returns:

the docker value.

endpoints

public List<Endpoint> endpoints()

Get the endpoints property: Configuring the endpoints for the container.

Returns:

the endpoints value.

environmentVariables

public Map<String,EnvironmentVariable> environmentVariables()

Get the environmentVariables property: Environment Variable for the container.

Returns:

the environmentVariables value.

fromJson

public static CustomService fromJson(JsonReader jsonReader)

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.

image

public Image image()

Get the image property: Describes the Image Specifications.

Returns:

the image value.

name

public String name()

Get the name property: Name of the Custom Service.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

volumes

public List<VolumeDefinition> volumes()

Get the volumes property: Configuring the volumes for the container.

Returns:

the volumes 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.

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.

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.

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.

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.

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.

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.

Applies to