Class OrderLabelBuilder
java.lang.Object
com.commercetools.history.models.label.OrderLabelBuilder
- All Implemented Interfaces:
Builder<OrderLabel>
OrderLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderLabel orderLabel = OrderLabel.builder()
.customerEmail("{customerEmail}")
.orderNumber("{orderNumber}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderLabel with checking for non-null required valuesbuilds OrderLabel without checking for non-null required valuescustomerEmail
(String customerEmail) Email address of the Customer that the Order belongs to.Email address of the Customer that the Order belongs to.User-defined unique identifier of the Order that is unique across a Project.static OrderLabelBuilder
of()
factory method for an instance of OrderLabelBuilderstatic OrderLabelBuilder
of
(OrderLabel template) create builder for OrderLabel instanceorderNumber
(String orderNumber) User-defined unique identifier of the Order that is unique across a Project.
-
Constructor Details
-
OrderLabelBuilder
public OrderLabelBuilder()
-
-
Method Details
-
customerEmail
Email address of the Customer that the Order belongs to.
- Parameters:
customerEmail
- value to be set- Returns:
- Builder
-
orderNumber
User-defined unique identifier of the Order that is unique across a Project.
- Parameters:
orderNumber
- value to be set- Returns:
- Builder
-
getCustomerEmail
Email address of the Customer that the Order belongs to.
- Returns:
- customerEmail
-
getOrderNumber
User-defined unique identifier of the Order that is unique across a Project.
- Returns:
- orderNumber
-
build
builds OrderLabel with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderLabel>
- Returns:
- OrderLabel
-
buildUnchecked
builds OrderLabel without checking for non-null required values- Returns:
- OrderLabel
-
of
factory method for an instance of OrderLabelBuilder- Returns:
- builder
-
of
create builder for OrderLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-