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