Class CfnTrigger.ScheduleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnTrigger.ScheduleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrigger.ScheduleProperty>
- Enclosing interface:
CfnTrigger.ScheduleProperty
@Stability(Stable)
public static final class CfnTrigger.ScheduleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrigger.ScheduleProperty>
A builder for
CfnTrigger.ScheduleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) Sets the value ofCfnTrigger.ScheduleProperty.getExpression()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
Sets the value ofCfnTrigger.ScheduleProperty.getExpression()- Parameters:
expression- A cron or rate expression that defines when the trigger fires. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrigger.ScheduleProperty>- Returns:
- a new instance of
CfnTrigger.ScheduleProperty - Throws:
NullPointerException- if any required attribute was not provided
-