Interface PreProcessingModelInvocationOutput.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<PreProcessingModelInvocationOutput.Builder,PreProcessingModelInvocationOutput>
,SdkBuilder<PreProcessingModelInvocationOutput.Builder,PreProcessingModelInvocationOutput>
,SdkPojo
- Enclosing class:
- PreProcessingModelInvocationOutput
public static interface PreProcessingModelInvocationOutput.Builder extends SdkPojo, CopyableBuilder<PreProcessingModelInvocationOutput.Builder,PreProcessingModelInvocationOutput>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PreProcessingModelInvocationOutput.Builder
metadata(Consumer<Metadata.Builder> metadata)
Contains information about the foundation model output from the pre-processing step.PreProcessingModelInvocationOutput.Builder
metadata(Metadata metadata)
Contains information about the foundation model output from the pre-processing step.default PreProcessingModelInvocationOutput.Builder
parsedResponse(Consumer<PreProcessingParsedResponse.Builder> parsedResponse)
Details about the response from the Lambda parsing of the output of the pre-processing step.PreProcessingModelInvocationOutput.Builder
parsedResponse(PreProcessingParsedResponse parsedResponse)
Details about the response from the Lambda parsing of the output of the pre-processing step.default PreProcessingModelInvocationOutput.Builder
rawResponse(Consumer<RawResponse.Builder> rawResponse)
Details of the raw response from the foundation model output.PreProcessingModelInvocationOutput.Builder
rawResponse(RawResponse rawResponse)
Details of the raw response from the foundation model output.PreProcessingModelInvocationOutput.Builder
traceId(String traceId)
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
metadata
PreProcessingModelInvocationOutput.Builder metadata(Metadata metadata)
Contains information about the foundation model output from the pre-processing step.
- Parameters:
metadata
- Contains information about the foundation model output from the pre-processing step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default PreProcessingModelInvocationOutput.Builder metadata(Consumer<Metadata.Builder> metadata)
Contains information about the foundation model output from the pre-processing step.
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:
metadata(Metadata)
-
parsedResponse
PreProcessingModelInvocationOutput.Builder parsedResponse(PreProcessingParsedResponse parsedResponse)
Details about the response from the Lambda parsing of the output of the pre-processing step.
- Parameters:
parsedResponse
- Details about the response from the Lambda parsing of the output of the pre-processing step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parsedResponse
default PreProcessingModelInvocationOutput.Builder parsedResponse(Consumer<PreProcessingParsedResponse.Builder> parsedResponse)
Details about the response from the Lambda parsing of the output of the pre-processing step.
This is a convenience method that creates an instance of thePreProcessingParsedResponse.Builder
avoiding the need to create one manually viaPreProcessingParsedResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparsedResponse(PreProcessingParsedResponse)
.- Parameters:
parsedResponse
- a consumer that will call methods onPreProcessingParsedResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
parsedResponse(PreProcessingParsedResponse)
-
rawResponse
PreProcessingModelInvocationOutput.Builder rawResponse(RawResponse rawResponse)
Details of the raw response from the foundation model output.
- Parameters:
rawResponse
- 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 PreProcessingModelInvocationOutput.Builder rawResponse(Consumer<RawResponse.Builder> rawResponse)
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:
rawResponse(RawResponse)
-
traceId
PreProcessingModelInvocationOutput.Builder traceId(String 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.
-
-