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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CustomerDateOfBirthSetMessagePayload with checking for non-null required valuesbuilds CustomerDateOfBirthSetMessagePayload without checking for non-null required valuesdateOfBirth(LocalDate dateOfBirth) ThedateOfBirththat was set during the Set Date of Birth update action.ThedateOfBirththat 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
dateOfBirththat was set during the Set Date of Birth update action.- Parameters:
dateOfBirth- value to be set- Returns:
- Builder
-
getDateOfBirth
The
dateOfBirththat was set during the Set Date of Birth update action.- Returns:
- dateOfBirth
-
build
builds CustomerDateOfBirthSetMessagePayload with checking for non-null required values- Specified by:
buildin 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
-