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