Class CustomerDateOfBirthSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerDateOfBirthSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerDateOfBirthSetMessagePayload>
public class CustomerDateOfBirthSetMessagePayloadBuilder
extends Object
implements Builder<CustomerDateOfBirthSetMessagePayload>
CustomerDateOfBirthSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerDateOfBirthSetMessagePayload customerDateOfBirthSetMessagePayload = CustomerDateOfBirthSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerDateOfBirthSetMessagePayload with checking for non-null required valuesbuilds CustomerDateOfBirthSetMessagePayload without checking for non-null required valuesdateOfBirth
(LocalDate dateOfBirth) ThedateOfBirth
that was set during the Set Date of Birth update action.ThedateOfBirth
that was set during the Set Date of Birth update action.of()
factory method for an instance of CustomerDateOfBirthSetMessagePayloadBuilderof
(CustomerDateOfBirthSetMessagePayload template) create builder for CustomerDateOfBirthSetMessagePayload instance
-
Constructor Details
-
CustomerDateOfBirthSetMessagePayloadBuilder
public CustomerDateOfBirthSetMessagePayloadBuilder()
-
-
Method Details
-
dateOfBirth
The
dateOfBirth
that was set during the Set Date of Birth update action.- Parameters:
dateOfBirth
- value to be set- Returns:
- Builder
-
getDateOfBirth
The
dateOfBirth
that was set during the Set Date of Birth update action.- Returns:
- dateOfBirth
-
build
builds CustomerDateOfBirthSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerDateOfBirthSetMessagePayload>
- Returns:
- CustomerDateOfBirthSetMessagePayload
-
buildUnchecked
builds CustomerDateOfBirthSetMessagePayload without checking for non-null required values- Returns:
- CustomerDateOfBirthSetMessagePayload
-
of
factory method for an instance of CustomerDateOfBirthSetMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerDateOfBirthSetMessagePayloadBuilder of(CustomerDateOfBirthSetMessagePayload template) create builder for CustomerDateOfBirthSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-