public final class ResourceRequests extends Object
| Constructor and Description |
|---|
ResourceRequests() |
| Modifier and Type | Method and Description |
|---|---|
double |
cpu()
Get the cpu property: The CPU request of this container instance.
|
GpuResource |
gpu()
Get the gpu property: The GPU request of this container instance.
|
double |
memoryInGB()
Get the memoryInGB property: The memory request in GB of this container instance.
|
void |
validate()
Validates the instance.
|
ResourceRequests |
withCpu(double cpu)
Set the cpu property: The CPU request of this container instance.
|
ResourceRequests |
withGpu(GpuResource gpu)
Set the gpu property: The GPU request of this container instance.
|
ResourceRequests |
withMemoryInGB(double memoryInGB)
Set the memoryInGB property: The memory request in GB of this container instance.
|
public double memoryInGB()
public ResourceRequests withMemoryInGB(double memoryInGB)
memoryInGB - the memoryInGB value to set.public double cpu()
public ResourceRequests withCpu(double cpu)
cpu - the cpu value to set.public GpuResource gpu()
public ResourceRequests withGpu(GpuResource gpu)
gpu - the gpu value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.