CapabilitiesCapabilities Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.CapabilitiesCapabilities

Implements

public final class CapabilitiesCapabilities
implements JsonSerializable<CapabilitiesCapabilities>

The supported capabilities.

Constructor Summary

Constructor Description
CapabilitiesCapabilities()

Creates an instance of CapabilitiesCapabilities class.

Method Summary

Modifier and Type Method and Description
static CapabilitiesCapabilities fromJson(JsonReader jsonReader)

Reads an instance of CapabilitiesCapabilities from the JsonReader.

Float maxCpu()

Get the maxCpu property: The maximum allowed CPU request in cores.

Float maxGpuCount()

Get the maxGpuCount property: The maximum allowed GPU count.

Float maxMemoryInGB()

Get the maxMemoryInGB property: The maximum allowed memory request in GB.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

CapabilitiesCapabilities

public CapabilitiesCapabilities()

Creates an instance of CapabilitiesCapabilities class.

Method Details

fromJson

public static CapabilitiesCapabilities fromJson(JsonReader jsonReader)

Reads an instance of CapabilitiesCapabilities from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxCpu

public Float maxCpu()

Get the maxCpu property: The maximum allowed CPU request in cores.

Returns:

the maxCpu value.

maxGpuCount

public Float maxGpuCount()

Get the maxGpuCount property: The maximum allowed GPU count.

Returns:

the maxGpuCount value.

maxMemoryInGB

public Float maxMemoryInGB()

Get the maxMemoryInGB property: The maximum allowed memory request in GB.

Returns:

the maxMemoryInGB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to