Package org.cdk8s.plus23.k8s
Class KubePodProps.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KubePodProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePodProps>
- Enclosing interface:
- KubePodProps
@Stability(Stable) public static final class KubePodProps.Builder extends Object implements software.amazon.jsii.Builder<KubePodProps>
A builder forKubePodProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePodProps
build()
Builds the configured instance.KubePodProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubePodProps.getMetadata()
KubePodProps.Builder
spec(PodSpec spec)
Sets the value ofKubePodProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubePodProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubePodProps.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 KubePodProps.Builder spec(PodSpec spec)
Sets the value ofKubePodProps.getSpec()
- Parameters:
spec
- Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status- Returns:
this
-
build
@Stability(Stable) public KubePodProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubePodProps>
- Returns:
- a new instance of
KubePodProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-