Interface CustomerDateOfBirthSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Date of Birth update action.
Example to create an instance using the builder pattern
CustomerDateOfBirthSetMessagePayload customerDateOfBirthSetMessagePayload = CustomerDateOfBirthSetMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerDateOfBirthSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerDateOfBirthSetMessagePayloadbuilder
(CustomerDateOfBirthSetMessagePayload template) create builder for CustomerDateOfBirthSetMessagePayload instancedeepCopy
(CustomerDateOfBirthSetMessagePayload template) factory method to create a deep copy of CustomerDateOfBirthSetMessagePayloadThedateOfBirth
that was set during the Set Date of Birth update action.of()
factory methodof
(CustomerDateOfBirthSetMessagePayload template) factory method to create a shallow copy CustomerDateOfBirthSetMessagePayloadvoid
setDateOfBirth
(LocalDate dateOfBirth) ThedateOfBirth
that was set during the Set Date of Birth update action.static com.fasterxml.jackson.core.type.TypeReference<CustomerDateOfBirthSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_DATE_OF_BIRTH_SET
discriminator value for CustomerDateOfBirthSetMessagePayload- See Also:
-
-
Method Details
-
getDateOfBirth
LocalDate getDateOfBirth()The
dateOfBirth
that was set during the Set Date of Birth update action.- Returns:
- dateOfBirth
-
setDateOfBirth
The
dateOfBirth
that was set during the Set Date of Birth update action.- Parameters:
dateOfBirth
- value to be set
-
of
factory method- Returns:
- instance of CustomerDateOfBirthSetMessagePayload
-
of
factory method to create a shallow copy CustomerDateOfBirthSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerDateOfBirthSetMessagePayload deepCopy(@Nullable CustomerDateOfBirthSetMessagePayload template) factory method to create a deep copy of CustomerDateOfBirthSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerDateOfBirthSetMessagePayload- Returns:
- builder
-
builder
static CustomerDateOfBirthSetMessagePayloadBuilder builder(CustomerDateOfBirthSetMessagePayload template) create builder for CustomerDateOfBirthSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerDateOfBirthSetMessagePayload
default <T> T withCustomerDateOfBirthSetMessagePayload(Function<CustomerDateOfBirthSetMessagePayload, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CustomerDateOfBirthSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-