Class OriginalLabelsIn.Builder

java.lang.Object
com.ibm.watson.compare_comply.v1.model.OriginalLabelsIn.Builder
Enclosing class:
OriginalLabelsIn

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(List<TypeLabel> types, List<Category> categories)
      Instantiates a new builder with required properties.
      Parameters:
      types - the types
      categories - the categories
  • Method Details

    • build

      public OriginalLabelsIn build()
      Builds a OriginalLabelsIn.
      Returns:
      the new OriginalLabelsIn instance
    • addTypes

      public OriginalLabelsIn.Builder addTypes​(TypeLabel types)
      Adds an types to types.
      Parameters:
      types - the new types
      Returns:
      the OriginalLabelsIn builder
    • addCategories

      public OriginalLabelsIn.Builder addCategories​(Category categories)
      Adds an categories to categories.
      Parameters:
      categories - the new categories
      Returns:
      the OriginalLabelsIn builder
    • types

      public OriginalLabelsIn.Builder types​(List<TypeLabel> types)
      Set the types. Existing types will be replaced.
      Parameters:
      types - the types
      Returns:
      the OriginalLabelsIn builder
    • categories

      public OriginalLabelsIn.Builder categories​(List<Category> categories)
      Set the categories. Existing categories will be replaced.
      Parameters:
      categories - the categories
      Returns:
      the OriginalLabelsIn builder