Interface CreateEvaluationJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockRequest.Builder,Buildable,CopyableBuilder<CreateEvaluationJobRequest.Builder,,CreateEvaluationJobRequest> SdkBuilder<CreateEvaluationJobRequest.Builder,,CreateEvaluationJobRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateEvaluationJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.customerEncryptionKeyId(String customerEncryptionKeyId) Specify your customer managed key ARN that will be used to encrypt your model evaluation job.evaluationConfig(Consumer<EvaluationConfig.Builder> evaluationConfig) Specifies whether the model evaluation job is automatic or uses human worker.evaluationConfig(EvaluationConfig evaluationConfig) Specifies whether the model evaluation job is automatic or uses human worker.inferenceConfig(Consumer<EvaluationInferenceConfig.Builder> inferenceConfig) Specify the models you want to use in your model evaluation job.inferenceConfig(EvaluationInferenceConfig inferenceConfig) Specify the models you want to use in your model evaluation job.jobDescription(String jobDescription) A description of the model evaluation job.The name of the model evaluation job.jobTags(Collection<Tag> jobTags) Tags to attach to the model evaluation job.jobTags(Consumer<Tag.Builder>... jobTags) Tags to attach to the model evaluation job.Tags to attach to the model evaluation job.outputDataConfig(Consumer<EvaluationOutputDataConfig.Builder> outputDataConfig) An object that defines where the results of model evaluation job will be saved in Amazon S3.outputDataConfig(EvaluationOutputDataConfig outputDataConfig) An object that defines where the results of model evaluation job will be saved in Amazon S3.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
jobName
The name of the model evaluation job. Model evaluation job names must unique with your AWS account, and your account's AWS region.
- Parameters:
jobName- The name of the model evaluation job. Model evaluation job names must unique with your AWS account, and your account's AWS region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobDescription
A description of the model evaluation job.
- Parameters:
jobDescription- A description of the model evaluation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- Parameters:
clientRequestToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. The service role must have Amazon Bedrock as the service principal, and provide access to any Amazon S3 buckets specified in the
EvaluationConfigobject. To pass this role to Amazon Bedrock, the caller of this API must have theiam:PassRolepermission. To learn more about the required permissions, see Required permissions.- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. The service role must have Amazon Bedrock as the service principal, and provide access to any Amazon S3 buckets specified in theEvaluationConfigobject. To pass this role to Amazon Bedrock, the caller of this API must have theiam:PassRolepermission. To learn more about the required permissions, see Required permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerEncryptionKeyId
Specify your customer managed key ARN that will be used to encrypt your model evaluation job.
- Parameters:
customerEncryptionKeyId- Specify your customer managed key ARN that will be used to encrypt your model evaluation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTags
Tags to attach to the model evaluation job.
- Parameters:
jobTags- Tags to attach to the model evaluation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTags
Tags to attach to the model evaluation job.
- Parameters:
jobTags- Tags to attach to the model evaluation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTags
Tags to attach to the model evaluation job.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tojobTags(List<Tag>).- Parameters:
jobTags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationConfig
Specifies whether the model evaluation job is automatic or uses human worker.
- Parameters:
evaluationConfig- Specifies whether the model evaluation job is automatic or uses human worker.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationConfig
default CreateEvaluationJobRequest.Builder evaluationConfig(Consumer<EvaluationConfig.Builder> evaluationConfig) Specifies whether the model evaluation job is automatic or uses human worker.
This is a convenience method that creates an instance of theEvaluationConfig.Builderavoiding the need to create one manually viaEvaluationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationConfig(EvaluationConfig).- Parameters:
evaluationConfig- a consumer that will call methods onEvaluationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inferenceConfig
Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model or inference profile, and model evaluation job that use human workers support two models or inference profiles.
- Parameters:
inferenceConfig- Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model or inference profile, and model evaluation job that use human workers support two models or inference profiles.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfig
default CreateEvaluationJobRequest.Builder inferenceConfig(Consumer<EvaluationInferenceConfig.Builder> inferenceConfig) Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model or inference profile, and model evaluation job that use human workers support two models or inference profiles.
This is a convenience method that creates an instance of theEvaluationInferenceConfig.Builderavoiding the need to create one manually viaEvaluationInferenceConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceConfig(EvaluationInferenceConfig).- Parameters:
inferenceConfig- a consumer that will call methods onEvaluationInferenceConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputDataConfig
An object that defines where the results of model evaluation job will be saved in Amazon S3.
- Parameters:
outputDataConfig- An object that defines where the results of model evaluation job will be saved in Amazon S3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputDataConfig
default CreateEvaluationJobRequest.Builder outputDataConfig(Consumer<EvaluationOutputDataConfig.Builder> outputDataConfig) An object that defines where the results of model evaluation job will be saved in Amazon S3.
This is a convenience method that creates an instance of theEvaluationOutputDataConfig.Builderavoiding the need to create one manually viaEvaluationOutputDataConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputDataConfig(EvaluationOutputDataConfig).- Parameters:
outputDataConfig- a consumer that will call methods onEvaluationOutputDataConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateEvaluationJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateEvaluationJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-