Interface ExtensionDestination

All Known Subinterfaces:
AWSLambdaDestination, ExtensionAWSLambdaDestination, ExtensionHttpDestination, GoogleCloudFunctionDestination, HttpDestination

public interface ExtensionDestination

Generic type for destinations.


Example to create a subtype instance using the builder pattern

     ExtensionDestination extensionDestination = ExtensionDestination.awsLambdaBuilder()
             arn("{arn}")
             accessKey("{accessKey}")
             accessSecret("{accessSecret}")
             .build()
 
  • Method Details

    • getType

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

      factory method to create a deep copy of ExtensionDestination
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • awsLambdaBuilder

      static AWSLambdaDestinationBuilder awsLambdaBuilder()
      builder for awsLambda subtype
      Returns:
      builder
    • googleCloudFunctionBuilder

      static GoogleCloudFunctionDestinationBuilder googleCloudFunctionBuilder()
      builder for googleCloudFunction subtype
      Returns:
      builder
    • httpBuilder

      static HttpDestinationBuilder httpBuilder()
      builder for http subtype
      Returns:
      builder
    • withExtensionDestination

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