Interface OptimizedPrompt.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OptimizedPrompt.Builder,,OptimizedPrompt> SdkBuilder<OptimizedPrompt.Builder,,OptimizedPrompt> SdkPojo
- Enclosing class:
OptimizedPrompt
@Mutable
@NotThreadSafe
public static interface OptimizedPrompt.Builder
extends SdkPojo, CopyableBuilder<OptimizedPrompt.Builder,OptimizedPrompt>
-
Method Summary
Modifier and TypeMethodDescriptiondefault OptimizedPrompt.BuildertextPrompt(Consumer<TextPrompt.Builder> textPrompt) Contains information about the text in the prompt that was optimized.textPrompt(TextPrompt textPrompt) Contains information about the text in the prompt that was optimized.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
-
textPrompt
Contains information about the text in the prompt that was optimized.
- Parameters:
textPrompt- Contains information about the text in the prompt that was optimized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textPrompt
Contains information about the text in the prompt that was optimized.
This is a convenience method that creates an instance of theTextPrompt.Builderavoiding the need to create one manually viaTextPrompt.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totextPrompt(TextPrompt).- Parameters:
textPrompt- a consumer that will call methods onTextPrompt.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-