Class CfnLogAlarmPropsMixin.ScheduleConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnLogAlarmPropsMixin.ScheduleConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogAlarmPropsMixin.ScheduleConfigurationProperty>
- Enclosing interface:
CfnLogAlarmPropsMixin.ScheduleConfigurationProperty
@Stability(Stable)
public static final class CfnLogAlarmPropsMixin.ScheduleConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLogAlarmPropsMixin.ScheduleConfigurationProperty>
A builder for
CfnLogAlarmPropsMixin.ScheduleConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.endTimeOffset(Number endTimeOffset) Sets the value ofCfnLogAlarmPropsMixin.ScheduleConfigurationProperty.getEndTimeOffset()scheduleExpression(String scheduleExpression) startTimeOffset(Number startTimeOffset) Sets the value ofCfnLogAlarmPropsMixin.ScheduleConfigurationProperty.getStartTimeOffset()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endTimeOffset
@Stability(Stable) public CfnLogAlarmPropsMixin.ScheduleConfigurationProperty.Builder endTimeOffset(Number endTimeOffset) Sets the value ofCfnLogAlarmPropsMixin.ScheduleConfigurationProperty.getEndTimeOffset()- Parameters:
endTimeOffset- The number of seconds into the past to end the query window.- Returns:
this
-
scheduleExpression
@Stability(Stable) public CfnLogAlarmPropsMixin.ScheduleConfigurationProperty.Builder scheduleExpression(String scheduleExpression) - Parameters:
scheduleExpression- The expression that defines when the scheduled query runs, e.g. rate(1 minute).- Returns:
this
-
startTimeOffset
@Stability(Stable) public CfnLogAlarmPropsMixin.ScheduleConfigurationProperty.Builder startTimeOffset(Number startTimeOffset) Sets the value ofCfnLogAlarmPropsMixin.ScheduleConfigurationProperty.getStartTimeOffset()- Parameters:
startTimeOffset- The number of seconds into the past to start the query window.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLogAlarmPropsMixin.ScheduleConfigurationProperty>- Returns:
- a new instance of
CfnLogAlarmPropsMixin.ScheduleConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-