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