Class InvocationOutput
- java.lang.Object
-
- software.amazon.awssdk.services.iotsitewise.model.InvocationOutput
-
- All Implemented Interfaces:
Serializable,SdkPojo,ResponseStream,ToCopyableBuilder<InvocationOutput.Builder,InvocationOutput>
- Direct Known Subclasses:
DefaultOutput
@Generated("software.amazon.awssdk:codegen") public class InvocationOutput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InvocationOutput.Builder,InvocationOutput>, ResponseStream
This contains the SiteWise Assistant's response and the corresponding citation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInvocationOutput.Builderprotected static classInvocationOutput.BuilderImpl-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.iotsitewise.model.ResponseStream
ResponseStream.EventType
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.services.iotsitewise.model.ResponseStream
UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInvocationOutput(InvocationOutput.BuilderImpl builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(InvokeAssistantResponseHandler.Visitor visitor)Calls the appropriate visit method depending on the subtype ofInvocationOutput.static InvocationOutput.Builderbuilder()List<Citation>citations()A list of citations, and related information for the SiteWise Assistant's response.InvocationOutputcopy(Consumer<? super InvocationOutput.Builder> modifier)booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasCitations()For responses, this returns true if the service returned a value for the Citations property.inthashCode()Stringmessage()The text message of the SiteWise Assistant's response.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends InvocationOutput.Builder>serializableBuilderClass()InvocationOutput.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.iotsitewise.model.ResponseStream
sdkEventType
-
-
-
-
Constructor Detail
-
InvocationOutput
protected InvocationOutput(InvocationOutput.BuilderImpl builder)
-
-
Method Detail
-
message
public final String message()
The text message of the SiteWise Assistant's response.
- Returns:
- The text message of the SiteWise Assistant's response.
-
hasCitations
public final boolean hasCitations()
For responses, this returns true if the service returned a value for the Citations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
citations
public final List<Citation> citations()
A list of citations, and related information for the SiteWise Assistant's response.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCitations()method.- Returns:
- A list of citations, and related information for the SiteWise Assistant's response.
-
toBuilder
public InvocationOutput.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InvocationOutput.Builder,InvocationOutput>
-
builder
public static InvocationOutput.Builder builder()
-
serializableBuilderClass
public static Class<? extends InvocationOutput.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
copy
public final InvocationOutput copy(Consumer<? super InvocationOutput.Builder> modifier)
- Specified by:
copyin interfaceToCopyableBuilder<InvocationOutput.Builder,InvocationOutput>
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
public void accept(InvokeAssistantResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype ofInvocationOutput.- Specified by:
acceptin interfaceResponseStream- Parameters:
visitor- Visitor to invoke.
-
-