Class GetAutocompletionOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.GetAutocompletionOptions.Builder
- Enclosing class:
- GetAutocompletionOptions
public static class GetAutocompletionOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description GetAutocompletionOptions.Builder
addCollectionIds(String collectionIds)
Adds an collectionIds to collectionIds.GetAutocompletionOptions
build()
Builds a GetAutocompletionOptions.GetAutocompletionOptions.Builder
collectionIds(List<String> collectionIds)
Set the collectionIds.GetAutocompletionOptions.Builder
count(long count)
Set the count.GetAutocompletionOptions.Builder
field(String field)
Set the field.GetAutocompletionOptions.Builder
prefix(String prefix)
Set the prefix.GetAutocompletionOptions.Builder
projectId(String projectId)
Set the projectId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
projectId
- the projectIdprefix
- the prefix
-
-
Method Details
-
build
Builds a GetAutocompletionOptions.- Returns:
- the new GetAutocompletionOptions instance
-
addCollectionIds
Adds an collectionIds to collectionIds.- Parameters:
collectionIds
- the new collectionIds- Returns:
- the GetAutocompletionOptions builder
-
projectId
Set the projectId.- Parameters:
projectId
- the projectId- Returns:
- the GetAutocompletionOptions builder
-
prefix
Set the prefix.- Parameters:
prefix
- the prefix- Returns:
- the GetAutocompletionOptions builder
-
collectionIds
Set the collectionIds. Existing collectionIds will be replaced.- Parameters:
collectionIds
- the collectionIds- Returns:
- the GetAutocompletionOptions builder
-
field
Set the field.- Parameters:
field
- the field- Returns:
- the GetAutocompletionOptions builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the GetAutocompletionOptions builder
-