Package com.commercetools.api.models.me
Interface MyBusinessUnitSetContactEmailAction
- All Superinterfaces:
MyBusinessUnitUpdateAction
Setting the contact email on a Business Unit generates a BusinessUnitContactEmailSet Message.
Example to create an instance using the builder pattern
MyBusinessUnitSetContactEmailAction myBusinessUnitSetContactEmailAction = MyBusinessUnitSetContactEmailAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyBusinessUnitSetContactEmailAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyBusinessUnitSetContactEmailActionbuilder
(MyBusinessUnitSetContactEmailAction template) create builder for MyBusinessUnitSetContactEmailAction instancedeepCopy
(MyBusinessUnitSetContactEmailAction template) factory method to create a deep copy of MyBusinessUnitSetContactEmailActionEmail to set.of()
factory methodof
(MyBusinessUnitSetContactEmailAction template) factory method to create a shallow copy MyBusinessUnitSetContactEmailActionvoid
setContactEmail
(String contactEmail) Email to set.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitSetContactEmailAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyBusinessUnitUpdateAction
getAction, withMyBusinessUnitUpdateAction
-
Field Details
-
SET_CONTACT_EMAIL
discriminator value for MyBusinessUnitSetContactEmailAction- 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 MyBusinessUnitSetContactEmailAction
-
of
factory method to create a shallow copy MyBusinessUnitSetContactEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyBusinessUnitSetContactEmailAction deepCopy(@Nullable MyBusinessUnitSetContactEmailAction template) factory method to create a deep copy of MyBusinessUnitSetContactEmailAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitSetContactEmailAction- Returns:
- builder
-
builder
static MyBusinessUnitSetContactEmailActionBuilder builder(MyBusinessUnitSetContactEmailAction template) create builder for MyBusinessUnitSetContactEmailAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitSetContactEmailAction
default <T> T withMyBusinessUnitSetContactEmailAction(Function<MyBusinessUnitSetContactEmailAction, 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<MyBusinessUnitSetContactEmailAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-