Class CreateExpansionsOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public CreateExpansionsOptions build()
      Builds a CreateExpansionsOptions.
      Returns:
      the new CreateExpansionsOptions instance
    • addExpansions

      public CreateExpansionsOptions.Builder addExpansions​(Expansion expansions)
      Adds an expansions to expansions.
      Parameters:
      expansions - the new expansions
      Returns:
      the CreateExpansionsOptions builder
    • environmentId

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

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

      public CreateExpansionsOptions.Builder expansions​(List<Expansion> expansions)
      Set the expansions. Existing expansions will be replaced.
      Parameters:
      expansions - the expansions
      Returns:
      the CreateExpansionsOptions builder
    • expansions

      public CreateExpansionsOptions.Builder expansions​(Expansions expansions)
      Set the expansions.
      Parameters:
      expansions - the expansions
      Returns:
      the CreateExpansionsOptions builder