StructuredPojo
, ToCopyableBuilder<SuggestModel.Builder,SuggestModel>
@Generated("software.amazon.awssdk:codegen") public class SuggestModel extends Object implements StructuredPojo, ToCopyableBuilder<SuggestModel.Builder,SuggestModel>
Container for the suggestion information returned in a SuggestResponse
.
Modifier and Type | Class | Description |
---|---|---|
static interface |
SuggestModel.Builder |
Modifier and Type | Method | Description |
---|---|---|
static SuggestModel.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
Long |
found() |
The number of documents that were found to match the query string.
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
query() |
The query string specified in the suggest request.
|
static Class<? extends SuggestModel.Builder> |
serializableBuilderClass() |
|
List<SuggestionMatch> |
suggestions() |
The documents that match the query string.
|
SuggestModel.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public String query()
The query string specified in the suggest request.
public Long found()
The number of documents that were found to match the query string.
public List<SuggestionMatch> suggestions()
The documents that match the query string.
public SuggestModel.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SuggestModel.Builder,SuggestModel>
public static SuggestModel.Builder builder()
public static Class<? extends SuggestModel.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.