@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnumerationValue extends Object implements Serializable, Cloneable, StructuredPojo
Each slot type can have a set of values. Each enumeration value represents a value the slot type can take.
For example, a pizza ordering bot could have a slot type that specifies the type of crust that the pizza should have. The slot type could include the values
thick
thin
stuffed
| Constructor and Description |
|---|
EnumerationValue() |
| Modifier and Type | Method and Description |
|---|---|
EnumerationValue |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSynonyms()
Additional values related to the slot type value.
|
String |
getValue()
The value of the slot type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setSynonyms(Collection<String> synonyms)
Additional values related to the slot type value.
|
void |
setValue(String value)
The value of the slot type.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
EnumerationValue |
withSynonyms(Collection<String> synonyms)
Additional values related to the slot type value.
|
EnumerationValue |
withSynonyms(String... synonyms)
Additional values related to the slot type value.
|
EnumerationValue |
withValue(String value)
The value of the slot type.
|
public void setValue(String value)
The value of the slot type.
value - The value of the slot type.public String getValue()
The value of the slot type.
public EnumerationValue withValue(String value)
The value of the slot type.
value - The value of the slot type.public List<String> getSynonyms()
Additional values related to the slot type value.
public void setSynonyms(Collection<String> synonyms)
Additional values related to the slot type value.
synonyms - Additional values related to the slot type value.public EnumerationValue withSynonyms(String... synonyms)
Additional values related to the slot type value.
NOTE: This method appends the values to the existing list (if any). Use
setSynonyms(java.util.Collection) or withSynonyms(java.util.Collection) if you want to override
the existing values.
synonyms - Additional values related to the slot type value.public EnumerationValue withSynonyms(Collection<String> synonyms)
Additional values related to the slot type value.
synonyms - Additional values related to the slot type value.public String toString()
toString in class ObjectObject.toString()public EnumerationValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.