@Generated(value="software.amazon.awssdk:codegen") public final class Correction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Correction.Builder,Correction>
A corrected misspelled word in a query.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Correction.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
beginOffset()
The zero-based location in the response string or text where the corrected word starts.
|
static Correction.Builder |
builder() |
String |
correctedTerm()
The string or text of a corrected misspelled word in a query.
|
Integer |
endOffset()
The zero-based location in the response string or text where the corrected word 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 Correction.Builder> |
serializableBuilderClass() |
String |
term()
The string or text of a misspelled word in a query.
|
Correction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer beginOffset()
The zero-based location in the response string or text where the corrected word starts.
public final Integer endOffset()
The zero-based location in the response string or text where the corrected word ends.
public final String term()
The string or text of a misspelled word in a query.
public final String correctedTerm()
The string or text of a corrected misspelled word in a query.
public Correction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Correction.Builder,Correction>public static Correction.Builder builder()
public static Class<? extends Correction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.