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 GetAutocompletionOptionsbuild()Builds a GetAutocompletionOptions.GetAutocompletionOptions.BuildercollectionId(String collectionId)Set the collectionId.GetAutocompletionOptions.Buildercount(long count)Set the count.GetAutocompletionOptions.BuilderenvironmentId(String environmentId)Set the environmentId.GetAutocompletionOptions.Builderfield(String field)Set the field.GetAutocompletionOptions.Builderprefix(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
-