public class ResourceRequests extends Object
Constructor and Description |
---|
ResourceRequests() |
Modifier and Type | Method and Description |
---|---|
double |
cpu()
Get the CPU request of this container instance.
|
GpuResource |
gpu()
Get the GPU request of this container instance.
|
double |
memoryInGB()
Get the memory request in GB of this container instance.
|
ResourceRequests |
withCpu(double cpu)
Set the CPU request of this container instance.
|
ResourceRequests |
withGpu(GpuResource gpu)
Set the GPU request of this container instance.
|
ResourceRequests |
withMemoryInGB(double memoryInGB)
Set the memory request in GB of this container instance.
|
public double memoryInGB()
public ResourceRequests withMemoryInGB(double memoryInGB)
memoryInGB
- the memoryInGB value to setpublic double cpu()
public ResourceRequests withCpu(double cpu)
cpu
- the cpu value to setpublic GpuResource gpu()
public ResourceRequests withGpu(GpuResource gpu)
gpu
- the gpu value to setCopyright © 2019. All rights reserved.