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.Builder
addCategories(Category categories)
Adds an categories to categories.OriginalLabelsIn.Builder
addTypes(TypeLabel types)
Adds an types to types.OriginalLabelsIn
build()
Builds a OriginalLabelsIn.OriginalLabelsIn.Builder
categories(List<Category> categories)
Set the categories.OriginalLabelsIn.Builder
types(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
-