Class CfnSnapshotScheduleProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnSnapshotScheduleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotScheduleProps>
- Enclosing interface:
CfnSnapshotScheduleProps
@Stability(Stable)
public static final class CfnSnapshotScheduleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotScheduleProps>
A builder for
CfnSnapshotScheduleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scheduleDefinitions(List<String> scheduleDefinitions) Sets the value ofCfnSnapshotScheduleProps.getScheduleDefinitions()scheduleDescription(String scheduleDescription) Sets the value ofCfnSnapshotScheduleProps.getScheduleDescription()scheduleIdentifier(String scheduleIdentifier) Sets the value ofCfnSnapshotScheduleProps.getScheduleIdentifier()Sets the value ofCfnSnapshotScheduleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scheduleDefinitions
@Stability(Stable) public CfnSnapshotScheduleProps.Builder scheduleDefinitions(List<String> scheduleDefinitions) Sets the value ofCfnSnapshotScheduleProps.getScheduleDefinitions()- Parameters:
scheduleDefinitions- The definition of the snapshot schedule. This parameter is required. The definition is made up of schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".- Returns:
this
-
scheduleIdentifier
@Stability(Stable) public CfnSnapshotScheduleProps.Builder scheduleIdentifier(String scheduleIdentifier) Sets the value ofCfnSnapshotScheduleProps.getScheduleIdentifier()- Parameters:
scheduleIdentifier- A unique identifier for the snapshot schedule. This parameter is required. Only alphanumeric characters are allowed.- Returns:
this
-
scheduleDescription
@Stability(Stable) public CfnSnapshotScheduleProps.Builder scheduleDescription(String scheduleDescription) Sets the value ofCfnSnapshotScheduleProps.getScheduleDescription()- Parameters:
scheduleDescription- The description of the snapshot schedule.- Returns:
this
-
tags
Sets the value ofCfnSnapshotScheduleProps.getTags()- Parameters:
tags- An optional set of tags for the snapshot schedule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotScheduleProps>- Returns:
- a new instance of
CfnSnapshotScheduleProps - Throws:
NullPointerException- if any required attribute was not provided
-