Class CfnOnlineEvaluationConfig.SamplingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnOnlineEvaluationConfig.SamplingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOnlineEvaluationConfig.SamplingConfigProperty>
- Enclosing interface:
CfnOnlineEvaluationConfig.SamplingConfigProperty
@Stability(Stable)
public static final class CfnOnlineEvaluationConfig.SamplingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOnlineEvaluationConfig.SamplingConfigProperty>
A builder for
CfnOnlineEvaluationConfig.SamplingConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.samplingPercentage(Number samplingPercentage) Sets the value ofCfnOnlineEvaluationConfig.SamplingConfigProperty.getSamplingPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
samplingPercentage
@Stability(Stable) public CfnOnlineEvaluationConfig.SamplingConfigProperty.Builder samplingPercentage(Number samplingPercentage) Sets the value ofCfnOnlineEvaluationConfig.SamplingConfigProperty.getSamplingPercentage()- Parameters:
samplingPercentage- The percentage of agent traces to sample for evaluation. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOnlineEvaluationConfig.SamplingConfigProperty>- Returns:
- a new instance of
CfnOnlineEvaluationConfig.SamplingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-