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