Interface CloudEventsFormat
- All Superinterfaces:
DeliveryFormat
- All Known Subinterfaces:
DeliveryCloudEventsFormat
The CloudEventsFormat can be used with any Destination, and the payload is delivered in the JSON Event Format
. AzureEventGridDestination offers native support to filter and route CloudEvents.
Example to create an instance using the builder pattern
CloudEventsFormat cloudEventsFormat = CloudEventsFormat.builder()
.cloudEventsVersion("{cloudEventsVersion}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloudEventsFormatBuilder
builder()
builder factory method for CloudEventsFormatstatic CloudEventsFormatBuilder
builder
(CloudEventsFormat template) create builder for CloudEventsFormat instancestatic CloudEventsFormat
deepCopy
(CloudEventsFormat template) factory method to create a deep copy of CloudEventsFormat@NotNull String
static CloudEventsFormat
of()
factory methodstatic CloudEventsFormat
of
(CloudEventsFormat template) factory method to create a shallow copy CloudEventsFormatvoid
setCloudEventsVersion
(String cloudEventsVersion) set cloudEventsVersionstatic com.fasterxml.jackson.core.type.TypeReference<CloudEventsFormat>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCloudEventsFormat
(Function<CloudEventsFormat, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.subscription.DeliveryFormat
getType, withDeliveryFormat
-
Field Details
-
CLOUD_EVENTS
discriminator value for CloudEventsFormat- See Also:
-
-
Method Details
-
getCloudEventsVersion
- Returns:
- cloudEventsVersion
-
setCloudEventsVersion
set cloudEventsVersion- Parameters:
cloudEventsVersion
- value to be set
-
of
factory method- Returns:
- instance of CloudEventsFormat
-
of
factory method to create a shallow copy CloudEventsFormat- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CloudEventsFormat- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CloudEventsFormat- Returns:
- builder
-
builder
create builder for CloudEventsFormat instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCloudEventsFormat
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
-