Class Expansions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

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

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

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