Class EventGridMqttClientSessionDisconnectedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientSessionDisconnectedEventData
public final class EventGridMqttClientSessionDisconnectedEventData
extends EventGridMqttClientEventData
Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EventGridMqttClientSessionDisconnectedEventData class. -
Method Summary
Modifier and TypeMethodDescriptionGet the clientSessionName property: Unique identifier for the MQTT client's session.Get the disconnectionReason property: Reason for the disconnection of the MQTT client's session.Get the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events.setClientAuthenticationName(String clientAuthenticationName) Set the clientAuthenticationName property: Unique identifier for the MQTT client that the client presents to the service for authentication.setClientName(String clientName) Set the clientName property: Name of the client resource in the Event Grid namespace.setClientSessionName(String clientSessionName) Set the clientSessionName property: Unique identifier for the MQTT client's session.setDisconnectionReason(EventGridMqttClientDisconnectionReason disconnectionReason) Set the disconnectionReason property: Reason for the disconnection of the MQTT client's session.setNamespaceName(String namespaceName) Set the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.setSequenceNumber(Long sequenceNumber) Set the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events.Methods inherited from class com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
getClientAuthenticationName, getClientName, getNamespaceName
-
Constructor Details
-
EventGridMqttClientSessionDisconnectedEventData
public EventGridMqttClientSessionDisconnectedEventData()Creates an instance of EventGridMqttClientSessionDisconnectedEventData class.
-
-
Method Details
-
getClientSessionName
Get the clientSessionName property: Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters.- Returns:
- the clientSessionName value.
-
setClientSessionName
public EventGridMqttClientSessionDisconnectedEventData setClientSessionName(String clientSessionName) Set the clientSessionName property: Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters.- Parameters:
clientSessionName- the clientSessionName value to set.- Returns:
- the EventGridMqttClientSessionDisconnectedEventData object itself.
-
getSequenceNumber
Get the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event.- Returns:
- the sequenceNumber value.
-
setSequenceNumber
Set the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event.- Parameters:
sequenceNumber- the sequenceNumber value to set.- Returns:
- the EventGridMqttClientSessionDisconnectedEventData object itself.
-
getDisconnectionReason
Get the disconnectionReason property: Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.- Returns:
- the disconnectionReason value.
-
setDisconnectionReason
public EventGridMqttClientSessionDisconnectedEventData setDisconnectionReason(EventGridMqttClientDisconnectionReason disconnectionReason) Set the disconnectionReason property: Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.- Parameters:
disconnectionReason- the disconnectionReason value to set.- Returns:
- the EventGridMqttClientSessionDisconnectedEventData object itself.
-
setClientAuthenticationName
public EventGridMqttClientSessionDisconnectedEventData setClientAuthenticationName(String clientAuthenticationName) Set the clientAuthenticationName property: Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters.- Overrides:
setClientAuthenticationNamein classEventGridMqttClientEventData- Parameters:
clientAuthenticationName- the clientAuthenticationName value to set.- Returns:
- the EventGridMqttClientEventData object itself.
-
setClientName
Set the clientName property: Name of the client resource in the Event Grid namespace.- Overrides:
setClientNamein classEventGridMqttClientEventData- Parameters:
clientName- the clientName value to set.- Returns:
- the EventGridMqttClientEventData object itself.
-
setNamespaceName
Set the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.- Overrides:
setNamespaceNamein classEventGridMqttClientEventData- Parameters:
namespaceName- the namespaceName value to set.- Returns:
- the EventGridMqttClientEventData object itself.
-