Interface GetAdvancedPromptOptimizationJobResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockResponse.Builder,Buildable,CopyableBuilder<GetAdvancedPromptOptimizationJobResponse.Builder,,GetAdvancedPromptOptimizationJobResponse> SdkBuilder<GetAdvancedPromptOptimizationJobResponse.Builder,,GetAdvancedPromptOptimizationJobResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetAdvancedPromptOptimizationJobResponse
-
Method Summary
Modifier and TypeMethodDescriptioncreationTime(Instant creationTime) The time at which the advanced prompt optimization job was created.encryptionKeyArn(String encryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key used to encrypt the output data.failureMessage(String failureMessage) If the job failed, a message describing the reason for the failure.inputConfig(Consumer<AdvancedPromptOptimizationInputConfig.Builder> inputConfig) The input data configuration for the optimization job.inputConfig(AdvancedPromptOptimizationInputConfig inputConfig) The input data configuration for the optimization job.The Amazon Resource Name (ARN) of the advanced prompt optimization job.jobDescription(String jobDescription) The description of the advanced prompt optimization job.The name of the advanced prompt optimization job.The status of the advanced prompt optimization job.jobStatus(AdvancedPromptOptimizationJobStatus jobStatus) The status of the advanced prompt optimization job.lastModifiedTime(Instant lastModifiedTime) The time at which the advanced prompt optimization job was last modified.modelConfigurations(Collection<ModelConfiguration> modelConfigurations) The model configurations used in the optimization job.modelConfigurations(Consumer<ModelConfiguration.Builder>... modelConfigurations) The model configurations used in the optimization job.modelConfigurations(ModelConfiguration... modelConfigurations) The model configurations used in the optimization job.outputConfig(Consumer<AdvancedPromptOptimizationOutputConfig.Builder> outputConfig) The output data configuration for the optimization job.outputConfig(AdvancedPromptOptimizationOutputConfig outputConfig) The output data configuration for the optimization job.Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
jobArn
The Amazon Resource Name (ARN) of the advanced prompt optimization job.
- Parameters:
jobArn- The Amazon Resource Name (ARN) of the advanced prompt optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobName
The name of the advanced prompt optimization job.
- Parameters:
jobName- The name of the advanced prompt optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobDescription
The description of the advanced prompt optimization job.
- Parameters:
jobDescription- The description of the advanced prompt optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobStatus
The status of the advanced prompt optimization job.
- Parameters:
jobStatus- The status of the advanced prompt optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobStatus
GetAdvancedPromptOptimizationJobResponse.Builder jobStatus(AdvancedPromptOptimizationJobStatus jobStatus) The status of the advanced prompt optimization job.
- Parameters:
jobStatus- The status of the advanced prompt optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inputConfig
GetAdvancedPromptOptimizationJobResponse.Builder inputConfig(AdvancedPromptOptimizationInputConfig inputConfig) The input data configuration for the optimization job.
- Parameters:
inputConfig- The input data configuration for the optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputConfig
default GetAdvancedPromptOptimizationJobResponse.Builder inputConfig(Consumer<AdvancedPromptOptimizationInputConfig.Builder> inputConfig) The input data configuration for the optimization job.
This is a convenience method that creates an instance of theAdvancedPromptOptimizationInputConfig.Builderavoiding the need to create one manually viaAdvancedPromptOptimizationInputConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputConfig(AdvancedPromptOptimizationInputConfig).- Parameters:
inputConfig- a consumer that will call methods onAdvancedPromptOptimizationInputConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputConfig
GetAdvancedPromptOptimizationJobResponse.Builder outputConfig(AdvancedPromptOptimizationOutputConfig outputConfig) The output data configuration for the optimization job.
- Parameters:
outputConfig- The output data configuration for the optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
default GetAdvancedPromptOptimizationJobResponse.Builder outputConfig(Consumer<AdvancedPromptOptimizationOutputConfig.Builder> outputConfig) The output data configuration for the optimization job.
This is a convenience method that creates an instance of theAdvancedPromptOptimizationOutputConfig.Builderavoiding the need to create one manually viaAdvancedPromptOptimizationOutputConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputConfig(AdvancedPromptOptimizationOutputConfig).- Parameters:
outputConfig- a consumer that will call methods onAdvancedPromptOptimizationOutputConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
encryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key used to encrypt the output data.
- Parameters:
encryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key used to encrypt the output data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
The time at which the advanced prompt optimization job was created.
- Parameters:
creationTime- The time at which the advanced prompt optimization job was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTime
The time at which the advanced prompt optimization job was last modified.
- Parameters:
lastModifiedTime- The time at which the advanced prompt optimization job was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureMessage
If the job failed, a message describing the reason for the failure.
- Parameters:
failureMessage- If the job failed, a message describing the reason for the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelConfigurations
GetAdvancedPromptOptimizationJobResponse.Builder modelConfigurations(Collection<ModelConfiguration> modelConfigurations) The model configurations used in the optimization job.
- Parameters:
modelConfigurations- The model configurations used in the optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelConfigurations
GetAdvancedPromptOptimizationJobResponse.Builder modelConfigurations(ModelConfiguration... modelConfigurations) The model configurations used in the optimization job.
- Parameters:
modelConfigurations- The model configurations used in the optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelConfigurations
GetAdvancedPromptOptimizationJobResponse.Builder modelConfigurations(Consumer<ModelConfiguration.Builder>... modelConfigurations) The model configurations used in the optimization job.
This is a convenience method that creates an instance of theModelConfiguration.Builderavoiding the need to create one manually viaModelConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelConfigurations(List<ModelConfiguration>).- Parameters:
modelConfigurations- a consumer that will call methods onModelConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-