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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Deprecated.this property has been deprecatedsamplingRule(IResolvable samplingRule) Sets the value ofCfnSamplingRuleProps.getSamplingRule()samplingRule(CfnSamplingRule.SamplingRuleProperty samplingRule) Sets the value ofCfnSamplingRuleProps.getSamplingRule()samplingRuleRecord(IResolvable samplingRuleRecord) Deprecated.this property has been deprecatedsamplingRuleRecord(CfnSamplingRule.SamplingRuleRecordProperty samplingRuleRecord) Deprecated.this property has been deprecatedsamplingRuleUpdate(IResolvable samplingRuleUpdate) Deprecated.this property has been deprecatedsamplingRuleUpdate(CfnSamplingRule.SamplingRuleUpdateProperty samplingRuleUpdate) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ruleName
Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleProps.getRuleName()- Parameters:
ruleName- The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.- Returns:
this
-
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
-
samplingRuleRecord
@Stability(Deprecated) @Deprecated public CfnSamplingRuleProps.Builder samplingRuleRecord(IResolvable samplingRuleRecord) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleProps.getSamplingRuleRecord()- Parameters:
samplingRuleRecord- the value to be set.- Returns:
this
-
samplingRuleRecord
@Stability(Deprecated) @Deprecated public CfnSamplingRuleProps.Builder samplingRuleRecord(CfnSamplingRule.SamplingRuleRecordProperty samplingRuleRecord) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleProps.getSamplingRuleRecord()- Parameters:
samplingRuleRecord- the value to be set.- Returns:
this
-
samplingRuleUpdate
@Stability(Deprecated) @Deprecated public CfnSamplingRuleProps.Builder samplingRuleUpdate(IResolvable samplingRuleUpdate) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleProps.getSamplingRuleUpdate()- Parameters:
samplingRuleUpdate- the value to be set.- Returns:
this
-
samplingRuleUpdate
@Stability(Deprecated) @Deprecated public CfnSamplingRuleProps.Builder samplingRuleUpdate(CfnSamplingRule.SamplingRuleUpdateProperty samplingRuleUpdate) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleProps.getSamplingRuleUpdate()- Parameters:
samplingRuleUpdate- the value to be set.- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnSamplingRuleProps>- Returns:
- a new instance of
CfnSamplingRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-