public static class SuggestResults.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SuggestResults |
build() |
SuggestResults.Builder |
copy(SuggestResults model) |
SuggestResults.Builder |
inputText(String inputText)
Input string for which the potential matches are computed.
|
SuggestResults.Builder |
items(List<SuggestListItem> items)
List of suggestions.
|
SuggestResults.Builder |
searchLatencyInMs(Integer searchLatencyInMs)
Time taken to compute the result, in milliseconds.
|
SuggestResults.Builder |
totalCount(Integer totalCount)
Total number of items returned.
|
public SuggestResults.Builder totalCount(Integer totalCount)
Total number of items returned.
totalCount
- the value to setpublic SuggestResults.Builder searchLatencyInMs(Integer searchLatencyInMs)
Time taken to compute the result, in milliseconds.
searchLatencyInMs
- the value to setpublic SuggestResults.Builder inputText(String inputText)
Input string for which the potential matches are computed.
inputText
- the value to setpublic SuggestResults.Builder items(List<SuggestListItem> items)
List of suggestions.
items
- the value to setpublic SuggestResults build()
public SuggestResults.Builder copy(SuggestResults model)
Copyright © 2016–2024. All rights reserved.