Class BusinessUnitLabelBuilder
java.lang.Object
com.commercetools.history.models.label.BusinessUnitLabelBuilder
- All Implemented Interfaces:
Builder<BusinessUnitLabel>
BusinessUnitLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitLabel businessUnitLabel = BusinessUnitLabel.builder()
.key("{key}")
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitLabel with checking for non-null required valuesbuilds BusinessUnitLabel without checking for non-null required valuesgetKey()
User-defined unique identifier of the Business Unit.getName()
Name of the Business Unit.User-defined unique identifier of the Business Unit.Name of the Business Unit.static BusinessUnitLabelBuilder
of()
factory method for an instance of BusinessUnitLabelBuilderstatic BusinessUnitLabelBuilder
of
(BusinessUnitLabel template) create builder for BusinessUnitLabel instance
-
Constructor Details
-
BusinessUnitLabelBuilder
public BusinessUnitLabelBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the Business Unit.
- Parameters:
key
- value to be set- Returns:
- Builder
-
name
Name of the Business Unit.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the Business Unit.
- Returns:
- key
-
getName
Name of the Business Unit.
- Returns:
- name
-
build
builds BusinessUnitLabel with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitLabel>
- Returns:
- BusinessUnitLabel
-
buildUnchecked
builds BusinessUnitLabel without checking for non-null required values- Returns:
- BusinessUnitLabel
-
of
factory method for an instance of BusinessUnitLabelBuilder- Returns:
- builder
-
of
create builder for BusinessUnitLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-