Class GpuResource
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.GpuResource
-
public final class GpuResource extends Object
The GPU resource.
-
-
Constructor Summary
Constructors Constructor Description GpuResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()Get the count property: The count of the GPU resource.GpuSkusku()Get the sku property: The SKU of the GPU resource.voidvalidate()Validates the instance.GpuResourcewithCount(int count)Set the count property: The count of the GPU resource.GpuResourcewithSku(GpuSku sku)Set the sku property: The SKU of the GPU resource.
-
-
-
Method Detail
-
count
public int count()
Get the count property: The count of the GPU resource.- Returns:
- the count value.
-
withCount
public GpuResource withCount(int count)
Set the count property: The count of the GPU resource.- Parameters:
count- the count value to set.- Returns:
- the GpuResource object itself.
-
sku
public GpuSku sku()
Get the sku property: The SKU of the GPU resource.- Returns:
- the sku value.
-
withSku
public GpuResource withSku(GpuSku sku)
Set the sku property: The SKU of the GPU resource.- Parameters:
sku- the sku value to set.- Returns:
- the GpuResource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-