Class BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitDefaultBillingAddressSetMessagePayload>
public class BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitDefaultBillingAddressSetMessagePayload>
BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitDefaultBillingAddressSetMessagePayload businessUnitDefaultBillingAddressSetMessagePayload = BusinessUnitDefaultBillingAddressSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe address that was set as the default billing address.address
(Function<AddressBuilder, AddressBuilder> builder) The address that was set as the default billing address.build()
builds BusinessUnitDefaultBillingAddressSetMessagePayload with checking for non-null required valuesbuilds BusinessUnitDefaultBillingAddressSetMessagePayload without checking for non-null required valuesThe address that was set as the default billing address.of()
factory method for an instance of BusinessUnitDefaultBillingAddressSetMessagePayloadBuildercreate builder for BusinessUnitDefaultBillingAddressSetMessagePayload instancewithAddress
(Function<AddressBuilder, Address> builder) The address that was set as the default billing address.
-
Constructor Details
-
BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder
public BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder()
-
-
Method Details
-
address
public BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder address(Function<AddressBuilder, AddressBuilder> builder) The address that was set as the default billing address.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder withAddress(Function<AddressBuilder, Address> builder) The address that was set as the default billing address.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
The address that was set as the default billing address.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
The address that was set as the default billing address.
- Returns:
- address
-
build
builds BusinessUnitDefaultBillingAddressSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitDefaultBillingAddressSetMessagePayload>
- Returns:
- BusinessUnitDefaultBillingAddressSetMessagePayload
-
buildUnchecked
builds BusinessUnitDefaultBillingAddressSetMessagePayload without checking for non-null required values- Returns:
- BusinessUnitDefaultBillingAddressSetMessagePayload
-
of
factory method for an instance of BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitDefaultBillingAddressSetMessagePayloadBuilder of(BusinessUnitDefaultBillingAddressSetMessagePayload template) create builder for BusinessUnitDefaultBillingAddressSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-