Class ResourceRequests

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

public final class ResourceRequests extends Object
The resource requests.
  • Constructor Details

    • ResourceRequests

      public ResourceRequests()
      Creates an instance of ResourceRequests class.
  • Method Details

    • memoryInGB

      public double memoryInGB()
      Get the memoryInGB property: The memory request in GB of this container instance.
      Returns:
      the memoryInGB value.
    • withMemoryInGB

      public ResourceRequests withMemoryInGB(double memoryInGB)
      Set the memoryInGB property: The memory request in GB of this container instance.
      Parameters:
      memoryInGB - the memoryInGB value to set.
      Returns:
      the ResourceRequests object itself.
    • cpu

      public double cpu()
      Get the cpu property: The CPU request of this container instance.
      Returns:
      the cpu value.
    • withCpu

      public ResourceRequests withCpu(double cpu)
      Set the cpu property: The CPU request of this container instance.
      Parameters:
      cpu - the cpu value to set.
      Returns:
      the ResourceRequests object itself.
    • gpu

      public GpuResource gpu()
      Get the gpu property: The GPU request of this container instance.
      Returns:
      the gpu value.
    • withGpu

      public ResourceRequests withGpu(GpuResource gpu)
      Set the gpu property: The GPU request of this container instance.
      Parameters:
      gpu - the gpu value to set.
      Returns:
      the ResourceRequests object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.