Interface CustomerLabel
- All Superinterfaces:
Label
CustomerLabel
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerLabel customerLabel = CustomerLabel.builder()
.firstName("{firstName}")
.lastName("{lastName}")
.customerNumber("{customerNumber}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerLabelBuilder
builder()
builder factory method for CustomerLabelstatic CustomerLabelBuilder
builder
(CustomerLabel template) create builder for CustomerLabel instancestatic CustomerLabel
deepCopy
(CustomerLabel template) factory method to create a deep copy of CustomerLabel@NotNull String
User-defined unique identifier of the Customer.@NotNull String
Given name (first name) of the Customer.@NotNull String
Family name (last name) of the Customer.@NotNull String
getType()
static CustomerLabel
of()
factory methodstatic CustomerLabel
of
(CustomerLabel template) factory method to create a shallow copy CustomerLabelvoid
setCustomerNumber
(String customerNumber) User-defined unique identifier of the Customer.void
setFirstName
(String firstName) Given name (first name) of the Customer.void
setLastName
(String lastName) Family name (last name) of the Customer.static com.fasterxml.jackson.core.type.TypeReference<CustomerLabel>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerLabel
(Function<CustomerLabel, T> helper) accessor map function
-
Field Details
-
CUSTOMER_LABEL
discriminator value for CustomerLabel- See Also:
-
-
Method Details
-
getType
-
getFirstName
Given name (first name) of the Customer.
- Returns:
- firstName
-
getLastName
Family name (last name) of the Customer.
- Returns:
- lastName
-
getCustomerNumber
User-defined unique identifier of the Customer.
- Returns:
- customerNumber
-
setFirstName
Given name (first name) of the Customer.
- Parameters:
firstName
- value to be set
-
setLastName
Family name (last name) of the Customer.
- Parameters:
lastName
- value to be set
-
setCustomerNumber
User-defined unique identifier of the Customer.
- Parameters:
customerNumber
- value to be set
-
of
factory method- Returns:
- instance of CustomerLabel
-
of
factory method to create a shallow copy CustomerLabel- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerLabel- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerLabel- Returns:
- builder
-
builder
create builder for CustomerLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerLabel
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
-