Class Category.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public Category build()
      Builds a Category.
      Returns:
      the new Category instance
    • addProvenanceIds

      public Category.Builder addProvenanceIds​(String provenanceIds)
      Adds an provenanceIds to provenanceIds.
      Parameters:
      provenanceIds - the new provenanceIds
      Returns:
      the Category builder
    • label

      public Category.Builder label​(String label)
      Set the label.
      Parameters:
      label - the label
      Returns:
      the Category builder
    • provenanceIds

      public Category.Builder provenanceIds​(List<String> provenanceIds)
      Set the provenanceIds. Existing provenanceIds will be replaced.
      Parameters:
      provenanceIds - the provenanceIds
      Returns:
      the Category builder
    • modification

      public Category.Builder modification​(String modification)
      Set the modification.
      Parameters:
      modification - the modification
      Returns:
      the Category builder