@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpellCorrectedQuery extends Object implements Serializable, Cloneable, StructuredPojo
A query with suggested spell corrections.
Constructor and Description |
---|
SpellCorrectedQuery() |
Modifier and Type | Method and Description |
---|---|
SpellCorrectedQuery |
clone() |
boolean |
equals(Object obj) |
List<Correction> |
getCorrections()
The corrected misspelled word or words in a query.
|
String |
getSuggestedQueryText()
The query with the suggested spell corrections.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCorrections(Collection<Correction> corrections)
The corrected misspelled word or words in a query.
|
void |
setSuggestedQueryText(String suggestedQueryText)
The query with the suggested spell corrections.
|
String |
toString()
Returns a string representation of this object.
|
SpellCorrectedQuery |
withCorrections(Collection<Correction> corrections)
The corrected misspelled word or words in a query.
|
SpellCorrectedQuery |
withCorrections(Correction... corrections)
The corrected misspelled word or words in a query.
|
SpellCorrectedQuery |
withSuggestedQueryText(String suggestedQueryText)
The query with the suggested spell corrections.
|
public void setSuggestedQueryText(String suggestedQueryText)
The query with the suggested spell corrections.
suggestedQueryText
- The query with the suggested spell corrections.public String getSuggestedQueryText()
The query with the suggested spell corrections.
public SpellCorrectedQuery withSuggestedQueryText(String suggestedQueryText)
The query with the suggested spell corrections.
suggestedQueryText
- The query with the suggested spell corrections.public List<Correction> getCorrections()
The corrected misspelled word or words in a query.
public void setCorrections(Collection<Correction> corrections)
The corrected misspelled word or words in a query.
corrections
- The corrected misspelled word or words in a query.public SpellCorrectedQuery withCorrections(Correction... corrections)
The corrected misspelled word or words in a query.
NOTE: This method appends the values to the existing list (if any). Use
setCorrections(java.util.Collection)
or withCorrections(java.util.Collection)
if you want to
override the existing values.
corrections
- The corrected misspelled word or words in a query.public SpellCorrectedQuery withCorrections(Collection<Correction> corrections)
The corrected misspelled word or words in a query.
corrections
- The corrected misspelled word or words in a query.public String toString()
toString
in class Object
Object.toString()
public SpellCorrectedQuery clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.