Package org.cdk8s.plus20
Class Resources.Builder
- java.lang.Object
-
- org.cdk8s.plus20.Resources.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resourcesbuild()Builds the configured instance.Resources.Buildercpu(CpuResources cpu)Sets the value ofResources.getCpu()Resources.Buildermemory(MemoryResources memory)Sets the value ofResources.getMemory()
-
-
-
Method Detail
-
cpu
@Stability(Stable) public Resources.Builder cpu(CpuResources cpu)
Sets the value ofResources.getCpu()- Parameters:
cpu- the value to be set. This parameter is required.- Returns:
this
-
memory
@Stability(Stable) public Resources.Builder memory(MemoryResources memory)
Sets the value ofResources.getMemory()- Parameters:
memory- the value to be set. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public Resources build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Resources>- Returns:
- a new instance of
Resources - Throws:
NullPointerException- if any required attribute was not provided
-
-