Interface CreateOnlineEvaluationConfigRequest.Builder

  • Method Details

    • clientToken

      A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.

      Parameters:
      clientToken - A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onlineEvaluationConfigName

      CreateOnlineEvaluationConfigRequest.Builder onlineEvaluationConfigName(String onlineEvaluationConfigName)

      The name of the online evaluation configuration. Must be unique within your account.

      Parameters:
      onlineEvaluationConfigName - The name of the online evaluation configuration. Must be unique within your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      The description of the online evaluation configuration that explains its monitoring purpose and scope.

      Parameters:
      description - The description of the online evaluation configuration that explains its monitoring purpose and scope.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rule

      The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.

      Parameters:
      rule - The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rule

      The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.

      This is a convenience method that creates an instance of the Rule.Builder avoiding the need to create one manually via Rule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rule(Rule).

      Parameters:
      rule - a consumer that will call methods on Rule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataSourceConfig

      The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.

      Parameters:
      dataSourceConfig - The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataSourceConfig

      The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.

      This is a convenience method that creates an instance of the DataSourceConfig.Builder avoiding the need to create one manually via DataSourceConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dataSourceConfig(DataSourceConfig).

      Parameters:
      dataSourceConfig - a consumer that will call methods on DataSourceConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluators

      The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with CreateEvaluator.

      Parameters:
      evaluators - The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with CreateEvaluator.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluators

      The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with CreateEvaluator.

      Parameters:
      evaluators - The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with CreateEvaluator.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluators

      The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with CreateEvaluator.

      This is a convenience method that creates an instance of the EvaluatorReference.Builder avoiding the need to create one manually via EvaluatorReference.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to evaluators(List<EvaluatorReference>).

      Parameters:
      evaluators - a consumer that will call methods on EvaluatorReference.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluationExecutionRoleArn

      CreateOnlineEvaluationConfigRequest.Builder evaluationExecutionRoleArn(String evaluationExecutionRoleArn)

      The Amazon Resource Name (ARN) of the IAM role that grants permissions to read from CloudWatch logs, write evaluation results, and invoke Amazon Bedrock models for evaluation.

      Parameters:
      evaluationExecutionRoleArn - The Amazon Resource Name (ARN) of the IAM role that grants permissions to read from CloudWatch logs, write evaluation results, and invoke Amazon Bedrock models for evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enableOnCreate

      CreateOnlineEvaluationConfigRequest.Builder enableOnCreate(Boolean enableOnCreate)

      Whether to enable the online evaluation configuration immediately upon creation. If true, evaluation begins automatically.

      Parameters:
      enableOnCreate - Whether to enable the online evaluation configuration immediately upon creation. If true, evaluation begins automatically.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.