Class GpuResource
java.lang.Object
com.azure.resourcemanager.containerinstance.models.GpuResource
The GPU resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcount()Get the count property: The count of the GPU resource.sku()Get the sku property: The SKU of the GPU resource.voidvalidate()Validates the instance.withCount(int count) Set the count property: The count of the GPU resource.Set the sku property: The SKU of the GPU resource.
-
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:
- the count value.
-
withCount
Set the count property: The count of the GPU resource.- Parameters:
count- the count value to set.- Returns:
- the GpuResource object itself.
-
sku
Get the sku property: The SKU of the GPU resource.- Returns:
- the sku value.
-
withSku
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.
-