Package org.cdk8s.plus25.k8s
Class KubePod.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubePod.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubePodbuild()static KubePod.Buildercreate(software.constructs.Construct scope, String id)KubePod.Buildermetadata(ObjectMeta metadata)Standard object's metadata.KubePod.Builderspec(PodSpec spec)Specification of the desired behavior of the pod.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubePod.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- the scope in which to define this object. This parameter is required.id- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubePod.Builder.
-
metadata
@Stability(Stable) public KubePod.Builder metadata(ObjectMeta metadata)
Standard object's metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata- Standard object's metadata. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public KubePod.Builder spec(PodSpec 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
- Parameters:
spec- Specification of the desired behavior of the pod. This parameter is required.- Returns:
this
-
-