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