Interface FinalResponse.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FinalResponse.Builder,FinalResponse>,SdkBuilder<FinalResponse.Builder,FinalResponse>,SdkPojo
- Enclosing class:
- FinalResponse
@Mutable @NotThreadSafe public static interface FinalResponse.Builder extends SdkPojo, CopyableBuilder<FinalResponse.Builder,FinalResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FinalResponse.Buildermetadata(Consumer<Metadata.Builder> metadata)Contains information about the invoke agent operation.FinalResponse.Buildermetadata(Metadata metadata)Contains information about the invoke agent operation.FinalResponse.Buildertext(String text)The text in the response to the user.-
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
FinalResponse.Builder metadata(Metadata metadata)
Contains information about the invoke agent operation.
- Parameters:
metadata- Contains information about the invoke agent operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default FinalResponse.Builder metadata(Consumer<Metadata.Builder> metadata)
Contains information about the invoke agent operation.
This is a convenience method that creates an instance of theMetadata.Builderavoiding the need to create one manually viaMetadata.builder().When the
Consumercompletes,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)
-
text
FinalResponse.Builder text(String text)
The text in the response to the user.
- Parameters:
text- The text in the response to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-