ComputeInstanceContainer Class

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

Implements

public final class ComputeInstanceContainer
implements JsonSerializable<ComputeInstanceContainer>

Defines an Aml Instance container.

Constructor Summary

Constructor Description
ComputeInstanceContainer()

Creates an instance of ComputeInstanceContainer class.

Method Summary

Modifier and Type Method and Description
Autosave autosave()

Get the autosave property: Auto save settings.

ComputeInstanceEnvironmentInfo environment()

Get the environment property: Environment information of this container.

static ComputeInstanceContainer fromJson(JsonReader jsonReader)

Reads an instance of ComputeInstanceContainer from the JsonReader.

String gpu()

Get the gpu property: Information of GPU.

String name()

Get the name property: Name of the ComputeInstance container.

Network network()

Get the network property: network of this container.

List<Object> services()

Get the services property: services of this containers.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ComputeInstanceContainer withAutosave(Autosave autosave)

Set the autosave property: Auto save settings.

ComputeInstanceContainer withEnvironment(ComputeInstanceEnvironmentInfo environment)

Set the environment property: Environment information of this container.

ComputeInstanceContainer withGpu(String gpu)

Set the gpu property: Information of GPU.

ComputeInstanceContainer withName(String name)

Set the name property: Name of the ComputeInstance container.

ComputeInstanceContainer withNetwork(Network network)

Set the network property: network of this container.

Methods inherited from java.lang.Object

Constructor Details

ComputeInstanceContainer

public ComputeInstanceContainer()

Creates an instance of ComputeInstanceContainer class.

Method Details

autosave

public Autosave autosave()

Get the autosave property: Auto save settings.

Returns:

the autosave value.

environment

public ComputeInstanceEnvironmentInfo environment()

Get the environment property: Environment information of this container.

Returns:

the environment value.

fromJson

public static ComputeInstanceContainer fromJson(JsonReader jsonReader)

Reads an instance of ComputeInstanceContainer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ComputeInstanceContainer 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 ComputeInstanceContainer.

gpu

public String gpu()

Get the gpu property: Information of GPU.

Returns:

the gpu value.

name

public String name()

Get the name property: Name of the ComputeInstance container.

Returns:

the name value.

network

public Network network()

Get the network property: network of this container.

Returns:

the network value.

services

public List<Object> services()

Get the services property: services of this containers.

Returns:

the services value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAutosave

public ComputeInstanceContainer withAutosave(Autosave autosave)

Set the autosave property: Auto save settings.

Parameters:

autosave - the autosave value to set.

Returns:

the ComputeInstanceContainer object itself.

withEnvironment

public ComputeInstanceContainer withEnvironment(ComputeInstanceEnvironmentInfo environment)

Set the environment property: Environment information of this container.

Parameters:

environment - the environment value to set.

Returns:

the ComputeInstanceContainer object itself.

withGpu

public ComputeInstanceContainer withGpu(String gpu)

Set the gpu property: Information of GPU.

Parameters:

gpu - the gpu value to set.

Returns:

the ComputeInstanceContainer object itself.

withName

public ComputeInstanceContainer withName(String name)

Set the name property: Name of the ComputeInstance container.

Parameters:

name - the name value to set.

Returns:

the ComputeInstanceContainer object itself.

withNetwork

public ComputeInstanceContainer withNetwork(Network network)

Set the network property: network of this container.

Parameters:

network - the network value to set.

Returns:

the ComputeInstanceContainer object itself.

Applies to