Class CfnOnlineEvaluationConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnOnlineEvaluationConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOnlineEvaluationConfigProps>
- Enclosing interface:
CfnOnlineEvaluationConfigProps
@Stability(Stable)
public static final class CfnOnlineEvaluationConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOnlineEvaluationConfigProps>
A builder for
CfnOnlineEvaluationConfigProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataSourceConfig(IResolvable dataSourceConfig) Sets the value ofCfnOnlineEvaluationConfigProps.getDataSourceConfig()dataSourceConfig(CfnOnlineEvaluationConfig.DataSourceConfigProperty dataSourceConfig) Sets the value ofCfnOnlineEvaluationConfigProps.getDataSourceConfig()description(String description) Sets the value ofCfnOnlineEvaluationConfigProps.getDescription()evaluationExecutionRoleArn(String evaluationExecutionRoleArn) Sets the value ofCfnOnlineEvaluationConfigProps.getEvaluationExecutionRoleArn()evaluators(List<? extends Object> evaluators) Sets the value ofCfnOnlineEvaluationConfigProps.getEvaluators()evaluators(IResolvable evaluators) Sets the value ofCfnOnlineEvaluationConfigProps.getEvaluators()onlineEvaluationConfigName(String onlineEvaluationConfigName) Sets the value ofCfnOnlineEvaluationConfigProps.getOnlineEvaluationConfigName()rule(IResolvable rule) Sets the value ofCfnOnlineEvaluationConfigProps.getRule()Sets the value ofCfnOnlineEvaluationConfigProps.getRule()Sets the value ofCfnOnlineEvaluationConfigProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSourceConfig
@Stability(Stable) public CfnOnlineEvaluationConfigProps.Builder dataSourceConfig(IResolvable dataSourceConfig) Sets the value ofCfnOnlineEvaluationConfigProps.getDataSourceConfig()- Parameters:
dataSourceConfig- The configuration that specifies where to read agent traces for online evaluation. This parameter is required.- Returns:
this
-
dataSourceConfig
@Stability(Stable) public CfnOnlineEvaluationConfigProps.Builder dataSourceConfig(CfnOnlineEvaluationConfig.DataSourceConfigProperty dataSourceConfig) Sets the value ofCfnOnlineEvaluationConfigProps.getDataSourceConfig()- Parameters:
dataSourceConfig- The configuration that specifies where to read agent traces for online evaluation. This parameter is required.- Returns:
this
-
evaluationExecutionRoleArn
@Stability(Stable) public CfnOnlineEvaluationConfigProps.Builder evaluationExecutionRoleArn(String evaluationExecutionRoleArn) Sets the value ofCfnOnlineEvaluationConfigProps.getEvaluationExecutionRoleArn()- Parameters:
evaluationExecutionRoleArn- The Amazon Resource Name (ARN) of the IAM role that grants permissions for evaluation. This parameter is required.- Returns:
this
-
evaluators
Sets the value ofCfnOnlineEvaluationConfigProps.getEvaluators()- Parameters:
evaluators- The list of evaluators to apply during online evaluation. This parameter is required.- Returns:
this
-
evaluators
@Stability(Stable) public CfnOnlineEvaluationConfigProps.Builder evaluators(List<? extends Object> evaluators) Sets the value ofCfnOnlineEvaluationConfigProps.getEvaluators()- Parameters:
evaluators- The list of evaluators to apply during online evaluation. This parameter is required.- Returns:
this
-
onlineEvaluationConfigName
@Stability(Stable) public CfnOnlineEvaluationConfigProps.Builder onlineEvaluationConfigName(String onlineEvaluationConfigName) Sets the value ofCfnOnlineEvaluationConfigProps.getOnlineEvaluationConfigName()- Parameters:
onlineEvaluationConfigName- The name of the online evaluation configuration. This parameter is required. Must be unique within your account.- Returns:
this
-
rule
Sets the value ofCfnOnlineEvaluationConfigProps.getRule()- Parameters:
rule- The evaluation rule that defines sampling configuration, filtering criteria, and session detection settings. This parameter is required.- Returns:
this
-
rule
@Stability(Stable) public CfnOnlineEvaluationConfigProps.Builder rule(CfnOnlineEvaluationConfig.RuleProperty rule) Sets the value ofCfnOnlineEvaluationConfigProps.getRule()- Parameters:
rule- The evaluation rule that defines sampling configuration, filtering criteria, and session detection settings. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnOnlineEvaluationConfigProps.getDescription()- Parameters:
description- The description of the online evaluation configuration.- Returns:
this
-
tags
Sets the value ofCfnOnlineEvaluationConfigProps.getTags()- Parameters:
tags- A list of tags to assign to the online evaluation configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOnlineEvaluationConfigProps>- Returns:
- a new instance of
CfnOnlineEvaluationConfigProps - Throws:
NullPointerException- if any required attribute was not provided
-