Lezen in het Engels

Delen via


EventGridMqttClientSessionDisconnectedEventData Class

public final class EventGridMqttClientSessionDisconnectedEventData
extends EventGridMqttClientEventData

Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.

Constructor Summary

Constructor Description
EventGridMqttClientSessionDisconnectedEventData()

Creates an instance of EventGridMqttClientSessionDisconnectedEventData class.

Method Summary

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

Reads an instance of EventGridMqttClientSessionDisconnectedEventData from the JsonReader.

String getClientSessionName()

Get the clientSessionName property: Unique identifier for the MQTT client's session.

EventGridMqttClientDisconnectionReason getDisconnectionReason()

Get the disconnectionReason property: Reason for the disconnection of the MQTT client's session.

Long getSequenceNumber()

Get the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events.

EventGridMqttClientSessionDisconnectedEventData setClientAuthenticationName(String clientAuthenticationName)

Set the clientAuthenticationName property: Unique identifier for the MQTT client that the client presents to the service for authentication.

EventGridMqttClientSessionDisconnectedEventData setClientName(String clientName)

Set the clientName property: Name of the client resource in the Event Grid namespace.

EventGridMqttClientSessionDisconnectedEventData setClientSessionName(String clientSessionName)

Set the clientSessionName property: Unique identifier for the MQTT client's session.

EventGridMqttClientSessionDisconnectedEventData setDisconnectionReason(EventGridMqttClientDisconnectionReason disconnectionReason)

Set the disconnectionReason property: Reason for the disconnection of the MQTT client's session.

EventGridMqttClientSessionDisconnectedEventData setNamespaceName(String namespaceName)

Set the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.

EventGridMqttClientSessionDisconnectedEventData setSequenceNumber(Long sequenceNumber)

Set the sequenceNumber property: A number that helps indicate order of MQTT client session connected or disconnected events.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from EventGridMqttClientEventData

Methods inherited from java.lang.Object

Constructor Details

EventGridMqttClientSessionDisconnectedEventData

public EventGridMqttClientSessionDisconnectedEventData()

Creates an instance of EventGridMqttClientSessionDisconnectedEventData class.

Method Details

fromJson

public static EventGridMqttClientSessionDisconnectedEventData fromJson(JsonReader jsonReader)

Reads an instance of EventGridMqttClientSessionDisconnectedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EventGridMqttClientSessionDisconnectedEventData 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 EventGridMqttClientSessionDisconnectedEventData.

getClientSessionName

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

getDisconnectionReason

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

getSequenceNumber

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

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:

EventGridMqttClientSessionDisconnectedEventData.setClientAuthenticationName(String clientAuthenticationName)

Parameters:

clientAuthenticationName

setClientName

public EventGridMqttClientSessionDisconnectedEventData setClientName(String clientName)

Set the clientName property: Name of the client resource in the Event Grid namespace.

Overrides:

EventGridMqttClientSessionDisconnectedEventData.setClientName(String clientName)

Parameters:

clientName

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.

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.

setNamespaceName

public EventGridMqttClientSessionDisconnectedEventData setNamespaceName(String namespaceName)

Set the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.

Overrides:

EventGridMqttClientSessionDisconnectedEventData.setNamespaceName(String namespaceName)

Parameters:

namespaceName

setSequenceNumber

public EventGridMqttClientSessionDisconnectedEventData setSequenceNumber(Long sequenceNumber)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

EventGridMqttClientSessionDisconnectedEventData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest