Class CfnSamplingRule.Builder
java.lang.Object
software.amazon.awscdk.services.xray.CfnSamplingRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSamplingRule>
- Enclosing class:
CfnSamplingRule
@Stability(Stable)
public static final class CfnSamplingRule.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSamplingRule>
A fluent builder for
CfnSamplingRule.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnSamplingRule.BuilderDeprecated.this property has been deprecatedsamplingRule(IResolvable samplingRule) The sampling rule to be created or updated.samplingRule(CfnSamplingRule.SamplingRuleProperty samplingRule) The sampling rule to be created or updated.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 deprecatedAn array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnSamplingRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnSamplingRule.Builder.
-
ruleName
Deprecated.this property has been deprecated(deprecated) The ARN of the sampling rule.Specify a rule by either name or ARN, but not both.
- Parameters:
ruleName- The ARN of the sampling rule. This parameter is required.- Returns:
this- See Also:
-
samplingRule
The sampling rule to be created or updated.- Parameters:
samplingRule- The sampling rule to be created or updated. This parameter is required.- Returns:
this- See Also:
-
samplingRule
@Stability(Stable) public CfnSamplingRule.Builder samplingRule(CfnSamplingRule.SamplingRuleProperty samplingRule) The sampling rule to be created or updated.- Parameters:
samplingRule- The sampling rule to be created or updated. This parameter is required.- Returns:
this- See Also:
-
samplingRuleRecord
@Stability(Deprecated) @Deprecated public CfnSamplingRule.Builder samplingRuleRecord(IResolvable samplingRuleRecord) Deprecated.this property has been deprecated- Parameters:
samplingRuleRecord- This parameter is required.- Returns:
this- See Also:
-
samplingRuleRecord
@Stability(Deprecated) @Deprecated public CfnSamplingRule.Builder samplingRuleRecord(CfnSamplingRule.SamplingRuleRecordProperty samplingRuleRecord) Deprecated.this property has been deprecated- Parameters:
samplingRuleRecord- This parameter is required.- Returns:
this- See Also:
-
samplingRuleUpdate
@Stability(Deprecated) @Deprecated public CfnSamplingRule.Builder samplingRuleUpdate(IResolvable samplingRuleUpdate) Deprecated.this property has been deprecated- Parameters:
samplingRuleUpdate- This parameter is required.- Returns:
this- See Also:
-
samplingRuleUpdate
@Stability(Deprecated) @Deprecated public CfnSamplingRule.Builder samplingRuleUpdate(CfnSamplingRule.SamplingRuleUpdateProperty samplingRuleUpdate) Deprecated.this property has been deprecated- Parameters:
samplingRuleUpdate- This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSamplingRule>- Returns:
- a newly built instance of
CfnSamplingRule.
-