public static class SearchSettingsDiscovery.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String instanceId,
String projectId,
String url,
SearchSettingsDiscoveryAuthentication authentication)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
SearchSettingsDiscovery.Builder |
authentication(SearchSettingsDiscoveryAuthentication authentication)
Set the authentication.
|
SearchSettingsDiscovery |
build()
Builds a SearchSettingsDiscovery.
|
SearchSettingsDiscovery.Builder |
confidenceThreshold(Double confidenceThreshold)
Set the confidenceThreshold.
|
SearchSettingsDiscovery.Builder |
findAnswers(Boolean findAnswers)
Set the findAnswers.
|
SearchSettingsDiscovery.Builder |
highlight(Boolean highlight)
Set the highlight.
|
SearchSettingsDiscovery.Builder |
instanceId(String instanceId)
Set the instanceId.
|
SearchSettingsDiscovery.Builder |
maxPrimaryResults(long maxPrimaryResults)
Set the maxPrimaryResults.
|
SearchSettingsDiscovery.Builder |
maxTotalResults(long maxTotalResults)
Set the maxTotalResults.
|
SearchSettingsDiscovery.Builder |
projectId(String projectId)
Set the projectId.
|
SearchSettingsDiscovery.Builder |
url(String url)
Set the url.
|
public Builder()
public Builder(String instanceId, String projectId, String url, SearchSettingsDiscoveryAuthentication authentication)
instanceId
- the instanceIdprojectId
- the projectIdurl
- the urlauthentication
- the authenticationpublic SearchSettingsDiscovery build()
public SearchSettingsDiscovery.Builder instanceId(String instanceId)
instanceId
- the instanceIdpublic SearchSettingsDiscovery.Builder projectId(String projectId)
projectId
- the projectIdpublic SearchSettingsDiscovery.Builder url(String url)
url
- the urlpublic SearchSettingsDiscovery.Builder maxPrimaryResults(long maxPrimaryResults)
maxPrimaryResults
- the maxPrimaryResultspublic SearchSettingsDiscovery.Builder maxTotalResults(long maxTotalResults)
maxTotalResults
- the maxTotalResultspublic SearchSettingsDiscovery.Builder confidenceThreshold(Double confidenceThreshold)
confidenceThreshold
- the confidenceThresholdpublic SearchSettingsDiscovery.Builder highlight(Boolean highlight)
highlight
- the highlightpublic SearchSettingsDiscovery.Builder findAnswers(Boolean findAnswers)
findAnswers
- the findAnswerspublic SearchSettingsDiscovery.Builder authentication(SearchSettingsDiscoveryAuthentication authentication)
authentication
- the authenticationCopyright © 2023 IBM Cloud. All rights reserved.