Class ResourceRequests
java.lang.Object
com.microsoft.azure.management.containerinstance.ResourceRequests
The resource requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
cpu()
Get the CPU request of this container instance.gpu()
Get the GPU request of this container instance.double
Get the memory request in GB of this container instance.withCpu
(double cpu) Set the CPU request of this container instance.withGpu
(GpuResource gpu) Set the GPU request of this container instance.withMemoryInGB
(double memoryInGB) Set the memory request in GB of this container instance.
-
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
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
Set the CPU request of this container instance.- Parameters:
cpu
- the cpu value to set- Returns:
- the ResourceRequests object itself.
-
gpu
Get the GPU request of this container instance.- Returns:
- the gpu value
-
withGpu
Set the GPU request of this container instance.- Parameters:
gpu
- the gpu value to set- Returns:
- the ResourceRequests object itself.
-