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 Summary
-
Method Summary
Modifier and Type Method Description OriginalLabelsIn.BuilderaddCategories(Category categories)Adds an categories to categories.OriginalLabelsIn.BuilderaddTypes(TypeLabel types)Adds an types to types.OriginalLabelsInbuild()Builds a OriginalLabelsIn.OriginalLabelsIn.Buildercategories(List<Category> categories)Set the categories.OriginalLabelsIn.Buildertypes(List<TypeLabel> types)Set the types.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
types- the typescategories- the categories
-
-
Method Details
-
build
Builds a OriginalLabelsIn.- Returns:
- the new OriginalLabelsIn instance
-
addTypes
Adds an types to types.- Parameters:
types- the new types- Returns:
- the OriginalLabelsIn builder
-
addCategories
Adds an categories to categories.- Parameters:
categories- the new categories- Returns:
- the OriginalLabelsIn builder
-
types
Set the types. Existing types will be replaced.- Parameters:
types- the types- Returns:
- the OriginalLabelsIn builder
-
categories
Set the categories. Existing categories will be replaced.- Parameters:
categories- the categories- Returns:
- the OriginalLabelsIn builder
-