Class CfnSamplingRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.xray.CfnSamplingRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSamplingRuleMixinProps>
- Enclosing interface:
CfnSamplingRuleMixinProps
@Stability(Stable)
public static final class CfnSamplingRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSamplingRuleMixinProps>
A builder for
CfnSamplingRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Deprecated.this property has been deprecatedsamplingRule(CfnSamplingRulePropsMixin.SamplingRuleProperty samplingRule) Sets the value ofCfnSamplingRuleMixinProps.getSamplingRule()samplingRule(IResolvable samplingRule) Sets the value ofCfnSamplingRuleMixinProps.getSamplingRule()samplingRuleRecord(CfnSamplingRulePropsMixin.SamplingRuleRecordProperty samplingRuleRecord) Deprecated.this property has been deprecatedsamplingRuleRecord(IResolvable samplingRuleRecord) Deprecated.this property has been deprecatedsamplingRuleUpdate(CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty samplingRuleUpdate) Deprecated.this property has been deprecatedsamplingRuleUpdate(IResolvable samplingRuleUpdate) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ruleName
@Stability(Deprecated) @Deprecated public CfnSamplingRuleMixinProps.Builder ruleName(String ruleName) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleMixinProps.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 ofCfnSamplingRuleMixinProps.getSamplingRule()- Parameters:
samplingRule- The sampling rule to be created or updated.- Returns:
this
-
samplingRule
@Stability(Stable) public CfnSamplingRuleMixinProps.Builder samplingRule(CfnSamplingRulePropsMixin.SamplingRuleProperty samplingRule) Sets the value ofCfnSamplingRuleMixinProps.getSamplingRule()- Parameters:
samplingRule- The sampling rule to be created or updated.- Returns:
this
-
samplingRuleRecord
@Stability(Deprecated) @Deprecated public CfnSamplingRuleMixinProps.Builder samplingRuleRecord(IResolvable samplingRuleRecord) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleMixinProps.getSamplingRuleRecord()- Parameters:
samplingRuleRecord- the value to be set.- Returns:
this
-
samplingRuleRecord
@Stability(Deprecated) @Deprecated public CfnSamplingRuleMixinProps.Builder samplingRuleRecord(CfnSamplingRulePropsMixin.SamplingRuleRecordProperty samplingRuleRecord) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleMixinProps.getSamplingRuleRecord()- Parameters:
samplingRuleRecord- the value to be set.- Returns:
this
-
samplingRuleUpdate
@Stability(Deprecated) @Deprecated public CfnSamplingRuleMixinProps.Builder samplingRuleUpdate(IResolvable samplingRuleUpdate) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleMixinProps.getSamplingRuleUpdate()- Parameters:
samplingRuleUpdate- the value to be set.- Returns:
this
-
samplingRuleUpdate
@Stability(Deprecated) @Deprecated public CfnSamplingRuleMixinProps.Builder samplingRuleUpdate(CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty samplingRuleUpdate) Deprecated.this property has been deprecatedSets the value ofCfnSamplingRuleMixinProps.getSamplingRuleUpdate()- Parameters:
samplingRuleUpdate- the value to be set.- Returns:
this
-
tags
Sets the value ofCfnSamplingRuleMixinProps.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<CfnSamplingRuleMixinProps>- Returns:
- a new instance of
CfnSamplingRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-