ServiceBusActiveMessagesAvailableWithNoListenersEventData Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.ServiceBusActiveMessagesAvailableWithNoListenersEventData

Implements

public final class ServiceBusActiveMessagesAvailableWithNoListenersEventData
implements JsonSerializable<ServiceBusActiveMessagesAvailableWithNoListenersEventData>

Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners event.

Constructor Summary

Constructor Description
ServiceBusActiveMessagesAvailableWithNoListenersEventData()

Creates an instance of ServiceBusActiveMessagesAvailableWithNoListenersEventData class.

Method Summary

Modifier and Type Method and Description
static ServiceBusActiveMessagesAvailableWithNoListenersEventData fromJson(JsonReader jsonReader)

Reads an instance of ServiceBusActiveMessagesAvailableWithNoListenersEventData from the JsonReader.

String getEntityType()

Get the entityType property: The entity type of the Microsoft.ServiceBus resource.

String getNamespaceName()

Get the namespaceName property: The namespace name of the Microsoft.ServiceBus resource.

String getQueueName()

Get the queueName property: The name of the Microsoft.ServiceBus queue.

String getRequestUri()

Get the requestUri property: The endpoint of the Microsoft.ServiceBus resource.

String getSubscriptionName()

Get the subscriptionName property: The name of the Microsoft.ServiceBus topic's subscription.

String getTopicName()

Get the topicName property: The name of the Microsoft.ServiceBus topic.

ServiceBusActiveMessagesAvailableWithNoListenersEventData setEntityType(String entityType)

Set the entityType property: The entity type of the Microsoft.ServiceBus resource.

ServiceBusActiveMessagesAvailableWithNoListenersEventData setNamespaceName(String namespaceName)

Set the namespaceName property: The namespace name of the Microsoft.ServiceBus resource.

ServiceBusActiveMessagesAvailableWithNoListenersEventData setQueueName(String queueName)

Set the queueName property: The name of the Microsoft.ServiceBus queue.

ServiceBusActiveMessagesAvailableWithNoListenersEventData setRequestUri(String requestUri)

Set the requestUri property: The endpoint of the Microsoft.ServiceBus resource.

ServiceBusActiveMessagesAvailableWithNoListenersEventData setSubscriptionName(String subscriptionName)

Set the subscriptionName property: The name of the Microsoft.ServiceBus topic's subscription.

ServiceBusActiveMessagesAvailableWithNoListenersEventData setTopicName(String topicName)

Set the topicName property: The name of the Microsoft.ServiceBus topic.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ServiceBusActiveMessagesAvailableWithNoListenersEventData

public ServiceBusActiveMessagesAvailableWithNoListenersEventData()

Creates an instance of ServiceBusActiveMessagesAvailableWithNoListenersEventData class.

Method Details

fromJson

public static ServiceBusActiveMessagesAvailableWithNoListenersEventData fromJson(JsonReader jsonReader)

Reads an instance of ServiceBusActiveMessagesAvailableWithNoListenersEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServiceBusActiveMessagesAvailableWithNoListenersEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ServiceBusActiveMessagesAvailableWithNoListenersEventData.

getEntityType

public String getEntityType()

Get the entityType property: The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'.

Returns:

the entityType value.

getNamespaceName

public String getNamespaceName()

Get the namespaceName property: The namespace name of the Microsoft.ServiceBus resource.

Returns:

the namespaceName value.

getQueueName

public String 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.

getRequestUri

public String getRequestUri()

Get the requestUri property: The endpoint of the Microsoft.ServiceBus resource.

Returns:

the requestUri value.

getSubscriptionName

public String 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.

getTopicName

public String 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.

setEntityType

public ServiceBusActiveMessagesAvailableWithNoListenersEventData setEntityType(String entityType)

Set the entityType property: The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'.

Parameters:

entityType - the entityType value to set.

Returns:

the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself.

setNamespaceName

public ServiceBusActiveMessagesAvailableWithNoListenersEventData setNamespaceName(String namespaceName)

Set the namespaceName property: The namespace name of the Microsoft.ServiceBus resource.

Parameters:

namespaceName - the namespaceName value to set.

Returns:

the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself.

setQueueName

public ServiceBusActiveMessagesAvailableWithNoListenersEventData setQueueName(String queueName)

Set the queueName property: The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null.

Parameters:

queueName - the queueName value to set.

Returns:

the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself.

setRequestUri

public ServiceBusActiveMessagesAvailableWithNoListenersEventData setRequestUri(String requestUri)

Set the requestUri property: The endpoint of the Microsoft.ServiceBus resource.

Parameters:

requestUri - the requestUri value to set.

Returns:

the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself.

setSubscriptionName

public ServiceBusActiveMessagesAvailableWithNoListenersEventData setSubscriptionName(String subscriptionName)

Set 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.

Parameters:

subscriptionName - the subscriptionName value to set.

Returns:

the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself.

setTopicName

public ServiceBusActiveMessagesAvailableWithNoListenersEventData setTopicName(String topicName)

Set the topicName property: The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null.

Parameters:

topicName - the topicName value to set.

Returns:

the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to