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