@Generated(value="software.amazon.awssdk:codegen") public final class Value extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Value.Builder,Value>
The value of a slot.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Value.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Value.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResolvedValues()
For responses, this returns true if the service returned a value for the ResolvedValues property.
|
String |
interpretedValue()
The value that Amazon Lex V2 determines for the slot.
|
String |
originalValue()
The text of the utterance from the user that was entered for the slot.
|
List<String> |
resolvedValues()
A list of additional values that have been recognized for the slot.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Value.Builder> |
serializableBuilderClass() |
Value.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String originalValue()
The text of the utterance from the user that was entered for the slot.
public final String interpretedValue()
The value that Amazon Lex V2 determines for the slot. The actual value depends on the setting of the value
selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex
V2 choose the first value in the resolvedValues list.
resolvedValues list.public final boolean hasResolvedValues()
isEmpty() 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.public final List<String> resolvedValues()
A list of additional values that have been recognized for the slot.
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 hasResolvedValues() method.
public Value.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Value.Builder,Value>public static Value.Builder builder()
public static Class<? extends Value.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.