Interface DeliveryFormat

All Known Subinterfaces:
CloudEventsFormat, DeliveryCloudEventsFormat, DeliveryPlatformFormat, PlatformFormat

public interface DeliveryFormat
DeliveryFormat
Example to create a subtype instance using the builder pattern

     DeliveryFormat deliveryFormat = DeliveryFormat.cloudEventsBuilder()
             cloudEventsVersion("{cloudEventsVersion}")
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • deepCopy

      @Nullable static DeliveryFormat deepCopy(@Nullable DeliveryFormat template)
      factory method to create a deep copy of DeliveryFormat
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • cloudEventsBuilder

      static CloudEventsFormatBuilder cloudEventsBuilder()
      builder for cloudEvents subtype
      Returns:
      builder
    • platformBuilder

      static PlatformFormatBuilder platformBuilder()
      builder for platform subtype
      Returns:
      builder
    • withDeliveryFormat

      default <T> T withDeliveryFormat(Function<DeliveryFormat,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<DeliveryFormat> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference