Class CfnServiceLevelObjectiveMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectiveMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjectiveMixinProps>
- Enclosing interface:
CfnServiceLevelObjectiveMixinProps
@Stability(Stable)
public static final class CfnServiceLevelObjectiveMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjectiveMixinProps>
A builder for
CfnServiceLevelObjectiveMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.burnRateConfigurations(List<? extends Object> burnRateConfigurations) Sets the value ofCfnServiceLevelObjectiveMixinProps.getBurnRateConfigurations()burnRateConfigurations(IResolvable burnRateConfigurations) Sets the value ofCfnServiceLevelObjectiveMixinProps.getBurnRateConfigurations()description(String description) Sets the value ofCfnServiceLevelObjectiveMixinProps.getDescription()exclusionWindows(List<? extends Object> exclusionWindows) Sets the value ofCfnServiceLevelObjectiveMixinProps.getExclusionWindows()exclusionWindows(IResolvable exclusionWindows) Sets the value ofCfnServiceLevelObjectiveMixinProps.getExclusionWindows()Sets the value ofCfnServiceLevelObjectiveMixinProps.getGoal()goal(IResolvable goal) Sets the value ofCfnServiceLevelObjectiveMixinProps.getGoal()Sets the value ofCfnServiceLevelObjectiveMixinProps.getName()Sets the value ofCfnServiceLevelObjectiveMixinProps.getRequestBasedSli()requestBasedSli(IResolvable requestBasedSli) Sets the value ofCfnServiceLevelObjectiveMixinProps.getRequestBasedSli()Sets the value ofCfnServiceLevelObjectiveMixinProps.getSli()sli(IResolvable sli) Sets the value ofCfnServiceLevelObjectiveMixinProps.getSli()Sets the value ofCfnServiceLevelObjectiveMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
burnRateConfigurations
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder burnRateConfigurations(IResolvable burnRateConfigurations) Sets the value ofCfnServiceLevelObjectiveMixinProps.getBurnRateConfigurations()- Parameters:
burnRateConfigurations- Each object in this array defines the length of the look-back window used to calculate one burn rate metric for this SLO. The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO.- Returns:
this
-
burnRateConfigurations
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder burnRateConfigurations(List<? extends Object> burnRateConfigurations) Sets the value ofCfnServiceLevelObjectiveMixinProps.getBurnRateConfigurations()- Parameters:
burnRateConfigurations- Each object in this array defines the length of the look-back window used to calculate one burn rate metric for this SLO. The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO.- Returns:
this
-
description
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder description(String description) Sets the value ofCfnServiceLevelObjectiveMixinProps.getDescription()- Parameters:
description- An optional description for this SLO.- Returns:
this
-
exclusionWindows
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder exclusionWindows(IResolvable exclusionWindows) Sets the value ofCfnServiceLevelObjectiveMixinProps.getExclusionWindows()- Parameters:
exclusionWindows- The time window to be excluded from the SLO performance metrics.- Returns:
this
-
exclusionWindows
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder exclusionWindows(List<? extends Object> exclusionWindows) Sets the value ofCfnServiceLevelObjectiveMixinProps.getExclusionWindows()- Parameters:
exclusionWindows- The time window to be excluded from the SLO performance metrics.- Returns:
this
-
goal
Sets the value ofCfnServiceLevelObjectiveMixinProps.getGoal()- Parameters:
goal- This structure contains the attributes that determine the goal of an SLO. This includes the time period for evaluation and the attainment threshold.- Returns:
this
-
goal
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder goal(CfnServiceLevelObjectivePropsMixin.GoalProperty goal) Sets the value ofCfnServiceLevelObjectiveMixinProps.getGoal()- Parameters:
goal- This structure contains the attributes that determine the goal of an SLO. This includes the time period for evaluation and the attainment threshold.- Returns:
this
-
name
Sets the value ofCfnServiceLevelObjectiveMixinProps.getName()- Parameters:
name- A name for this SLO.- Returns:
this
-
requestBasedSli
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder requestBasedSli(IResolvable requestBasedSli) Sets the value ofCfnServiceLevelObjectiveMixinProps.getRequestBasedSli()- Parameters:
requestBasedSli- A structure containing information about the performance metric that this SLO monitors, if this is a request-based SLO.- Returns:
this
-
requestBasedSli
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder requestBasedSli(CfnServiceLevelObjectivePropsMixin.RequestBasedSliProperty requestBasedSli) Sets the value ofCfnServiceLevelObjectiveMixinProps.getRequestBasedSli()- Parameters:
requestBasedSli- A structure containing information about the performance metric that this SLO monitors, if this is a request-based SLO.- Returns:
this
-
sli
Sets the value ofCfnServiceLevelObjectiveMixinProps.getSli()- Parameters:
sli- A structure containing information about the performance metric that this SLO monitors, if this is a period-based SLO.- Returns:
this
-
sli
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder sli(CfnServiceLevelObjectivePropsMixin.SliProperty sli) Sets the value ofCfnServiceLevelObjectiveMixinProps.getSli()- Parameters:
sli- A structure containing information about the performance metric that this SLO monitors, if this is a period-based SLO.- Returns:
this
-
tags
@Stability(Stable) public CfnServiceLevelObjectiveMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnServiceLevelObjectiveMixinProps.getTags()- Parameters:
tags- A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the cloudwatch:TagResource permission.Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjectiveMixinProps>- Returns:
- a new instance of
CfnServiceLevelObjectiveMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-