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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

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

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

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

      public GetAutocompletionOptions.Builder prefix​(String prefix)
      Set the prefix.
      Parameters:
      prefix - the prefix
      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