Interface BusinessUnitSetDefaultShippingAddressAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Setting the default shipping address on a Business Unit generates a BusinessUnitDefaultShippingAddressSet Message.
Example to create an instance using the builder pattern
BusinessUnitSetDefaultShippingAddressAction businessUnitSetDefaultShippingAddressAction = BusinessUnitSetDefaultShippingAddressAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitSetDefaultShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitSetDefaultShippingAddressActioncreate builder for BusinessUnitSetDefaultShippingAddressAction instancefactory method to create a deep copy of BusinessUnitSetDefaultShippingAddressActionID of the address to add as a shipping address.Key of the address to add as a shipping address.of()
factory methodfactory method to create a shallow copy BusinessUnitSetDefaultShippingAddressActionvoid
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<BusinessUnitSetDefaultShippingAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitSetDefaultShippingAddressAction
(Function<BusinessUnitSetDefaultShippingAddressAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DEFAULT_SHIPPING_ADDRESS
discriminator value for BusinessUnitSetDefaultShippingAddressAction- 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 BusinessUnitSetDefaultShippingAddressAction
-
of
static BusinessUnitSetDefaultShippingAddressAction of(BusinessUnitSetDefaultShippingAddressAction template) factory method to create a shallow copy BusinessUnitSetDefaultShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitSetDefaultShippingAddressAction deepCopy(@Nullable BusinessUnitSetDefaultShippingAddressAction template) factory method to create a deep copy of BusinessUnitSetDefaultShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitSetDefaultShippingAddressAction- Returns:
- builder
-
builder
static BusinessUnitSetDefaultShippingAddressActionBuilder builder(BusinessUnitSetDefaultShippingAddressAction template) create builder for BusinessUnitSetDefaultShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitSetDefaultShippingAddressAction
default <T> T withBusinessUnitSetDefaultShippingAddressAction(Function<BusinessUnitSetDefaultShippingAddressAction, 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<BusinessUnitSetDefaultShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-