java.lang.Object
com.azure.resourcemanager.containerinstance.models.GpuResource

public final class GpuResource extends Object
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

      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.