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