Class StagedOrderAddItemShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderAddItemShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderAddItemShippingAddressAction>
public class StagedOrderAddItemShippingAddressActionBuilder
extends Object
implements Builder<StagedOrderAddItemShippingAddressAction>
StagedOrderAddItemShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderAddItemShippingAddressAction stagedOrderAddItemShippingAddressAction = StagedOrderAddItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Address to append toitemShippingAddresses
.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address to append toitemShippingAddresses
.build()
builds StagedOrderAddItemShippingAddressAction with checking for non-null required valuesbuilds StagedOrderAddItemShippingAddressAction without checking for non-null required valuesAddress to append toitemShippingAddresses
.of()
factory method for an instance of StagedOrderAddItemShippingAddressActionBuilderof
(StagedOrderAddItemShippingAddressAction template) create builder for StagedOrderAddItemShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Address to append toitemShippingAddresses
.
-
Constructor Details
-
StagedOrderAddItemShippingAddressActionBuilder
public StagedOrderAddItemShippingAddressActionBuilder()
-
-
Method Details
-
address
public StagedOrderAddItemShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public StagedOrderAddItemShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Returns:
- address
-
build
builds StagedOrderAddItemShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderAddItemShippingAddressAction>
- Returns:
- StagedOrderAddItemShippingAddressAction
-
buildUnchecked
builds StagedOrderAddItemShippingAddressAction without checking for non-null required values- Returns:
- StagedOrderAddItemShippingAddressAction
-
of
factory method for an instance of StagedOrderAddItemShippingAddressActionBuilder- Returns:
- builder
-
of
public static StagedOrderAddItemShippingAddressActionBuilder of(StagedOrderAddItemShippingAddressAction template) create builder for StagedOrderAddItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-