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
Modifier and TypeMethodDescriptiondefault FinalResponse.Buildermetadata(Consumer<Metadata.Builder> metadata) Contains information about the invoke agent operation.Contains information about the invoke agent operation.The text in the response to the user.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
-
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.
-
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
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:
-