ContainerResourceSettings Class

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

Implements

public final class ContainerResourceSettings
implements JsonSerializable<ContainerResourceSettings>

The ContainerResourceSettings model.

Constructor Summary

Constructor Description
ContainerResourceSettings()

Creates an instance of ContainerResourceSettings class.

Method Summary

Modifier and Type Method and Description
String cpu()

Get the cpu property: Number of vCPUs request/limit for container.

static ContainerResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of ContainerResourceSettings from the JsonReader.

String gpu()

Get the gpu property: Number of Nvidia GPU cards request/limit for container.

String memory()

Get the memory property: Memory size request/limit for container.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerResourceSettings withCpu(String cpu)

Set the cpu property: Number of vCPUs request/limit for container.

ContainerResourceSettings withGpu(String gpu)

Set the gpu property: Number of Nvidia GPU cards request/limit for container.

ContainerResourceSettings withMemory(String memory)

Set the memory property: Memory size request/limit for container.

Methods inherited from java.lang.Object

Constructor Details

ContainerResourceSettings

public ContainerResourceSettings()

Creates an instance of ContainerResourceSettings class.

Method Details

cpu

public String cpu()

Get the cpu property: Number of vCPUs request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.

Returns:

the cpu value.

fromJson

public static ContainerResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of ContainerResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

gpu

public String gpu()

Get the gpu property: Number of Nvidia GPU cards request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.

Returns:

the gpu value.

memory

public String memory()

Get the memory property: Memory size request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.

Returns:

the memory value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCpu

public ContainerResourceSettings withCpu(String cpu)

Set the cpu property: Number of vCPUs request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.

Parameters:

cpu - the cpu value to set.

Returns:

the ContainerResourceSettings object itself.

withGpu

public ContainerResourceSettings withGpu(String gpu)

Set the gpu property: Number of Nvidia GPU cards request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.

Parameters:

gpu - the gpu value to set.

Returns:

the ContainerResourceSettings object itself.

withMemory

public ContainerResourceSettings withMemory(String memory)

Set the memory property: Memory size request/limit for container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.

Parameters:

memory - the memory value to set.

Returns:

the ContainerResourceSettings object itself.

Applies to