Class ResourceLimits

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

public class ResourceLimits extends Object
The resource limits.
  • Constructor Details

    • ResourceLimits

      public ResourceLimits()
  • Method Details

    • memoryInGB

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

      public ResourceLimits withMemoryInGB(Double memoryInGB)
      Set the memory limit in GB of this container instance.
      Parameters:
      memoryInGB - the memoryInGB value to set
      Returns:
      the ResourceLimits object itself.
    • cpu

      public Double cpu()
      Get the CPU limit of this container instance.
      Returns:
      the cpu value
    • withCpu

      public ResourceLimits withCpu(Double cpu)
      Set the CPU limit of this container instance.
      Parameters:
      cpu - the cpu value to set
      Returns:
      the ResourceLimits object itself.
    • gpu

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

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