Interface SamplingTargetDocument.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SamplingTargetDocument.Builder,,SamplingTargetDocument> SdkBuilder<SamplingTargetDocument.Builder,,SamplingTargetDocument> SdkPojo
- Enclosing class:
SamplingTargetDocument
@Mutable
@NotThreadSafe
public static interface SamplingTargetDocument.Builder
extends SdkPojo, CopyableBuilder<SamplingTargetDocument.Builder,SamplingTargetDocument>
-
Method Summary
Modifier and TypeMethodDescriptionThe percentage of matching requests to instrument, after the reservoir is exhausted.The number of seconds for the service to wait before getting sampling targets again.reservoirQuota(Integer reservoirQuota) The number of requests per second that X-Ray allocated for this service.reservoirQuotaTTL(Instant reservoirQuotaTTL) When the reservoir quota expires.The name of the sampling rule.default SamplingTargetDocument.BuildersamplingBoost(Consumer<SamplingBoost.Builder> samplingBoost) The sampling boost that X-Ray allocated for this service.samplingBoost(SamplingBoost samplingBoost) The sampling boost that X-Ray allocated for this service.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ruleName
The name of the sampling rule.
- Parameters:
ruleName- The name of the sampling rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixedRate
The percentage of matching requests to instrument, after the reservoir is exhausted.
- Parameters:
fixedRate- The percentage of matching requests to instrument, after the reservoir is exhausted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservoirQuota
The number of requests per second that X-Ray allocated for this service.
- Parameters:
reservoirQuota- The number of requests per second that X-Ray allocated for this service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservoirQuotaTTL
When the reservoir quota expires.
- Parameters:
reservoirQuotaTTL- When the reservoir quota expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interval
The number of seconds for the service to wait before getting sampling targets again.
- Parameters:
interval- The number of seconds for the service to wait before getting sampling targets again.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
samplingBoost
The sampling boost that X-Ray allocated for this service.
- Parameters:
samplingBoost- The sampling boost that X-Ray allocated for this service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
samplingBoost
The sampling boost that X-Ray allocated for this service.
This is a convenience method that creates an instance of theSamplingBoost.Builderavoiding the need to create one manually viaSamplingBoost.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosamplingBoost(SamplingBoost).- Parameters:
samplingBoost- a consumer that will call methods onSamplingBoost.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-