Interface BusinessUnitChangeStatusAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Changing the status of a Business Unit generates a BusinessUnitStatusChanged Message.
Example to create an instance using the builder pattern
BusinessUnitChangeStatusAction businessUnitChangeStatusAction = BusinessUnitChangeStatusAction.builder()
.status("{status}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitChangeStatusAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitChangeStatusActionbuilder
(BusinessUnitChangeStatusAction template) create builder for BusinessUnitChangeStatusAction instancedeepCopy
(BusinessUnitChangeStatusAction template) factory method to create a deep copy of BusinessUnitChangeStatusAction@NotNull String
New status to set.of()
factory methodof
(BusinessUnitChangeStatusAction template) factory method to create a shallow copy BusinessUnitChangeStatusActionvoid
New status to set.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitChangeStatusAction>
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
-
CHANGE_STATUS
discriminator value for BusinessUnitChangeStatusAction- See Also:
-
-
Method Details
-
getStatus
New status to set.
- Returns:
- status
-
setStatus
New status to set.
- Parameters:
status
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitChangeStatusAction
-
of
factory method to create a shallow copy BusinessUnitChangeStatusAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitChangeStatusAction deepCopy(@Nullable BusinessUnitChangeStatusAction template) factory method to create a deep copy of BusinessUnitChangeStatusAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitChangeStatusAction- Returns:
- builder
-
builder
create builder for BusinessUnitChangeStatusAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitChangeStatusAction
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<BusinessUnitChangeStatusAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-