Class CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.xray.CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty>
- Enclosing interface:
CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty
@Stability(Stable)
public static final class CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty>
A builder for
CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(Map<String, String> attributes) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getAttributes()attributes(IResolvable attributes) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getAttributes()build()Builds the configured instance.Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getFixedRate()Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getHost()httpMethod(String httpMethod) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getHttpMethod()Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getPriority()reservoirSize(Number reservoirSize) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getReservoirSize()resourceArn(String resourceArn) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getResourceArn()Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getRuleArn()Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getRuleName()serviceName(String serviceName) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getServiceName()serviceType(String serviceType) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getServiceType()Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getUrlPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder attributes(Map<String, String> attributes) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getAttributes()- Parameters:
attributes- Matches attributes derived from the request.- Returns:
this
-
attributes
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder attributes(IResolvable attributes) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getAttributes()- Parameters:
attributes- Matches attributes derived from the request.- Returns:
this
-
fixedRate
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder fixedRate(Number fixedRate) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getFixedRate()- Parameters:
fixedRate- The percentage of matching requests to instrument, after the reservoir is exhausted.- Returns:
this
-
host
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder host(String host) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getHost()- Parameters:
host- Matches the hostname from a request URL.- Returns:
this
-
httpMethod
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder httpMethod(String httpMethod) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getHttpMethod()- Parameters:
httpMethod- Matches the HTTP method from a request URL.- Returns:
this
-
priority
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder priority(Number priority) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getPriority()- Parameters:
priority- The priority of the sampling rule.- Returns:
this
-
reservoirSize
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder reservoirSize(Number reservoirSize) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getReservoirSize()- Parameters:
reservoirSize- A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.- Returns:
this
-
resourceArn
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder resourceArn(String resourceArn) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getResourceArn()- Parameters:
resourceArn- Matches the ARN of the AWS resource on which the service runs.- Returns:
this
-
ruleArn
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder ruleArn(String ruleArn) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getRuleArn()- Parameters:
ruleArn- The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.- Returns:
this
-
ruleName
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder ruleName(String ruleName) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getRuleName()- Parameters:
ruleName- The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.- Returns:
this
-
serviceName
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder serviceName(String serviceName) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getServiceName()- Parameters:
serviceName- Matches the name that the service uses to identify itself in segments.- Returns:
this
-
serviceType
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder serviceType(String serviceType) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getServiceType()- Parameters:
serviceType- Matches the origin that the service uses to identify its type in segments.- Returns:
this
-
urlPath
@Stability(Stable) public CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.Builder urlPath(String urlPath) Sets the value ofCfnSamplingRulePropsMixin.SamplingRuleUpdateProperty.getUrlPath()- Parameters:
urlPath- Matches the path from a request URL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty>- Returns:
- a new instance of
CfnSamplingRulePropsMixin.SamplingRuleUpdateProperty - Throws:
NullPointerException- if any required attribute was not provided
-