Class CreateContainerResourceConfigDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.containerinstances.model.CreateContainerResourceConfigDetails.Builder
-
- Enclosing class:
- CreateContainerResourceConfigDetails
public static class CreateContainerResourceConfigDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateContainerResourceConfigDetails
build()
CreateContainerResourceConfigDetails.Builder
copy(CreateContainerResourceConfigDetails model)
CreateContainerResourceConfigDetails.Builder
memoryLimitInGBs(Float memoryLimitInGBs)
The maximum amount of memory that can be consumed by the container’s process.CreateContainerResourceConfigDetails.Builder
vcpusLimit(Float vcpusLimit)
The maximum amount of CPUs that can be consumed by the container’s process.
-
-
-
Method Detail
-
vcpusLimit
public CreateContainerResourceConfigDetails.Builder vcpusLimit(Float vcpusLimit)
The maximum amount of CPUs that can be consumed by the container’s process.If you do not set a value, then the process can use all available CPU resources on the instance.
CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.
A container with a 2.0 vcpusLimit could consume up to 100% of the CPU resources available on the container instance. Values can be fractional. A value of "1.5" means that the container can consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity.
- Parameters:
vcpusLimit
- the value to set- Returns:
- this builder
-
memoryLimitInGBs
public CreateContainerResourceConfigDetails.Builder memoryLimitInGBs(Float memoryLimitInGBs)
The maximum amount of memory that can be consumed by the container’s process.If you do not set a value, then the process may use all available memory on the instance.
- Parameters:
memoryLimitInGBs
- the value to set- Returns:
- this builder
-
build
public CreateContainerResourceConfigDetails build()
-
copy
public CreateContainerResourceConfigDetails.Builder copy(CreateContainerResourceConfigDetails model)
-
-