Class ContainerResourceConfig.Builder
- java.lang.Object
-
- com.oracle.bmc.containerinstances.model.ContainerResourceConfig.Builder
-
- Enclosing class:
- ContainerResourceConfig
public static class ContainerResourceConfig.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerResourceConfig
build()
ContainerResourceConfig.Builder
copy(ContainerResourceConfig model)
ContainerResourceConfig.Builder
memoryLimitInGBs(Float memoryLimitInGBs)
The maximum amount of memory that can be consumed by the container’s process.ContainerResourceConfig.Builder
vcpusLimit(Float vcpusLimit)
The maximum amount of CPUs that can be consumed by the container’s process.
-
-
-
Method Detail
-
vcpusLimit
public ContainerResourceConfig.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 may use all available CPU resources on the container 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.
- Parameters:
vcpusLimit
- the value to set- Returns:
- this builder
-
memoryLimitInGBs
public ContainerResourceConfig.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 ContainerResourceConfig build()
-
copy
public ContainerResourceConfig.Builder copy(ContainerResourceConfig model)
-
-