Interface AzureEventGridDestination

All Superinterfaces:
Destination

public interface AzureEventGridDestination extends Destination

Azure Event Grid can be used to push messages to Azure Functions, HTTP endpoints (webhooks), and several other Azure tools. Event Grid can only be used with the CloudEventsFormat. To set up a Subscription with Azure Event Grid, first create a topic in the Azure Portal. To allow Composable Commerce to push messages to your topic, provide an access key.


Example to create an instance using the builder pattern

     AzureEventGridDestination azureEventGridDestination = AzureEventGridDestination.builder()
             .uri("{uri}")
             .accessKey("{accessKey}")
             .build()
 
  • Field Details

  • Method Details

    • getUri

      @NotNull @NotNull String getUri()

      URI of the topic.

      Returns:
      uri
    • getAccessKey

      @NotNull @NotNull String getAccessKey()

      Partially hidden on retrieval for security reasons.

      Returns:
      accessKey
    • setUri

      void setUri(String uri)

      URI of the topic.

      Parameters:
      uri - value to be set
    • setAccessKey

      void setAccessKey(String accessKey)

      Partially hidden on retrieval for security reasons.

      Parameters:
      accessKey - value to be set
    • of

      factory method
      Returns:
      instance of AzureEventGridDestination
    • of

      factory method to create a shallow copy AzureEventGridDestination
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      builder factory method for AzureEventGridDestination
      Returns:
      builder
    • builder

      create builder for AzureEventGridDestination instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAzureEventGridDestination

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