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