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.BuilderaddCollectionIds(String collectionIds)Adds an collectionIds to collectionIds.GetAutocompletionOptionsbuild()Builds a GetAutocompletionOptions.GetAutocompletionOptions.BuildercollectionIds(List<String> collectionIds)Set the collectionIds.GetAutocompletionOptions.Buildercount(long count)Set the count.GetAutocompletionOptions.Builderfield(String field)Set the field.GetAutocompletionOptions.Builderprefix(String prefix)Set the prefix.GetAutocompletionOptions.BuilderprojectId(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
-