Class CfnTask.TaskScheduleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnTask.TaskScheduleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTask.TaskScheduleProperty>
- Enclosing interface:
- CfnTask.TaskScheduleProperty
@Stability(Stable)
public static final class CfnTask.TaskScheduleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTask.TaskScheduleProperty>
A builder for
CfnTask.TaskScheduleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scheduleExpression(String scheduleExpression) Sets the value ofCfnTask.TaskScheduleProperty.getScheduleExpression()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scheduleExpression
@Stability(Stable) public CfnTask.TaskScheduleProperty.Builder scheduleExpression(String scheduleExpression) Sets the value ofCfnTask.TaskScheduleProperty.getScheduleExpression()- Parameters:
scheduleExpression- A cron expression that specifies when AWS DataSync initiates a scheduled transfer from a source to a destination location. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTask.TaskScheduleProperty>- Returns:
- a new instance of
CfnTask.TaskScheduleProperty - Throws:
NullPointerException- if any required attribute was not provided
-