@Generated(value="software.amazon.awssdk:codegen") public final class Highlight extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Highlight.Builder,Highlight>
Provides information that you can use to highlight a search result so that your users can quickly identify terms in the response.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Highlight.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
beginOffset()
The zero-based location in the response string where the highlight starts.
|
static Highlight.Builder |
builder() |
Integer |
endOffset()
The zero-based location in the response string where the highlight ends.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Highlight.Builder> |
serializableBuilderClass() |
Highlight.Builder |
toBuilder() |
Boolean |
topAnswer()
Indicates whether the response is the best response.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic Integer beginOffset()
The zero-based location in the response string where the highlight starts.
public Integer endOffset()
The zero-based location in the response string where the highlight ends.
public Boolean topAnswer()
Indicates whether the response is the best response. True if this is the best response; otherwise, false.
public Highlight.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Highlight.Builder,Highlight>public static Highlight.Builder builder()
public static Class<? extends Highlight.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.