Interface InputPrompt.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InputPrompt.Builder,
,InputPrompt> SdkBuilder<InputPrompt.Builder,
,InputPrompt> SdkPojo
- Enclosing class:
InputPrompt
@Mutable
@NotThreadSafe
public static interface InputPrompt.Builder
extends SdkPojo, CopyableBuilder<InputPrompt.Builder,InputPrompt>
-
Method Summary
Modifier and TypeMethodDescriptiondefault InputPrompt.Builder
textPrompt
(Consumer<TextPrompt.Builder> textPrompt) Contains information about the text prompt to optimize.textPrompt
(TextPrompt textPrompt) Contains information about the text prompt to optimize.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
textPrompt
Contains information about the text prompt to optimize.
- Parameters:
textPrompt
- Contains information about the text prompt to optimize.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textPrompt
Contains information about the text prompt to optimize.
This is a convenience method that creates an instance of theTextPrompt.Builder
avoiding the need to create one manually viaTextPrompt.builder()
.When the
Consumer
completes,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:
-