Interface InvocationOutput.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InvocationOutput.Builder,InvocationOutput>,SdkBuilder<InvocationOutput.Builder,InvocationOutput>,SdkPojo
- All Known Subinterfaces:
DefaultOutput.Builder
- All Known Implementing Classes:
InvocationOutput.BuilderImpl
- Enclosing class:
- InvocationOutput
public static interface InvocationOutput.Builder extends SdkPojo, CopyableBuilder<InvocationOutput.Builder,InvocationOutput>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvocationOutput.Buildercitations(Collection<Citation> citations)A list of citations, and related information for the SiteWise Assistant's response.InvocationOutput.Buildercitations(Consumer<Citation.Builder>... citations)A list of citations, and related information for the SiteWise Assistant's response.InvocationOutput.Buildercitations(Citation... citations)A list of citations, and related information for the SiteWise Assistant's response.InvocationOutput.Buildermessage(String message)The text message of the SiteWise Assistant's response.-
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
-
message
InvocationOutput.Builder message(String message)
The text message of the SiteWise Assistant's response.
- Parameters:
message- The text message of the SiteWise Assistant's response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
InvocationOutput.Builder citations(Collection<Citation> citations)
A list of citations, and related information for the SiteWise Assistant's response.
- Parameters:
citations- A list of citations, and related information for the SiteWise Assistant's response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
InvocationOutput.Builder citations(Citation... citations)
A list of citations, and related information for the SiteWise Assistant's response.
- Parameters:
citations- A list of citations, and related information for the SiteWise Assistant's response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
InvocationOutput.Builder citations(Consumer<Citation.Builder>... citations)
A list of citations, and related information for the SiteWise Assistant's response.
This is a convenience method that creates an instance of theCitation.Builderavoiding the need to create one manually viaCitation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#citations(List.) - Parameters:
citations- a consumer that will call methods onCitation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#citations(java.util.Collection)
-
-