Interface OrderLabel
- All Superinterfaces:
Label
OrderLabel
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()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderLabelBuilder
builder()
builder factory method for OrderLabelstatic OrderLabelBuilder
builder
(OrderLabel template) create builder for OrderLabel instancestatic OrderLabel
deepCopy
(OrderLabel template) factory method to create a deep copy of OrderLabel@NotNull String
Email address of the Customer that the Order belongs to.@NotNull String
User-defined unique identifier of the Order that is unique across a Project.@NotNull String
getType()
static OrderLabel
of()
factory methodstatic OrderLabel
of
(OrderLabel template) factory method to create a shallow copy OrderLabelvoid
setCustomerEmail
(String customerEmail) Email address of the Customer that the Order belongs to.void
setOrderNumber
(String orderNumber) User-defined unique identifier of the Order that is unique across a Project.static com.fasterxml.jackson.core.type.TypeReference<OrderLabel>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderLabel
(Function<OrderLabel, T> helper) accessor map function
-
Field Details
-
ORDER_LABEL
discriminator value for OrderLabel- See Also:
-
-
Method Details
-
getType
-
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
-
setCustomerEmail
Email address of the Customer that the Order belongs to.
- Parameters:
customerEmail
- value to be set
-
setOrderNumber
User-defined unique identifier of the Order that is unique across a Project.
- Parameters:
orderNumber
- value to be set
-
of
factory method- Returns:
- instance of OrderLabel
-
of
factory method to create a shallow copy OrderLabel- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderLabel- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderLabel- Returns:
- builder
-
builder
create builder for OrderLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderLabel
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-