Interface AzureEventGridDestination
- All Superinterfaces:
Destination
Azure Event Grid can be used to push notifications 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 notifications 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 Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AzureEventGridDestination -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AzureEventGridDestinationbuilder
(AzureEventGridDestination template) create builder for AzureEventGridDestination instancestatic AzureEventGridDestination
deepCopy
(AzureEventGridDestination template) factory method to create a deep copy of AzureEventGridDestination@NotNull String
Partially hidden on retrieval for security reasons.@NotNull String
getUri()
URI of the topic.static AzureEventGridDestination
of()
factory methodstatic AzureEventGridDestination
of
(AzureEventGridDestination template) factory method to create a shallow copy AzureEventGridDestinationvoid
setAccessKey
(String accessKey) Partially hidden on retrieval for security reasons.void
URI of the topic.static com.fasterxml.jackson.core.type.TypeReference<AzureEventGridDestination>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.subscription.Destination
getType, withDestination
-
Field Details
-
EVENT_GRID
discriminator value for AzureEventGridDestination- See Also:
-
-
Method Details
-
getUri
URI of the topic.
- Returns:
- uri
-
getAccessKey
Partially hidden on retrieval for security reasons.
- Returns:
- accessKey
-
setUri
URI of the topic.
- Parameters:
uri
- value to be set
-
setAccessKey
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
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
-