Interface BusinessUnitSetContactEmailAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Setting the contact email on a Business Unit generates a BusinessUnitContactEmailSet Message.
Example to create an instance using the builder pattern
BusinessUnitSetContactEmailAction businessUnitSetContactEmailAction = BusinessUnitSetContactEmailAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitSetContactEmailAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitSetContactEmailActionbuilder
(BusinessUnitSetContactEmailAction template) create builder for BusinessUnitSetContactEmailAction instancedeepCopy
(BusinessUnitSetContactEmailAction template) factory method to create a deep copy of BusinessUnitSetContactEmailActionEmail to set.of()
factory methodof
(BusinessUnitSetContactEmailAction template) factory method to create a shallow copy BusinessUnitSetContactEmailActionvoid
setContactEmail
(String contactEmail) Email to set.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetContactEmailAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_CONTACT_EMAIL
discriminator value for BusinessUnitSetContactEmailAction- See Also:
-
-
Method Details
-
getContactEmail
String getContactEmail()Email to set. If
contactEmail
is absent ornull
, the existing contact email, if any, will be removed.- Returns:
- contactEmail
-
setContactEmail
Email to set. If
contactEmail
is absent ornull
, the existing contact email, if any, will be removed.- Parameters:
contactEmail
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitSetContactEmailAction
-
of
factory method to create a shallow copy BusinessUnitSetContactEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitSetContactEmailAction deepCopy(@Nullable BusinessUnitSetContactEmailAction template) factory method to create a deep copy of BusinessUnitSetContactEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitSetContactEmailAction- Returns:
- builder
-
builder
create builder for BusinessUnitSetContactEmailAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitSetContactEmailAction
default <T> T withBusinessUnitSetContactEmailAction(Function<BusinessUnitSetContactEmailAction, 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<BusinessUnitSetContactEmailAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-