Package org.cdk8s.plus25.k8s
Class KubePodTemplateProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubePodTemplateProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePodTemplateProps>
- Enclosing interface:
- KubePodTemplateProps
@Stability(Stable) public static final class KubePodTemplateProps.Builder extends Object implements software.amazon.jsii.Builder<KubePodTemplateProps>
A builder forKubePodTemplateProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePodTemplatePropsbuild()Builds the configured instance.KubePodTemplateProps.Buildermetadata(ObjectMeta metadata)Sets the value ofKubePodTemplateProps.getMetadata()KubePodTemplateProps.Buildertemplate(PodTemplateSpec template)Sets the value ofKubePodTemplateProps.getTemplate()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubePodTemplateProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubePodTemplateProps.getMetadata()- Parameters:
metadata- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
template
@Stability(Stable) public KubePodTemplateProps.Builder template(PodTemplateSpec template)
Sets the value ofKubePodTemplateProps.getTemplate()- Parameters:
template- Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status- Returns:
this
-
build
@Stability(Stable) public KubePodTemplateProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubePodTemplateProps>- Returns:
- a new instance of
KubePodTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-
-