
com.azure.resourcemanager.eventgrid.models.EventSubscriptionDestination Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-eventgrid Show documentation
Show all versions of azure-resourcemanager-eventgrid Show documentation
This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2021-10-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeId;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Information about the destination for an event subscription.
*/
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
property = "endpointType",
defaultImpl = EventSubscriptionDestination.class,
visible = true)
@JsonTypeName("EventSubscriptionDestination")
@JsonSubTypes({
@JsonSubTypes.Type(name = "WebHook", value = WebhookEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "EventHub", value = EventHubEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "StorageQueue", value = StorageQueueEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "HybridConnection", value = HybridConnectionEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "ServiceBusQueue", value = ServiceBusQueueEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "ServiceBusTopic", value = ServiceBusTopicEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "AzureFunction", value = AzureFunctionEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "PartnerDestination", value = PartnerEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "MonitorAlert", value = MonitorAlertEventSubscriptionDestination.class),
@JsonSubTypes.Type(name = "NamespaceTopic", value = NamespaceTopicEventSubscriptionDestination.class) })
@Immutable
public class EventSubscriptionDestination {
/*
* Type of the endpoint for the event subscription destination.
*/
@JsonTypeId
@JsonProperty(value = "endpointType", required = true)
private EndpointType endpointType;
/**
* Creates an instance of EventSubscriptionDestination class.
*/
public EventSubscriptionDestination() {
this.endpointType = EndpointType.fromString("EventSubscriptionDestination");
}
/**
* Get the endpointType property: Type of the endpoint for the event subscription destination.
*
* @return the endpointType value.
*/
public EndpointType endpointType() {
return this.endpointType;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy