Interface SubscriptionSetEventsAction
- All Superinterfaces:
ResourceUpdateAction<SubscriptionUpdateAction>
,SubscriptionUpdateAction
SubscriptionSetEventsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SubscriptionSetEventsAction subscriptionSetEventsAction = SubscriptionSetEventsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for SubscriptionSetEventsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for SubscriptionSetEventsActionbuilder
(SubscriptionSetEventsAction template) create builder for SubscriptionSetEventsAction instancecopyDeep()
static SubscriptionSetEventsAction
deepCopy
(SubscriptionSetEventsAction template) factory method to create a deep copy of SubscriptionSetEventsAction@Valid List<EventSubscription>
Value to set.static SubscriptionSetEventsAction
of()
factory methodstatic SubscriptionSetEventsAction
of
(SubscriptionSetEventsAction template) factory method to create a shallow copy SubscriptionSetEventsActionvoid
setEvents
(EventSubscription... events) Value to set.void
setEvents
(List<EventSubscription> events) Value to set.static com.fasterxml.jackson.core.type.TypeReference<SubscriptionSetEventsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.subscription.SubscriptionUpdateAction
getAction, withSubscriptionUpdateAction
-
Field Details
-
SET_EVENTS
discriminator value for SubscriptionSetEventsAction- See Also:
-
-
Method Details
-
getEvents
Value to set. Can only be unset if either
messages
orchanges
is set.- Returns:
- events
-
setEvents
Value to set. Can only be unset if either
messages
orchanges
is set.- Parameters:
events
- values to be set
-
setEvents
Value to set. Can only be unset if either
messages
orchanges
is set.- Parameters:
events
- values to be set
-
of
factory method- Returns:
- instance of SubscriptionSetEventsAction
-
of
factory method to create a shallow copy SubscriptionSetEventsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
SubscriptionSetEventsAction copyDeep()- Specified by:
copyDeep
in interfaceSubscriptionUpdateAction
-
deepCopy
@Nullable static SubscriptionSetEventsAction deepCopy(@Nullable SubscriptionSetEventsAction template) factory method to create a deep copy of SubscriptionSetEventsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SubscriptionSetEventsAction- Returns:
- builder
-
builder
create builder for SubscriptionSetEventsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSubscriptionSetEventsAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-