Class StagedOrderSetShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetShippingAddressAction>
public class StagedOrderSetShippingAddressActionBuilder
extends Object
implements Builder<StagedOrderSetShippingAddressAction>
StagedOrderSetShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingAddressAction stagedOrderSetShippingAddressAction = StagedOrderSetShippingAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.build()
builds StagedOrderSetShippingAddressAction with checking for non-null required valuesbuilds StagedOrderSetShippingAddressAction without checking for non-null required valuesValue to set.of()
factory method for an instance of StagedOrderSetShippingAddressActionBuilderof
(StagedOrderSetShippingAddressAction template) create builder for StagedOrderSetShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
StagedOrderSetShippingAddressActionBuilder
public StagedOrderSetShippingAddressActionBuilder()
-
-
Method Details
-
address
public StagedOrderSetShippingAddressActionBuilder 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 StagedOrderSetShippingAddressActionBuilder 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 StagedOrderSetShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetShippingAddressAction>
- Returns:
- StagedOrderSetShippingAddressAction
-
buildUnchecked
builds StagedOrderSetShippingAddressAction without checking for non-null required values- Returns:
- StagedOrderSetShippingAddressAction
-
of
factory method for an instance of StagedOrderSetShippingAddressActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingAddressActionBuilder of(StagedOrderSetShippingAddressAction template) create builder for StagedOrderSetShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-