Class OrderSetShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<OrderSetShippingAddressAction>
public class OrderSetShippingAddressActionBuilder
extends Object
implements Builder<OrderSetShippingAddressAction>
OrderSetShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetShippingAddressAction orderSetShippingAddressAction = OrderSetShippingAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.build()
builds OrderSetShippingAddressAction with checking for non-null required valuesbuilds OrderSetShippingAddressAction without checking for non-null required valuesValue to set.of()
factory method for an instance of OrderSetShippingAddressActionBuilderof
(OrderSetShippingAddressAction template) create builder for OrderSetShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
OrderSetShippingAddressActionBuilder
public OrderSetShippingAddressActionBuilder()
-
-
Method Details
-
address
public OrderSetShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public OrderSetShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Value to set. If empty, any existing value is removed.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Value to set. If empty, any existing value is removed.
- Returns:
- address
-
build
builds OrderSetShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetShippingAddressAction>
- Returns:
- OrderSetShippingAddressAction
-
buildUnchecked
builds OrderSetShippingAddressAction without checking for non-null required values- Returns:
- OrderSetShippingAddressAction
-
of
factory method for an instance of OrderSetShippingAddressActionBuilder- Returns:
- builder
-
of
create builder for OrderSetShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-