Class UpdatedLabelsIn.Builder

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

public static class UpdatedLabelsIn.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 UpdatedLabelsIn build()
      Builds a UpdatedLabelsIn.
      Returns:
      the new UpdatedLabelsIn instance
    • addTypes

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

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

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

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