@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Correction extends Object implements Serializable, Cloneable, StructuredPojo
A corrected misspelled word in a query.
| Constructor and Description |
|---|
Correction() |
| Modifier and Type | Method and Description |
|---|---|
Correction |
clone() |
boolean |
equals(Object obj) |
Integer |
getBeginOffset()
The zero-based location in the response string or text where the corrected word starts.
|
String |
getCorrectedTerm()
The string or text of a corrected misspelled word in a query.
|
Integer |
getEndOffset()
The zero-based location in the response string or text where the corrected word ends.
|
String |
getTerm()
The string or text of a misspelled word in a query.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBeginOffset(Integer beginOffset)
The zero-based location in the response string or text where the corrected word starts.
|
void |
setCorrectedTerm(String correctedTerm)
The string or text of a corrected misspelled word in a query.
|
void |
setEndOffset(Integer endOffset)
The zero-based location in the response string or text where the corrected word ends.
|
void |
setTerm(String term)
The string or text of a misspelled word in a query.
|
String |
toString()
Returns a string representation of this object.
|
Correction |
withBeginOffset(Integer beginOffset)
The zero-based location in the response string or text where the corrected word starts.
|
Correction |
withCorrectedTerm(String correctedTerm)
The string or text of a corrected misspelled word in a query.
|
Correction |
withEndOffset(Integer endOffset)
The zero-based location in the response string or text where the corrected word ends.
|
Correction |
withTerm(String term)
The string or text of a misspelled word in a query.
|
public void setBeginOffset(Integer beginOffset)
The zero-based location in the response string or text where the corrected word starts.
beginOffset - The zero-based location in the response string or text where the corrected word starts.public Integer getBeginOffset()
The zero-based location in the response string or text where the corrected word starts.
public Correction withBeginOffset(Integer beginOffset)
The zero-based location in the response string or text where the corrected word starts.
beginOffset - The zero-based location in the response string or text where the corrected word starts.public void setEndOffset(Integer endOffset)
The zero-based location in the response string or text where the corrected word ends.
endOffset - The zero-based location in the response string or text where the corrected word ends.public Integer getEndOffset()
The zero-based location in the response string or text where the corrected word ends.
public Correction withEndOffset(Integer endOffset)
The zero-based location in the response string or text where the corrected word ends.
endOffset - The zero-based location in the response string or text where the corrected word ends.public void setTerm(String term)
The string or text of a misspelled word in a query.
term - The string or text of a misspelled word in a query.public String getTerm()
The string or text of a misspelled word in a query.
public Correction withTerm(String term)
The string or text of a misspelled word in a query.
term - The string or text of a misspelled word in a query.public void setCorrectedTerm(String correctedTerm)
The string or text of a corrected misspelled word in a query.
correctedTerm - The string or text of a corrected misspelled word in a query.public String getCorrectedTerm()
The string or text of a corrected misspelled word in a query.
public Correction withCorrectedTerm(String correctedTerm)
The string or text of a corrected misspelled word in a query.
correctedTerm - The string or text of a corrected misspelled word in a query.public String toString()
toString in class ObjectObject.toString()public Correction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.