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