Class CreateCollectionOptions.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.CreateCollectionOptions.Builder
Enclosing class:
CreateCollectionOptions

public static class CreateCollectionOptions.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

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

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

      public CreateCollectionOptions.Builder name​(String name)
      Set the name.
      Parameters:
      name - the name
      Returns:
      the CreateCollectionOptions builder
    • description

      public CreateCollectionOptions.Builder description​(String description)
      Set the description.
      Parameters:
      description - the description
      Returns:
      the CreateCollectionOptions builder
    • configurationId

      public CreateCollectionOptions.Builder configurationId​(String configurationId)
      Set the configurationId.
      Parameters:
      configurationId - the configurationId
      Returns:
      the CreateCollectionOptions builder
    • language

      public CreateCollectionOptions.Builder language​(String language)
      Set the language.
      Parameters:
      language - the language
      Returns:
      the CreateCollectionOptions builder