Interface OutputConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OutputConfig.Builder,,OutputConfig> SdkBuilder<OutputConfig.Builder,,OutputConfig> SdkPojo
- Enclosing class:
OutputConfig
@Mutable
@NotThreadSafe
public static interface OutputConfig.Builder
extends SdkPojo, CopyableBuilder<OutputConfig.Builder,OutputConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault OutputConfig.BuildertextFormat(Consumer<OutputFormat.Builder> textFormat) Structured output parameters to control the model's text response.textFormat(OutputFormat textFormat) Structured output parameters to control the model's text response.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
-
textFormat
Structured output parameters to control the model's text response.
- Parameters:
textFormat- Structured output parameters to control the model's text response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textFormat
Structured output parameters to control the model's text response.
This is a convenience method that creates an instance of theOutputFormat.Builderavoiding the need to create one manually viaOutputFormat.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totextFormat(OutputFormat).- Parameters:
textFormat- a consumer that will call methods onOutputFormat.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-