Class GetAutocompletionOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.GetAutocompletionOptions.Builder
- Enclosing class:
- GetAutocompletionOptions
public static class GetAutocompletionOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description GetAutocompletionOptions
build()
Builds a GetAutocompletionOptions.GetAutocompletionOptions.Builder
collectionId(String collectionId)
Set the collectionId.GetAutocompletionOptions.Builder
count(long count)
Set the count.GetAutocompletionOptions.Builder
environmentId(String environmentId)
Set the environmentId.GetAutocompletionOptions.Builder
field(String field)
Set the field.GetAutocompletionOptions.Builder
prefix(String prefix)
Set the prefix.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdcollectionId
- the collectionIdprefix
- the prefix
-
-
Method Details
-
build
Builds a GetAutocompletionOptions.- Returns:
- the new GetAutocompletionOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the GetAutocompletionOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the GetAutocompletionOptions builder
-
prefix
Set the prefix.- Parameters:
prefix
- the prefix- 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
-