GpuResource Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. GpuResource
- com.
Implements
public final class GpuResource
implements JsonSerializable<GpuResource>
The GPU resource.
Constructor Summary
Constructor | Description |
---|---|
GpuResource() |
Creates an instance of Gpu |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
count()
Get the count property: The count of the GPU resource. |
static
Gpu |
fromJson(JsonReader jsonReader)
Reads an instance of Gpu |
Gpu |
sku()
Get the sku property: The SKU of the GPU resource. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gpu |
withCount(int count)
Set the count property: The count of the GPU resource. |
Gpu |
withSku(GpuSku sku)
Set the sku property: The SKU of the GPU resource. |
Methods inherited from java.lang.Object
Constructor Details
GpuResource
public GpuResource()
Creates an instance of GpuResource class.
Method Details
count
public int count()
Get the count property: The count of the GPU resource.
Returns:
fromJson
public static GpuResource fromJson(JsonReader jsonReader)
Reads an instance of GpuResource from the JsonReader.
Parameters:
Returns:
Throws:
sku
public GpuSku sku()
Get the sku property: The SKU of the GPU resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCount
public GpuResource withCount(int count)
Set the count property: The count of the GPU resource.
Parameters:
Returns:
withSku
public GpuResource withSku(GpuSku sku)
Set the sku property: The SKU of the GPU resource.
Parameters:
Returns:
Applies to
Azure SDK for Java