Class CfnSamplingRule.SamplingRateBoostProperty.Builder
java.lang.Object
software.amazon.awscdk.services.xray.CfnSamplingRule.SamplingRateBoostProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSamplingRule.SamplingRateBoostProperty>
- Enclosing interface:
CfnSamplingRule.SamplingRateBoostProperty
@Stability(Stable)
public static final class CfnSamplingRule.SamplingRateBoostProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSamplingRule.SamplingRateBoostProperty>
A builder for
CfnSamplingRule.SamplingRateBoostProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cooldownWindowMinutes(Number cooldownWindowMinutes) Sets the value ofCfnSamplingRule.SamplingRateBoostProperty.getCooldownWindowMinutes()Sets the value ofCfnSamplingRule.SamplingRateBoostProperty.getMaxRate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cooldownWindowMinutes
@Stability(Stable) public CfnSamplingRule.SamplingRateBoostProperty.Builder cooldownWindowMinutes(Number cooldownWindowMinutes) Sets the value ofCfnSamplingRule.SamplingRateBoostProperty.getCooldownWindowMinutes()- Parameters:
cooldownWindowMinutes- Time window (in minutes) in which only one sampling rate boost can be triggered. This parameter is required. After a boost occurs, no further boosts are allowed until the next window.- Returns:
this
-
maxRate
Sets the value ofCfnSamplingRule.SamplingRateBoostProperty.getMaxRate()- Parameters:
maxRate- The maximum sampling rate X-Ray will apply when it detects anomalies. This parameter is required. X-Ray determines the appropriate rate between your baseline and the maximum, depending on anomaly activity.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSamplingRule.SamplingRateBoostProperty>- Returns:
- a new instance of
CfnSamplingRule.SamplingRateBoostProperty - Throws:
NullPointerException- if any required attribute was not provided
-