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