Class InvocationOutput.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.iotsitewise.model.InvocationOutput.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,InvocationOutput.Builder,Buildable,CopyableBuilder<InvocationOutput.Builder,InvocationOutput>,SdkBuilder<InvocationOutput.Builder,InvocationOutput>
- Enclosing class:
- InvocationOutput
protected static class InvocationOutput.BuilderImpl extends Object implements InvocationOutput.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(InvocationOutput model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvocationOutputbuild()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.List<Citation.Builder>getCitations()StringgetMessage()InvocationOutput.Buildermessage(String message)The text message of the SiteWise Assistant's response.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()voidsetCitations(Collection<software.amazon.awssdk.services.iotsitewise.model.Citation.BuilderImpl> citations)voidsetMessage(String message)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(InvocationOutput model)
-
-
Method Detail
-
getMessage
public final String getMessage()
-
setMessage
public final void setMessage(String message)
-
message
public final InvocationOutput.Builder message(String message)
Description copied from interface:InvocationOutput.BuilderThe text message of the SiteWise Assistant's response.
- Specified by:
messagein interfaceInvocationOutput.Builder- 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.
-
getCitations
public final List<Citation.Builder> getCitations()
-
setCitations
public final void setCitations(Collection<software.amazon.awssdk.services.iotsitewise.model.Citation.BuilderImpl> citations)
-
citations
public final InvocationOutput.Builder citations(Collection<Citation> citations)
Description copied from interface:InvocationOutput.BuilderA list of citations, and related information for the SiteWise Assistant's response.
- Specified by:
citationsin interfaceInvocationOutput.Builder- 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
@SafeVarargs public final InvocationOutput.Builder citations(Citation... citations)
Description copied from interface:InvocationOutput.BuilderA list of citations, and related information for the SiteWise Assistant's response.
- Specified by:
citationsin interfaceInvocationOutput.Builder- 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
@SafeVarargs public final InvocationOutput.Builder citations(Consumer<Citation.Builder>... citations)
Description copied from interface:InvocationOutput.BuilderA 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.) - Specified by:
citationsin interfaceInvocationOutput.Builder- 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)
-
build
public InvocationOutput build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<InvocationOutput.Builder,InvocationOutput>
-
sdkFieldNameToField
public Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-