Interface StartSearchRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartSearchRequest.Builder,,StartSearchRequest> IoTSiteWiseRequest.Builder,SdkBuilder<StartSearchRequest.Builder,,StartSearchRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartSearchRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier you provide to ensure the request is idempotent.An optional caller-supplied identifier used to group related searches together.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.queryStatement(String queryStatement) The natural-language query describing the data to search for.default StartSearchRequest.BuildersearchFilters(Consumer<SearchFilters.Builder> searchFilters) Optional filters that restrict the search to a subset of the workspace's data.searchFilters(SearchFilters searchFilters) Optional filters that restrict the search to a subset of the workspace's data.searchType(String searchType) The search strategy to use.searchType(SearchType searchType) The search strategy to use.workspaceName(String workspaceName) The name of the workspace whose data is searched.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iotsitewise.model.IoTSiteWiseRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
workspaceName
The name of the workspace whose data is searched.
- Parameters:
workspaceName- The name of the workspace whose data is searched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStatement
The natural-language query describing the data to search for.
- Parameters:
queryStatement- The natural-language query describing the data to search for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier you provide to ensure the request is idempotent. Repeating a StartSearch call with the same
clientTokenreturns the original search rather than starting a new one. If omitted, the SDK autogenerates one.- Parameters:
clientToken- A unique, case-sensitive identifier you provide to ensure the request is idempotent. Repeating a StartSearch call with the sameclientTokenreturns the original search rather than starting a new one. If omitted, the SDK autogenerates one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchType
The search strategy to use. Defaults to
QUICKwhen omitted.- Parameters:
searchType- The search strategy to use. Defaults toQUICKwhen omitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
searchType
The search strategy to use. Defaults to
QUICKwhen omitted.- Parameters:
searchType- The search strategy to use. Defaults toQUICKwhen omitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
searchFilters
Optional filters that restrict the search to a subset of the workspace's data.
- Parameters:
searchFilters- Optional filters that restrict the search to a subset of the workspace's data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchFilters
Optional filters that restrict the search to a subset of the workspace's data.
This is a convenience method that creates an instance of theSearchFilters.Builderavoiding the need to create one manually viaSearchFilters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchFilters(SearchFilters).- Parameters:
searchFilters- a consumer that will call methods onSearchFilters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groupId
An optional caller-supplied identifier used to group related searches together.
- Parameters:
groupId- An optional caller-supplied identifier used to group related searches together.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartSearchRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartSearchRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-