public static interface SuggestResponse.Builder extends CloudSearchDomainResponse.Builder, CopyableBuilder<SuggestResponse.Builder,SuggestResponse>
Modifier and Type | Method and Description |
---|---|
default SuggestResponse.Builder |
status(Consumer<SuggestStatus.Builder> status)
The status of a
SuggestRequest . |
SuggestResponse.Builder |
status(SuggestStatus status)
The status of a
SuggestRequest . |
default SuggestResponse.Builder |
suggest(Consumer<SuggestModel.Builder> suggest)
Container for the matching search suggestion information.
|
SuggestResponse.Builder |
suggest(SuggestModel suggest)
Container for the matching search suggestion information.
|
build
copy
apply, build
SuggestResponse.Builder status(SuggestStatus status)
The status of a SuggestRequest
. Contains the resource ID (rid
) and how long it took
to process the request (timems
).
status
- The status of a SuggestRequest
. Contains the resource ID (rid
) and how long
it took to process the request (timems
).default SuggestResponse.Builder status(Consumer<SuggestStatus.Builder> status)
The status of a SuggestRequest
. Contains the resource ID (rid
) and how long it took
to process the request (timems
).
SuggestStatus.Builder
avoiding the need to
create one manually via SuggestStatus.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to status(SuggestStatus)
.status
- a consumer that will call methods on SuggestStatus.Builder
status(SuggestStatus)
SuggestResponse.Builder suggest(SuggestModel suggest)
Container for the matching search suggestion information.
suggest
- Container for the matching search suggestion information.default SuggestResponse.Builder suggest(Consumer<SuggestModel.Builder> suggest)
Container for the matching search suggestion information.
This is a convenience that creates an instance of theSuggestModel.Builder
avoiding the need to
create one manually via SuggestModel.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to suggest(SuggestModel)
.suggest
- a consumer that will call methods on SuggestModel.Builder
suggest(SuggestModel)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.