Class TypeLabel.Builder

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

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

    • Builder

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

    • build

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

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

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

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

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