Class OrderUpdateItemShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderUpdateItemShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<OrderUpdateItemShippingAddressAction>
public class OrderUpdateItemShippingAddressActionBuilder
extends Object
implements Builder<OrderUpdateItemShippingAddressAction>
OrderUpdateItemShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderUpdateItemShippingAddressAction orderUpdateItemShippingAddressAction = OrderUpdateItemShippingAddressAction.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 OrderUpdateItemShippingAddressAction with checking for non-null required valuesbuilds OrderUpdateItemShippingAddressAction 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 OrderUpdateItemShippingAddressActionBuilderof
(OrderUpdateItemShippingAddressAction template) create builder for OrderUpdateItemShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) The new Address with the samekey
as the Address it will replace.
-
Constructor Details
-
OrderUpdateItemShippingAddressActionBuilder
public OrderUpdateItemShippingAddressActionBuilder()
-
-
Method Details
-
address
public OrderUpdateItemShippingAddressActionBuilder 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 OrderUpdateItemShippingAddressActionBuilder 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 OrderUpdateItemShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderUpdateItemShippingAddressAction>
- Returns:
- OrderUpdateItemShippingAddressAction
-
buildUnchecked
builds OrderUpdateItemShippingAddressAction without checking for non-null required values- Returns:
- OrderUpdateItemShippingAddressAction
-
of
factory method for an instance of OrderUpdateItemShippingAddressActionBuilder- Returns:
- builder
-
of
public static OrderUpdateItemShippingAddressActionBuilder of(OrderUpdateItemShippingAddressAction template) create builder for OrderUpdateItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-