Class CfnServiceLevelObjective.GoalProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.GoalProperty>
- Enclosing interface:
CfnServiceLevelObjective.GoalProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.GoalProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.GoalProperty>
A builder for
CfnServiceLevelObjective.GoalProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattainmentGoal(Number attainmentGoal) Sets the value ofCfnServiceLevelObjective.GoalProperty.getAttainmentGoal()build()Builds the configured instance.interval(IResolvable interval) Sets the value ofCfnServiceLevelObjective.GoalProperty.getInterval()Sets the value ofCfnServiceLevelObjective.GoalProperty.getInterval()warningThreshold(Number warningThreshold) Sets the value ofCfnServiceLevelObjective.GoalProperty.getWarningThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attainmentGoal
@Stability(Stable) public CfnServiceLevelObjective.GoalProperty.Builder attainmentGoal(Number attainmentGoal) Sets the value ofCfnServiceLevelObjective.GoalProperty.getAttainmentGoal()- Parameters:
attainmentGoal- The threshold that determines if the goal is being met. An attainment goal is the ratio of good periods that meet the threshold requirements to the total periods within the interval. For example, an attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in healthy state.If you omit this parameter, 99 is used to represent 99% as the attainment goal.
- Returns:
this
-
interval
@Stability(Stable) public CfnServiceLevelObjective.GoalProperty.Builder interval(IResolvable interval) Sets the value ofCfnServiceLevelObjective.GoalProperty.getInterval()- Parameters:
interval- The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval. If you omit this parameter, a rolling interval of 7 days is used.- Returns:
this
-
interval
@Stability(Stable) public CfnServiceLevelObjective.GoalProperty.Builder interval(CfnServiceLevelObjective.IntervalProperty interval) Sets the value ofCfnServiceLevelObjective.GoalProperty.getInterval()- Parameters:
interval- The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval. If you omit this parameter, a rolling interval of 7 days is used.- Returns:
this
-
warningThreshold
@Stability(Stable) public CfnServiceLevelObjective.GoalProperty.Builder warningThreshold(Number warningThreshold) Sets the value ofCfnServiceLevelObjective.GoalProperty.getWarningThreshold()- Parameters:
warningThreshold- The percentage of remaining budget over total budget that you want to get warnings for. If you omit this parameter, the default of 50.0 is used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjective.GoalProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.GoalProperty - Throws:
NullPointerException- if any required attribute was not provided
-