Class CustomerAddressCustomTypeRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerAddressCustomTypeRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerAddressCustomTypeRemovedMessagePayload>
public class CustomerAddressCustomTypeRemovedMessagePayloadBuilder
extends Object
implements Builder<CustomerAddressCustomTypeRemovedMessagePayload>
CustomerAddressCustomTypeRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerAddressCustomTypeRemovedMessagePayload customerAddressCustomTypeRemovedMessagePayload = CustomerAddressCustomTypeRemovedMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid
of the Address from which the Custom Type was removed.build()
builds CustomerAddressCustomTypeRemovedMessagePayload with checking for non-null required valuesbuilds CustomerAddressCustomTypeRemovedMessagePayload without checking for non-null required valuesid
of the Address from which the Custom Type was removed.id
of the Custom Type that was removed.of()
factory method for an instance of CustomerAddressCustomTypeRemovedMessagePayloadBuildercreate builder for CustomerAddressCustomTypeRemovedMessagePayload instancepreviousTypeId
(String previousTypeId) id
of the Custom Type that was removed.
-
Constructor Details
-
CustomerAddressCustomTypeRemovedMessagePayloadBuilder
public CustomerAddressCustomTypeRemovedMessagePayloadBuilder()
-
-
Method Details
-
previousTypeId
public CustomerAddressCustomTypeRemovedMessagePayloadBuilder previousTypeId(@Nullable String previousTypeId) id
of the Custom Type that was removed. Absent if there was no previous Custom Type present.- Parameters:
previousTypeId
- value to be set- Returns:
- Builder
-
addressId
id
of the Address from which the Custom Type was removed.- Parameters:
addressId
- value to be set- Returns:
- Builder
-
getPreviousTypeId
id
of the Custom Type that was removed. Absent if there was no previous Custom Type present.- Returns:
- previousTypeId
-
getAddressId
id
of the Address from which the Custom Type was removed.- Returns:
- addressId
-
build
builds CustomerAddressCustomTypeRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerAddressCustomTypeRemovedMessagePayload>
- Returns:
- CustomerAddressCustomTypeRemovedMessagePayload
-
buildUnchecked
builds CustomerAddressCustomTypeRemovedMessagePayload without checking for non-null required values- Returns:
- CustomerAddressCustomTypeRemovedMessagePayload
-
of
factory method for an instance of CustomerAddressCustomTypeRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerAddressCustomTypeRemovedMessagePayloadBuilder of(CustomerAddressCustomTypeRemovedMessagePayload template) create builder for CustomerAddressCustomTypeRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-