Class ResourceRequests

java.lang.Object
com.microsoft.azure.management.containerinstance.ResourceRequests

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

    • ResourceRequests

      public ResourceRequests()
  • Method Details

    • memoryInGB

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

      public ResourceRequests withMemoryInGB(double memoryInGB)
      Set 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 request of this container instance.
      Returns:
      the cpu value
    • withCpu

      public ResourceRequests withCpu(double cpu)
      Set 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 request of this container instance.
      Returns:
      the gpu value
    • withGpu

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