Package org.cdk8s.plus28.k8s
Class KubePodSchedulingContextV1Alpha2Props.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.KubePodSchedulingContextV1Alpha2Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubePodSchedulingContextV1Alpha2Props>
- Enclosing interface:
- KubePodSchedulingContextV1Alpha2Props
@Stability(Stable) public static final class KubePodSchedulingContextV1Alpha2Props.Builder extends Object implements software.amazon.jsii.Builder<KubePodSchedulingContextV1Alpha2Props>
A builder forKubePodSchedulingContextV1Alpha2Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePodSchedulingContextV1Alpha2Propsbuild()Builds the configured instance.KubePodSchedulingContextV1Alpha2Props.Buildermetadata(ObjectMeta metadata)Sets the value ofKubePodSchedulingContextV1Alpha2Props.getMetadata()KubePodSchedulingContextV1Alpha2Props.Builderspec(PodSchedulingContextSpecV1Alpha2 spec)Sets the value ofKubePodSchedulingContextV1Alpha2Props.getSpec()
-
-
-
Method Detail
-
spec
@Stability(Stable) public KubePodSchedulingContextV1Alpha2Props.Builder spec(PodSchedulingContextSpecV1Alpha2 spec)
Sets the value ofKubePodSchedulingContextV1Alpha2Props.getSpec()- Parameters:
spec- Spec describes where resources for the Pod are needed. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubePodSchedulingContextV1Alpha2Props.Builder metadata(ObjectMeta metadata)
Sets the value ofKubePodSchedulingContextV1Alpha2Props.getMetadata()- Parameters:
metadata- Standard object metadata.- Returns:
this
-
build
@Stability(Stable) public KubePodSchedulingContextV1Alpha2Props build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubePodSchedulingContextV1Alpha2Props>- Returns:
- a new instance of
KubePodSchedulingContextV1Alpha2Props - Throws:
NullPointerException- if any required attribute was not provided
-
-