Class StagedOrderUpdateItemShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderUpdateItemShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderUpdateItemShippingAddressAction>
public class StagedOrderUpdateItemShippingAddressActionBuilder
extends Object
implements Builder<StagedOrderUpdateItemShippingAddressAction>
StagedOrderUpdateItemShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderUpdateItemShippingAddressAction stagedOrderUpdateItemShippingAddressAction = StagedOrderUpdateItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) The new Address with the samekey
as the Address it will replace.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) The new Address with the samekey
as the Address it will replace.build()
builds StagedOrderUpdateItemShippingAddressAction with checking for non-null required valuesbuilds StagedOrderUpdateItemShippingAddressAction without checking for non-null required valuesThe new Address with the samekey
as the Address it will replace.of()
factory method for an instance of StagedOrderUpdateItemShippingAddressActionBuilderof
(StagedOrderUpdateItemShippingAddressAction template) create builder for StagedOrderUpdateItemShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) The new Address with the samekey
as the Address it will replace.
-
Constructor Details
-
StagedOrderUpdateItemShippingAddressActionBuilder
public StagedOrderUpdateItemShippingAddressActionBuilder()
-
-
Method Details
-
address
public StagedOrderUpdateItemShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) The new Address with the same
key
as the Address it will replace.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public StagedOrderUpdateItemShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) The new Address with the same
key
as the Address it will replace.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
The new Address with the same
key
as the Address it will replace.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
The new Address with the same
key
as the Address it will replace.- Returns:
- address
-
build
builds StagedOrderUpdateItemShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderUpdateItemShippingAddressAction>
- Returns:
- StagedOrderUpdateItemShippingAddressAction
-
buildUnchecked
builds StagedOrderUpdateItemShippingAddressAction without checking for non-null required values- Returns:
- StagedOrderUpdateItemShippingAddressAction
-
of
factory method for an instance of StagedOrderUpdateItemShippingAddressActionBuilder- Returns:
- builder
-
of
public static StagedOrderUpdateItemShippingAddressActionBuilder of(StagedOrderUpdateItemShippingAddressAction template) create builder for StagedOrderUpdateItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-