@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SuggestionHighlight extends Object implements Serializable, Cloneable, StructuredPojo
The text highlights for a single query suggestion.
Constructor and Description |
---|
SuggestionHighlight() |
Modifier and Type | Method and Description |
---|---|
SuggestionHighlight |
clone() |
boolean |
equals(Object obj) |
Integer |
getBeginOffset()
The zero-based location in the response string where the highlight starts.
|
Integer |
getEndOffset()
The zero-based location in the response string where the highlight ends.
|
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 where the highlight starts.
|
void |
setEndOffset(Integer endOffset)
The zero-based location in the response string where the highlight ends.
|
String |
toString()
Returns a string representation of this object.
|
SuggestionHighlight |
withBeginOffset(Integer beginOffset)
The zero-based location in the response string where the highlight starts.
|
SuggestionHighlight |
withEndOffset(Integer endOffset)
The zero-based location in the response string where the highlight ends.
|
public void setBeginOffset(Integer beginOffset)
The zero-based location in the response string where the highlight starts.
beginOffset
- The zero-based location in the response string where the highlight starts.public Integer getBeginOffset()
The zero-based location in the response string where the highlight starts.
public SuggestionHighlight withBeginOffset(Integer beginOffset)
The zero-based location in the response string where the highlight starts.
beginOffset
- The zero-based location in the response string where the highlight starts.public void setEndOffset(Integer endOffset)
The zero-based location in the response string where the highlight ends.
endOffset
- The zero-based location in the response string where the highlight ends.public Integer getEndOffset()
The zero-based location in the response string where the highlight ends.
public SuggestionHighlight withEndOffset(Integer endOffset)
The zero-based location in the response string where the highlight ends.
endOffset
- The zero-based location in the response string where the highlight ends.public String toString()
toString
in class Object
Object.toString()
public SuggestionHighlight clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.