public final class ResourceLimits extends Object
| Constructor and Description |
|---|
ResourceLimits() |
| Modifier and Type | Method and Description |
|---|---|
Double |
cpu()
Get the cpu property: The CPU limit of this container instance.
|
GpuResource |
gpu()
Get the gpu property: The GPU limit of this container instance.
|
Double |
memoryInGB()
Get the memoryInGB property: The memory limit in GB of this container instance.
|
void |
validate()
Validates the instance.
|
ResourceLimits |
withCpu(Double cpu)
Set the cpu property: The CPU limit of this container instance.
|
ResourceLimits |
withGpu(GpuResource gpu)
Set the gpu property: The GPU limit of this container instance.
|
ResourceLimits |
withMemoryInGB(Double memoryInGB)
Set the memoryInGB property: The memory limit in GB of this container instance.
|
public Double memoryInGB()
public ResourceLimits withMemoryInGB(Double memoryInGB)
memoryInGB - the memoryInGB value to set.public Double cpu()
public ResourceLimits withCpu(Double cpu)
cpu - the cpu value to set.public GpuResource gpu()
public ResourceLimits 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.