Package org.cdk8s.plus24
Class ContainerResources.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ContainerResources.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerResources>
- Enclosing interface:
- ContainerResources
@Stability(Stable) public static final class ContainerResources.Builder extends Object implements software.amazon.jsii.Builder<ContainerResources>
A builder forContainerResources
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerResources
build()
Builds the configured instance.ContainerResources.Builder
cpu(CpuResources cpu)
Sets the value ofContainerResources.getCpu()
ContainerResources.Builder
memory(MemoryResources memory)
Sets the value ofContainerResources.getMemory()
-
-
-
Method Detail
-
cpu
@Stability(Stable) public ContainerResources.Builder cpu(CpuResources cpu)
Sets the value ofContainerResources.getCpu()
- Parameters:
cpu
- the value to be set.- Returns:
this
-
memory
@Stability(Stable) public ContainerResources.Builder memory(MemoryResources memory)
Sets the value ofContainerResources.getMemory()
- Parameters:
memory
- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ContainerResources build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ContainerResources>
- Returns:
- a new instance of
ContainerResources
- Throws:
NullPointerException
- if any required attribute was not provided
-
-