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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudEventsFormatBuilderbuilder()builder factory method for CloudEventsFormatstatic CloudEventsFormatBuilderbuilder(CloudEventsFormat template) create builder for CloudEventsFormat instancecopyDeep()static CloudEventsFormatdeepCopy(CloudEventsFormat template) factory method to create a deep copy of CloudEventsFormat@NotNull Stringstatic CloudEventsFormatof()factory methodstatic CloudEventsFormatof(CloudEventsFormat template) factory method to create a shallow copy CloudEventsFormatvoidsetCloudEventsVersion(String cloudEventsVersion) set cloudEventsVersionstatic com.fasterxml.jackson.core.type.TypeReference<CloudEventsFormat>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCloudEventsFormat(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
-
copyDeep
CloudEventsFormat copyDeep()- Specified by:
copyDeepin interfaceDeliveryFormat
-
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
-