Interface OrchestrationModelInvocationOutput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OrchestrationModelInvocationOutput.Builder,
,OrchestrationModelInvocationOutput> SdkBuilder<OrchestrationModelInvocationOutput.Builder,
,OrchestrationModelInvocationOutput> SdkPojo
- Enclosing class:
OrchestrationModelInvocationOutput
public static interface OrchestrationModelInvocationOutput.Builder
extends SdkPojo, CopyableBuilder<OrchestrationModelInvocationOutput.Builder,OrchestrationModelInvocationOutput>
-
Method Summary
Modifier and TypeMethodDescriptionmetadata
(Consumer<Metadata.Builder> metadata) Contains information about the foundation model output.Contains information about the foundation model output.rawResponse
(Consumer<RawResponse.Builder> rawResponse) Contains details of the raw response from the foundation model output.rawResponse
(RawResponse rawResponse) Contains details of the raw response from the foundation model output.The unique identifier of the trace.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, sdkFields
-
Method Details
-
metadata
Contains information about the foundation model output.
- Parameters:
metadata
- Contains information about the foundation model output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
Contains information about the foundation model output.
This is a convenience method that creates an instance of theMetadata.Builder
avoiding the need to create one manually viaMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(Metadata)
.- Parameters:
metadata
- a consumer that will call methods onMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rawResponse
Contains details of the raw response from the foundation model output.
- Parameters:
rawResponse
- Contains details of the raw response from the foundation model output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rawResponse
default OrchestrationModelInvocationOutput.Builder rawResponse(Consumer<RawResponse.Builder> rawResponse) Contains details of the raw response from the foundation model output.
This is a convenience method that creates an instance of theRawResponse.Builder
avoiding the need to create one manually viaRawResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torawResponse(RawResponse)
.- Parameters:
rawResponse
- a consumer that will call methods onRawResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traceId
The unique identifier of the trace.
- Parameters:
traceId
- The unique identifier of the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-