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 Summary
-
Method Summary
Modifier and Type Method Description UpdatedLabelsIn.Builder
addCategories(Category categories)
Adds an categories to categories.UpdatedLabelsIn.Builder
addTypes(TypeLabel types)
Adds an types to types.UpdatedLabelsIn
build()
Builds a UpdatedLabelsIn.UpdatedLabelsIn.Builder
categories(List<Category> categories)
Set the categories.UpdatedLabelsIn.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 UpdatedLabelsIn.- Returns:
- the new UpdatedLabelsIn instance
-
addTypes
Adds an types to types.- Parameters:
types
- the new types- Returns:
- the UpdatedLabelsIn builder
-
addCategories
Adds an categories to categories.- Parameters:
categories
- the new categories- Returns:
- the UpdatedLabelsIn builder
-
types
Set the types. Existing types will be replaced.- Parameters:
types
- the types- Returns:
- the UpdatedLabelsIn builder
-
categories
Set the categories. Existing categories will be replaced.- Parameters:
categories
- the categories- Returns:
- the UpdatedLabelsIn builder
-