Class ImagePipelineSchedule.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.ImagePipelineSchedule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ImagePipelineSchedule>
- Enclosing interface:
ImagePipelineSchedule
@Stability(Experimental)
public static final class ImagePipelineSchedule.Builder
extends Object
implements software.amazon.jsii.Builder<ImagePipelineSchedule>
A builder for
ImagePipelineSchedule-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoDisableFailureCount(Number autoDisableFailureCount) Sets the value ofImagePipelineSchedule.getAutoDisableFailureCount()build()Builds the configured instance.expression(Schedule expression) Sets the value ofImagePipelineSchedule.getExpression()startCondition(ScheduleStartCondition startCondition) Sets the value ofImagePipelineSchedule.getStartCondition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
Sets the value ofImagePipelineSchedule.getExpression()- Parameters:
expression- The schedule expression to use. This parameter is required. This can either be a cron expression or a rate expression.- Returns:
this
-
autoDisableFailureCount
@Stability(Experimental) public ImagePipelineSchedule.Builder autoDisableFailureCount(Number autoDisableFailureCount) Sets the value ofImagePipelineSchedule.getAutoDisableFailureCount()- Parameters:
autoDisableFailureCount- The number of consecutive failures allowed before the pipeline is automatically disabled. This value must be between 1 and 10.- Returns:
this
-
startCondition
@Stability(Experimental) public ImagePipelineSchedule.Builder startCondition(ScheduleStartCondition startCondition) Sets the value ofImagePipelineSchedule.getStartCondition()- Parameters:
startCondition- The start condition for the pipeline, indicating the condition under which a pipeline should be triggered.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ImagePipelineSchedule>- Returns:
- a new instance of
ImagePipelineSchedule - Throws:
NullPointerException- if any required attribute was not provided
-