Class BusinessUnitShippingAddressRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitShippingAddressRemovedMessagePayloadBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<BusinessUnitShippingAddressRemovedMessagePayload>
public class BusinessUnitShippingAddressRemovedMessagePayloadBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<BusinessUnitShippingAddressRemovedMessagePayload>
BusinessUnitShippingAddressRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitShippingAddressRemovedMessagePayload businessUnitShippingAddressRemovedMessagePayload = BusinessUnitShippingAddressRemovedMessagePayload.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe address that was removed from shipping addresses of the Business Unit.address
(Function<AddressBuilder, AddressBuilder> builder) The address that was removed from shipping addresses of the Business Unit.build()
builds BusinessUnitShippingAddressRemovedMessagePayload with checking for non-null required valuesbuilds BusinessUnitShippingAddressRemovedMessagePayload without checking for non-null required valuesThe address that was removed from shipping addresses of the Business Unit.of()
factory method for an instance of BusinessUnitShippingAddressRemovedMessagePayloadBuildercreate builder for BusinessUnitShippingAddressRemovedMessagePayload instancewithAddress
(Function<AddressBuilder, Address> builder) The address that was removed from shipping addresses of the Business Unit.
-
Constructor Details
-
BusinessUnitShippingAddressRemovedMessagePayloadBuilder
public BusinessUnitShippingAddressRemovedMessagePayloadBuilder()
-
-
Method Details
-
address
public BusinessUnitShippingAddressRemovedMessagePayloadBuilder address(Function<AddressBuilder, AddressBuilder> builder) The address that was removed from shipping addresses of the Business Unit.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public BusinessUnitShippingAddressRemovedMessagePayloadBuilder withAddress(Function<AddressBuilder, Address> builder) The address that was removed from shipping addresses of the Business Unit.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
The address that was removed from shipping addresses of the Business Unit.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
The address that was removed from shipping addresses of the Business Unit.
- Returns:
- address
-
build
builds BusinessUnitShippingAddressRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<BusinessUnitShippingAddressRemovedMessagePayload>
- Returns:
- BusinessUnitShippingAddressRemovedMessagePayload
-
buildUnchecked
builds BusinessUnitShippingAddressRemovedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitShippingAddressRemovedMessagePayload
-
of
factory method for an instance of BusinessUnitShippingAddressRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitShippingAddressRemovedMessagePayloadBuilder of(BusinessUnitShippingAddressRemovedMessagePayload template) create builder for BusinessUnitShippingAddressRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-