Class CfnServiceLevelObjective.RecurrenceRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RecurrenceRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.RecurrenceRuleProperty>
- Enclosing interface:
CfnServiceLevelObjective.RecurrenceRuleProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.RecurrenceRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.RecurrenceRuleProperty>
A builder for
CfnServiceLevelObjective.RecurrenceRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) Sets the value ofCfnServiceLevelObjective.RecurrenceRuleProperty.getExpression()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
@Stability(Stable) public CfnServiceLevelObjective.RecurrenceRuleProperty.Builder expression(String expression) Sets the value ofCfnServiceLevelObjective.RecurrenceRuleProperty.getExpression()- Parameters:
expression- The following two rules are supported:. This parameter is required.- rate(value unit) - The value must be a positive integer and the unit can be hour|day|month.
- cron - An expression which consists of six fields separated by white spaces: (minutes hours day_of_month month day_of_week year).
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjective.RecurrenceRuleProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.RecurrenceRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-