Interface SubscriptionChangeDestinationAction
- All Superinterfaces:
ResourceUpdateAction<SubscriptionUpdateAction>
,SubscriptionUpdateAction
A test notification is sent to ensure the correct configuration of the Destination. If the notification cannot be delivered, the update will fail. The payload of the test notification is of type ResourceCreated for the resourceTypeId
subscription
. The status
will change to Healthy, if it isn't already.
Example to create an instance using the builder pattern
SubscriptionChangeDestinationAction subscriptionChangeDestinationAction = SubscriptionChangeDestinationAction.builder()
.destination(destinationBuilder -> destinationBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for SubscriptionChangeDestinationAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for SubscriptionChangeDestinationActionbuilder
(SubscriptionChangeDestinationAction template) create builder for SubscriptionChangeDestinationAction instancedeepCopy
(SubscriptionChangeDestinationAction template) factory method to create a deep copy of SubscriptionChangeDestinationAction@NotNull @Valid Destination
New value to set.of()
factory methodof
(SubscriptionChangeDestinationAction template) factory method to create a shallow copy SubscriptionChangeDestinationActionvoid
setDestination
(Destination destination) New value to set.static com.fasterxml.jackson.core.type.TypeReference<SubscriptionChangeDestinationAction>
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
-
CHANGE_DESTINATION
discriminator value for SubscriptionChangeDestinationAction- See Also:
-
-
Method Details
-
getDestination
New value to set. Must not be empty.
- Returns:
- destination
-
setDestination
New value to set. Must not be empty.
- Parameters:
destination
- value to be set
-
of
factory method- Returns:
- instance of SubscriptionChangeDestinationAction
-
of
factory method to create a shallow copy SubscriptionChangeDestinationAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static SubscriptionChangeDestinationAction deepCopy(@Nullable SubscriptionChangeDestinationAction template) factory method to create a deep copy of SubscriptionChangeDestinationAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SubscriptionChangeDestinationAction- Returns:
- builder
-
builder
static SubscriptionChangeDestinationActionBuilder builder(SubscriptionChangeDestinationAction template) create builder for SubscriptionChangeDestinationAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSubscriptionChangeDestinationAction
default <T> T withSubscriptionChangeDestinationAction(Function<SubscriptionChangeDestinationAction, 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<SubscriptionChangeDestinationAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-