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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerLabelBuilderbuilder()builder factory method for CustomerLabelstatic CustomerLabelBuilderbuilder(CustomerLabel template) create builder for CustomerLabel instancecopyDeep()static CustomerLabeldeepCopy(CustomerLabel template) factory method to create a deep copy of CustomerLabel@NotNull StringUser-defined unique identifier of the Customer.@NotNull StringGiven name (first name) of the Customer.@NotNull StringFamily name (last name) of the Customer.@NotNull StringgetType()static CustomerLabelof()factory methodstatic CustomerLabelof(CustomerLabel template) factory method to create a shallow copy CustomerLabelvoidsetCustomerNumber(String customerNumber) User-defined unique identifier of the Customer.voidsetFirstName(String firstName) Given name (first name) of the Customer.voidsetLastName(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> TwithCustomerLabel(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
-
copyDeep
CustomerLabel copyDeep() -
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
-