Package com.commercetools.api.models.me
Class MyCartSetShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCartSetShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<MyCartSetShippingAddressAction>
public class MyCartSetShippingAddressActionBuilder
extends Object
implements Builder<MyCartSetShippingAddressAction>
MyCartSetShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetShippingAddressAction myCartSetShippingAddressAction = MyCartSetShippingAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.build()
builds MyCartSetShippingAddressAction with checking for non-null required valuesbuilds MyCartSetShippingAddressAction without checking for non-null required valuesValue to set.of()
factory method for an instance of MyCartSetShippingAddressActionBuilderof
(MyCartSetShippingAddressAction template) create builder for MyCartSetShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
MyCartSetShippingAddressActionBuilder
public MyCartSetShippingAddressActionBuilder()
-
-
Method Details
-
address
public MyCartSetShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public MyCartSetShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Value to set. If not set, the shipping address is unset, and the
taxedPrice
andtaxRate
are unset in all Line Items.- Returns:
- address
-
build
builds MyCartSetShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCartSetShippingAddressAction>
- Returns:
- MyCartSetShippingAddressAction
-
buildUnchecked
builds MyCartSetShippingAddressAction without checking for non-null required values- Returns:
- MyCartSetShippingAddressAction
-
of
factory method for an instance of MyCartSetShippingAddressActionBuilder- Returns:
- builder
-
of
create builder for MyCartSetShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-