Package org.cdk8s.plus24.k8s
Class KubeLimitRangeProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeLimitRangeProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeLimitRangeProps>
- Enclosing interface:
- KubeLimitRangeProps
@Stability(Stable) public static final class KubeLimitRangeProps.Builder extends Object implements software.amazon.jsii.Builder<KubeLimitRangeProps>
A builder forKubeLimitRangeProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeLimitRangeProps
build()
Builds the configured instance.KubeLimitRangeProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeLimitRangeProps.getMetadata()
KubeLimitRangeProps.Builder
spec(LimitRangeSpec spec)
Sets the value ofKubeLimitRangeProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeLimitRangeProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeLimitRangeProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
spec
@Stability(Stable) public KubeLimitRangeProps.Builder spec(LimitRangeSpec spec)
Sets the value ofKubeLimitRangeProps.getSpec()
- Parameters:
spec
- Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status- Returns:
this
-
build
@Stability(Stable) public KubeLimitRangeProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeLimitRangeProps>
- Returns:
- a new instance of
KubeLimitRangeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-