Class CartSetBillingAddressActionBuilder
- All Implemented Interfaces:
Builder<CartSetBillingAddressAction>
Example to create an instance using the builder pattern
CartSetBillingAddressAction cartSetBillingAddressAction = CartSetBillingAddressAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress(BaseAddress address) Value to set.address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.build()builds CartSetBillingAddressAction with checking for non-null required valuesbuilds CartSetBillingAddressAction without checking for non-null required valuesValue to set.of()factory method for an instance of CartSetBillingAddressActionBuilderof(CartSetBillingAddressAction template) create builder for CartSetBillingAddressAction instancewithAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
CartSetBillingAddressActionBuilder
public CartSetBillingAddressActionBuilder()
-
-
Method Details
-
address
public CartSetBillingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set. It replaces the entire address, including Custom Fields if
customis not included. To preserve Custom Fields, include thecustomobject in the request.If omitted, any existing value is removed.
- Parameters:
builder- function to build the address value- Returns:
- Builder
-
withAddress
public CartSetBillingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set. It replaces the entire address, including Custom Fields if
customis not included. To preserve Custom Fields, include thecustomobject in the request.If omitted, any existing value is removed.
- Parameters:
builder- function to build the address value- Returns:
- Builder
-
address
Value to set. It replaces the entire address, including Custom Fields if
customis not included. To preserve Custom Fields, include thecustomobject in the request.If omitted, any existing value is removed.
- Parameters:
address- value to be set- Returns:
- Builder
-
getAddress
Value to set. It replaces the entire address, including Custom Fields if
customis not included. To preserve Custom Fields, include thecustomobject in the request.If omitted, any existing value is removed.
- Returns:
- address
-
build
builds CartSetBillingAddressAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetBillingAddressAction>- Returns:
- CartSetBillingAddressAction
-
buildUnchecked
builds CartSetBillingAddressAction without checking for non-null required values- Returns:
- CartSetBillingAddressAction
-
of
factory method for an instance of CartSetBillingAddressActionBuilder- Returns:
- builder
-
of
create builder for CartSetBillingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-