Class BusinessUnitAddressRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitAddressRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAddressRemovedMessagePayload>
public class BusinessUnitAddressRemovedMessagePayloadBuilder
extends Object
implements 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)
.plusAddressRoles(addressRolesBuilder -> addressRolesBuilder)
.build()
-
Constructor Summary
Constructors -
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.addressRoles(AddressRole... addressRoles) Indicates if the address was used for shipping or billing purposes.addressRoles(List<AddressRole> addressRoles) Indicates if the address was used for shipping or billing purposes.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.Indicates if the address was used for shipping or billing purposes.of()factory method for an instance of BusinessUnitAddressRemovedMessagePayloadBuilderof(BusinessUnitAddressRemovedMessagePayload template) create builder for BusinessUnitAddressRemovedMessagePayload instanceplusAddressRoles(AddressRole... addressRoles) Indicates if the address was used for shipping or billing purposes.withAddress(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
-
addressRoles
Indicates if the address was used for shipping or billing purposes.
- Parameters:
addressRoles- value to be set- Returns:
- Builder
-
addressRoles
Indicates if the address was used for shipping or billing purposes.
- Parameters:
addressRoles- value to be set- Returns:
- Builder
-
plusAddressRoles
public BusinessUnitAddressRemovedMessagePayloadBuilder plusAddressRoles(AddressRole... addressRoles) Indicates if the address was used for shipping or billing purposes.
- Parameters:
addressRoles- value to be set- Returns:
- Builder
-
getAddress
The address that was removed from the Business Unit.
- Returns:
- address
-
getAddressRoles
Indicates if the address was used for shipping or billing purposes.
- Returns:
- addressRoles
-
build
builds BusinessUnitAddressRemovedMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<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
-