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