Interface DeliveryFormat
- All Known Subinterfaces:
CloudEventsFormat
,DeliveryCloudEventsFormat
,DeliveryPlatformFormat
,PlatformFormat
public interface DeliveryFormat
DeliveryFormat
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
DeliveryFormat deliveryFormat = DeliveryFormat.cloudEventsBuilder()
cloudEventsVersion("{cloudEventsVersion}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloudEventsFormatBuilder
builder for cloudEvents subtypestatic DeliveryFormat
deepCopy
(DeliveryFormat template) factory method to create a deep copy of DeliveryFormat@NotNull String
getType()
static PlatformFormatBuilder
builder for platform subtypestatic com.fasterxml.jackson.core.type.TypeReference<DeliveryFormat>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDeliveryFormat
(Function<DeliveryFormat, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
deepCopy
factory method to create a deep copy of DeliveryFormat- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
cloudEventsBuilder
builder for cloudEvents subtype- Returns:
- builder
-
platformBuilder
builder for platform subtype- Returns:
- builder
-
withDeliveryFormat
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
-