Interface OutputFormat.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OutputFormat.Builder,,OutputFormat> SdkBuilder<OutputFormat.Builder,,OutputFormat> SdkPojo
- Enclosing class:
OutputFormat
@Mutable
@NotThreadSafe
public static interface OutputFormat.Builder
extends SdkPojo, CopyableBuilder<OutputFormat.Builder,OutputFormat>
-
Method Summary
Modifier and TypeMethodDescriptiondefault OutputFormat.Builderstructure(Consumer<OutputFormatStructure.Builder> structure) The structure that the model's output must adhere to.structure(OutputFormatStructure structure) The structure that the model's output must adhere to.The type of structured output format.type(OutputFormatType type) The type of structured output format.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
-
type
The type of structured output format.
- Parameters:
type- The type of structured output format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of structured output format.
- Parameters:
type- The type of structured output format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
structure
The structure that the model's output must adhere to.
- Parameters:
structure- The structure that the model's output must adhere to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
structure
The structure that the model's output must adhere to.
This is a convenience method that creates an instance of theOutputFormatStructure.Builderavoiding the need to create one manually viaOutputFormatStructure.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostructure(OutputFormatStructure).- Parameters:
structure- a consumer that will call methods onOutputFormatStructure.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-