Class CfnSamplingRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.xray.CfnSamplingRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSamplingRuleProps>
- Enclosing interface:
CfnSamplingRuleProps
@Stability(Stable)
public static final class CfnSamplingRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSamplingRuleProps>
A builder for
CfnSamplingRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.samplingRule
(IResolvable samplingRule) Sets the value ofCfnSamplingRuleProps.getSamplingRule()
samplingRule
(CfnSamplingRule.SamplingRuleProperty samplingRule) Sets the value ofCfnSamplingRuleProps.getSamplingRule()
Sets the value ofCfnSamplingRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
samplingRule
Sets the value ofCfnSamplingRuleProps.getSamplingRule()
- Parameters:
samplingRule
- The sampling rule to be created or updated.- Returns:
this
-
samplingRule
@Stability(Stable) public CfnSamplingRuleProps.Builder samplingRule(CfnSamplingRule.SamplingRuleProperty samplingRule) Sets the value ofCfnSamplingRuleProps.getSamplingRule()
- Parameters:
samplingRule
- The sampling rule to be created or updated.- Returns:
this
-
tags
Sets the value ofCfnSamplingRuleProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSamplingRuleProps>
- Returns:
- a new instance of
CfnSamplingRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-