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 Details

    • create

      @Stability(Stable) public static CfnSamplingRule.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnSamplingRule.Builder.
    • samplingRule

      @Stability(Stable) public CfnSamplingRule.Builder samplingRule(IResolvable 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
    • 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
    • tags

      @Stability(Stable) public CfnSamplingRule.Builder tags(List<? extends Object> 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
    • build

      @Stability(Stable) public CfnSamplingRule build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSamplingRule>
      Returns:
      a newly built instance of CfnSamplingRule.