Package com.commercetools.api.models.me
Interface MyBusinessUnitAddShippingAddressIdAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Adding a shipping address to a Business Unit generates a BusinessUnitShippingAddressAdded Message.
Example to create an instance using the builder pattern
MyBusinessUnitAddShippingAddressIdAction myBusinessUnitAddShippingAddressIdAction = MyBusinessUnitAddShippingAddressIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyBusinessUnitAddShippingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyBusinessUnitAddShippingAddressIdActioncreate builder for MyBusinessUnitAddShippingAddressIdAction instancefactory method to create a deep copy of MyBusinessUnitAddShippingAddressIdActionID of the address to add as a shipping address.Key of the address to add as a shipping address.of()
factory methodof
(MyBusinessUnitAddShippingAddressIdAction template) factory method to create a shallow copy MyBusinessUnitAddShippingAddressIdActionvoid
setAddressId
(String addressId) ID of the address to add as a shipping address.void
setAddressKey
(String addressKey) Key of the address to add as a shipping address.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitAddShippingAddressIdAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyBusinessUnitAddShippingAddressIdAction
(Function<MyBusinessUnitAddShippingAddressIdAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
ADD_SHIPPING_ADDRESS_ID
discriminator value for MyBusinessUnitAddShippingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()ID of the address to add as a shipping address. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
String getAddressKey()Key of the address to add as a shipping address. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
setAddressId
ID of the address to add as a shipping address. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set
-
setAddressKey
Key of the address to add as a shipping address. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitAddShippingAddressIdAction
-
of
static MyBusinessUnitAddShippingAddressIdAction of(MyBusinessUnitAddShippingAddressIdAction template) factory method to create a shallow copy MyBusinessUnitAddShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyBusinessUnitAddShippingAddressIdAction deepCopy(@Nullable MyBusinessUnitAddShippingAddressIdAction template) factory method to create a deep copy of MyBusinessUnitAddShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitAddShippingAddressIdAction- Returns:
- builder
-
builder
static MyBusinessUnitAddShippingAddressIdActionBuilder builder(MyBusinessUnitAddShippingAddressIdAction template) create builder for MyBusinessUnitAddShippingAddressIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitAddShippingAddressIdAction
default <T> T withMyBusinessUnitAddShippingAddressIdAction(Function<MyBusinessUnitAddShippingAddressIdAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitAddShippingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-