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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String projectId, String prefix)
      Instantiates a new builder with required properties.
      Parameters:
      projectId - the projectId
      prefix - the prefix
  • Method Details

    • build

      public GetAutocompletionOptions build()
      Builds a GetAutocompletionOptions.
      Returns:
      the new GetAutocompletionOptions instance
    • addCollectionIds

      public GetAutocompletionOptions.Builder addCollectionIds​(String collectionIds)
      Adds an collectionIds to collectionIds.
      Parameters:
      collectionIds - the new collectionIds
      Returns:
      the GetAutocompletionOptions builder
    • projectId

      public GetAutocompletionOptions.Builder projectId​(String projectId)
      Set the projectId.
      Parameters:
      projectId - the projectId
      Returns:
      the GetAutocompletionOptions builder
    • prefix

      public GetAutocompletionOptions.Builder prefix​(String prefix)
      Set the prefix.
      Parameters:
      prefix - the prefix
      Returns:
      the GetAutocompletionOptions builder
    • collectionIds

      public GetAutocompletionOptions.Builder collectionIds​(List<String> collectionIds)
      Set the collectionIds. Existing collectionIds will be replaced.
      Parameters:
      collectionIds - the collectionIds
      Returns:
      the GetAutocompletionOptions builder
    • field

      public GetAutocompletionOptions.Builder field​(String field)
      Set the field.
      Parameters:
      field - the field
      Returns:
      the GetAutocompletionOptions builder
    • count

      public GetAutocompletionOptions.Builder count​(long count)
      Set the count.
      Parameters:
      count - the count
      Returns:
      the GetAutocompletionOptions builder