Interface SystemPromptRecommendationResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SystemPromptRecommendationResult.Builder,,SystemPromptRecommendationResult> SdkBuilder<SystemPromptRecommendationResult.Builder,,SystemPromptRecommendationResult> SdkPojo
- Enclosing class:
SystemPromptRecommendationResult
@Mutable
@NotThreadSafe
public static interface SystemPromptRecommendationResult.Builder
extends SdkPojo, CopyableBuilder<SystemPromptRecommendationResult.Builder,SystemPromptRecommendationResult>
-
Method Summary
Modifier and TypeMethodDescriptionconfigurationBundle(Consumer<RecommendationResultConfigurationBundle.Builder> configurationBundle) The configuration bundle containing the recommended system prompt, if the input was sourced from a configuration bundle.configurationBundle(RecommendationResultConfigurationBundle configurationBundle) The configuration bundle containing the recommended system prompt, if the input was sourced from a configuration bundle.The error code if the recommendation failed.errorMessage(String errorMessage) The error message if the recommendation failed.recommendedSystemPrompt(String recommendedSystemPrompt) The optimized system prompt text generated by the recommendation.Methods 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, sdkFields
-
Method Details
-
recommendedSystemPrompt
The optimized system prompt text generated by the recommendation.
- Parameters:
recommendedSystemPrompt- The optimized system prompt text generated by the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationBundle
SystemPromptRecommendationResult.Builder configurationBundle(RecommendationResultConfigurationBundle configurationBundle) The configuration bundle containing the recommended system prompt, if the input was sourced from a configuration bundle.
- Parameters:
configurationBundle- The configuration bundle containing the recommended system prompt, if the input was sourced from a configuration bundle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationBundle
default SystemPromptRecommendationResult.Builder configurationBundle(Consumer<RecommendationResultConfigurationBundle.Builder> configurationBundle) The configuration bundle containing the recommended system prompt, if the input was sourced from a configuration bundle.
This is a convenience method that creates an instance of theRecommendationResultConfigurationBundle.Builderavoiding the need to create one manually viaRecommendationResultConfigurationBundle.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfigurationBundle(RecommendationResultConfigurationBundle).- Parameters:
configurationBundle- a consumer that will call methods onRecommendationResultConfigurationBundle.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorCode
The error code if the recommendation failed.
- Parameters:
errorCode- The error code if the recommendation failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorMessage
The error message if the recommendation failed.
- Parameters:
errorMessage- The error message if the recommendation failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-