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.Builder
metadata
(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
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 Details
-
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.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:
-
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.
-