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