Package com.commercetools.api.models.me
Class MyBusinessUnitAddShippingAddressIdActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyBusinessUnitAddShippingAddressIdActionBuilder
- All Implemented Interfaces:
Builder<MyBusinessUnitAddShippingAddressIdAction>
public class MyBusinessUnitAddShippingAddressIdActionBuilder
extends Object
implements Builder<MyBusinessUnitAddShippingAddressIdAction>
MyBusinessUnitAddShippingAddressIdActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyBusinessUnitAddShippingAddressIdAction myBusinessUnitAddShippingAddressIdAction = MyBusinessUnitAddShippingAddressIdAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionID of the address to add as a shipping address.addressKey
(String addressKey) Key of the address to add as a shipping address.build()
builds MyBusinessUnitAddShippingAddressIdAction with checking for non-null required valuesbuilds MyBusinessUnitAddShippingAddressIdAction without checking for non-null required valuesID of the address to add as a shipping address.Key of the address to add as a shipping address.of()
factory method for an instance of MyBusinessUnitAddShippingAddressIdActionBuilderof
(MyBusinessUnitAddShippingAddressIdAction template) create builder for MyBusinessUnitAddShippingAddressIdAction instance
-
Constructor Details
-
MyBusinessUnitAddShippingAddressIdActionBuilder
public MyBusinessUnitAddShippingAddressIdActionBuilder()
-
-
Method Details
-
addressId
ID of the address to add as a shipping address. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set- Returns:
- Builder
-
addressKey
Key of the address to add as a shipping address. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
getAddressId
ID of the address to add as a shipping address. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
Key of the address to add as a shipping address. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
build
builds MyBusinessUnitAddShippingAddressIdAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyBusinessUnitAddShippingAddressIdAction>
- Returns:
- MyBusinessUnitAddShippingAddressIdAction
-
buildUnchecked
builds MyBusinessUnitAddShippingAddressIdAction without checking for non-null required values- Returns:
- MyBusinessUnitAddShippingAddressIdAction
-
of
factory method for an instance of MyBusinessUnitAddShippingAddressIdActionBuilder- Returns:
- builder
-
of
public static MyBusinessUnitAddShippingAddressIdActionBuilder of(MyBusinessUnitAddShippingAddressIdAction template) create builder for MyBusinessUnitAddShippingAddressIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-