Interface SuggestResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudSearchDomainResponse.Builder
,CopyableBuilder<SuggestResponse.Builder,
,SuggestResponse> SdkBuilder<SuggestResponse.Builder,
,SuggestResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SuggestResponse
public static interface SuggestResponse.Builder
extends CloudSearchDomainResponse.Builder, SdkPojo, CopyableBuilder<SuggestResponse.Builder,SuggestResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SuggestResponse.Builder
status
(Consumer<SuggestStatus.Builder> status) The status of aSuggestRequest
.status
(SuggestStatus status) The status of aSuggestRequest
.default SuggestResponse.Builder
suggest
(Consumer<SuggestModel.Builder> suggest) Container for the matching search suggestion information.suggest
(SuggestModel suggest) Container for the matching search suggestion information.Methods inherited from interface software.amazon.awssdk.services.cloudsearchdomain.model.CloudSearchDomainResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
status
The status of a
SuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).- Parameters:
status
- The status of aSuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of a
This is a convenience method that creates an instance of theSuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).SuggestStatus.Builder
avoiding the need to create one manually viaSuggestStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(SuggestStatus)
.- Parameters:
status
- a consumer that will call methods onSuggestStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
suggest
Container for the matching search suggestion information.
- Parameters:
suggest
- Container for the matching search suggestion information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggest
Container for the matching search suggestion information.
This is a convenience method that creates an instance of theSuggestModel.Builder
avoiding the need to create one manually viaSuggestModel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuggest(SuggestModel)
.- Parameters:
suggest
- a consumer that will call methods onSuggestModel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-