Class ResourceRequests
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.ResourceRequests
-
public final class ResourceRequests extends Object
The resource requests.
-
-
Constructor Summary
Constructors Constructor Description ResourceRequests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecpu()Get the cpu property: The CPU request of this container instance.GpuResourcegpu()Get the gpu property: The GPU request of this container instance.doublememoryInGB()Get the memoryInGB property: The memory request in GB of this container instance.voidvalidate()Validates the instance.ResourceRequestswithCpu(double cpu)Set the cpu property: The CPU request of this container instance.ResourceRequestswithGpu(GpuResource gpu)Set the gpu property: The GPU request of this container instance.ResourceRequestswithMemoryInGB(double memoryInGB)Set the memoryInGB property: The memory request in GB of this container instance.
-
-
-
Method Detail
-
memoryInGB
public double memoryInGB()
Get the memoryInGB property: The memory request in GB of this container instance.- Returns:
- the memoryInGB value.
-
withMemoryInGB
public ResourceRequests withMemoryInGB(double memoryInGB)
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
public ResourceRequests withCpu(double cpu)
Set the cpu property: 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 property: The GPU request of this container instance.- Returns:
- the gpu value.
-
withGpu
public ResourceRequests withGpu(GpuResource gpu)
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.
-
-