Class CustomObjectLabelBuilder
java.lang.Object
com.commercetools.history.models.label.CustomObjectLabelBuilder
- All Implemented Interfaces:
Builder<CustomObjectLabel>
CustomObjectLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomObjectLabel customObjectLabel = CustomObjectLabel.builder()
.key("{key}")
.container("{container}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CustomObjectLabel with checking for non-null required valuesbuilds CustomObjectLabel without checking for non-null required valuesNamespace to group Custom Objects.Namespace to group Custom Objects.getKey()User-defined unique identifier of the CustomObject within the definedcontainer.User-defined unique identifier of the CustomObject within the definedcontainer.static CustomObjectLabelBuilderof()factory method for an instance of CustomObjectLabelBuilderstatic CustomObjectLabelBuilderof(CustomObjectLabel template) create builder for CustomObjectLabel instance
-
Constructor Details
-
CustomObjectLabelBuilder
public CustomObjectLabelBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the CustomObject within the defined
container.- Parameters:
key- value to be set- Returns:
- Builder
-
container
Namespace to group Custom Objects.
- Parameters:
container- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the CustomObject within the defined
container.- Returns:
- key
-
getContainer
Namespace to group Custom Objects.
- Returns:
- container
-
build
builds CustomObjectLabel with checking for non-null required values- Specified by:
buildin interfaceBuilder<CustomObjectLabel>- Returns:
- CustomObjectLabel
-
buildUnchecked
builds CustomObjectLabel without checking for non-null required values- Returns:
- CustomObjectLabel
-
of
factory method for an instance of CustomObjectLabelBuilder- Returns:
- builder
-
of
create builder for CustomObjectLabel instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-