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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionidof 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 valuesidof the Address from which the Custom Type was removed.idof the Custom Type that was removed.of()factory method for an instance of CustomerAddressCustomTypeRemovedMessagePayloadBuildercreate builder for CustomerAddressCustomTypeRemovedMessagePayload instancepreviousTypeId(String previousTypeId) idof the Custom Type that was removed.
-
Constructor Details
-
CustomerAddressCustomTypeRemovedMessagePayloadBuilder
public CustomerAddressCustomTypeRemovedMessagePayloadBuilder()
-
-
Method Details
-
previousTypeId
public CustomerAddressCustomTypeRemovedMessagePayloadBuilder previousTypeId(@Nullable String previousTypeId) idof the Custom Type that was removed. Absent if there was no previous Custom Type present.- Parameters:
previousTypeId- value to be set- Returns:
- Builder
-
addressId
idof the Address from which the Custom Type was removed.- Parameters:
addressId- value to be set- Returns:
- Builder
-
getPreviousTypeId
idof the Custom Type that was removed. Absent if there was no previous Custom Type present.- Returns:
- previousTypeId
-
getAddressId
idof the Address from which the Custom Type was removed.- Returns:
- addressId
-
build
builds CustomerAddressCustomTypeRemovedMessagePayload with checking for non-null required values- Specified by:
buildin 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
-