Class ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData>
public final class ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData
extends Object
implements com.azure.json.JsonSerializable<ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData>
Schema of the Data property of an EventGridEvent for a
Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications event.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData from the JsonReader.Get the entityType property: The entity type of the Microsoft.ServiceBus resource.Get the namespaceName property: The namespace name of the Microsoft.ServiceBus resource.Get the queueName property: The name of the Microsoft.ServiceBus queue.Get the requestUri property: The endpoint of the Microsoft.ServiceBus resource.Get the subscriptionName property: The name of the Microsoft.ServiceBus topic's subscription.Get the topicName property: The name of the Microsoft.ServiceBus topic.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getNamespaceName
Get the namespaceName property: The namespace name of the Microsoft.ServiceBus resource.- Returns:
- the namespaceName value.
-
getRequestUri
Get the requestUri property: The endpoint of the Microsoft.ServiceBus resource.- Returns:
- the requestUri value.
-
getEntityType
Get the entityType property: The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'.- Returns:
- the entityType value.
-
getQueueName
Get the queueName property: The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.- Returns:
- the queueName value.
-
getTopicName
Get the topicName property: The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.- Returns:
- the topicName value.
-
getSubscriptionName
Get the subscriptionName property: The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null.- Returns:
- the subscriptionName value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData>- Throws:
IOException
-
fromJson
public static ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.
-