Class EventGridMqttClientCreatedOrUpdatedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
com.azure.messaging.eventgrid.systemevents.EventGridMqttClientCreatedOrUpdatedEventData
public final class EventGridMqttClientCreatedOrUpdatedEventData
extends EventGridMqttClientEventData
Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EventGridMqttClientCreatedOrUpdatedEventData class. -
Method Summary
Modifier and TypeMethodDescriptionGet the attributes property: The key-value attributes that are assigned to the client resource.Get the createdOn property: Time the client resource is created based on the provider's UTC time.getState()Get the state property: Configured state of the client.Get the updatedOn property: Time the client resource is last updated based on the provider's UTC time.setAttributes(Map<String, String> attributes) Set the attributes property: The key-value attributes that are assigned to the client resource.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.setCreatedOn(OffsetDateTime createdOn) Set the createdOn property: Time the client resource is created based on the provider's UTC time.setNamespaceName(String namespaceName) Set the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.setState(EventGridMqttClientState state) Set the state property: Configured state of the client.setUpdatedOn(OffsetDateTime updatedOn) Set the updatedOn property: Time the client resource is last updated based on the provider's UTC time.Methods inherited from class com.azure.messaging.eventgrid.systemevents.EventGridMqttClientEventData
getClientAuthenticationName, getClientName, getNamespaceName
-
Constructor Details
-
EventGridMqttClientCreatedOrUpdatedEventData
public EventGridMqttClientCreatedOrUpdatedEventData()Creates an instance of EventGridMqttClientCreatedOrUpdatedEventData class.
-
-
Method Details
-
getState
Get the state property: Configured state of the client. The value could be Enabled or Disabled.- Returns:
- the state value.
-
setState
Set the state property: Configured state of the client. The value could be Enabled or Disabled.- Parameters:
state- the state value to set.- Returns:
- the EventGridMqttClientCreatedOrUpdatedEventData object itself.
-
getCreatedOn
Get the createdOn property: Time the client resource is created based on the provider's UTC time.- Returns:
- the createdOn value.
-
setCreatedOn
Set the createdOn property: Time the client resource is created based on the provider's UTC time.- Parameters:
createdOn- the createdOn value to set.- Returns:
- the EventGridMqttClientCreatedOrUpdatedEventData object itself.
-
getUpdatedOn
Get the updatedOn property: Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property.- Returns:
- the updatedOn value.
-
setUpdatedOn
Set the updatedOn property: Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property.- Parameters:
updatedOn- the updatedOn value to set.- Returns:
- the EventGridMqttClientCreatedOrUpdatedEventData object itself.
-
getAttributes
Get the attributes property: The key-value attributes that are assigned to the client resource.- Returns:
- the attributes value.
-
setAttributes
Set the attributes property: The key-value attributes that are assigned to the client resource.- Parameters:
attributes- the attributes value to set.- Returns:
- the EventGridMqttClientCreatedOrUpdatedEventData object itself.
-
setClientAuthenticationName
public EventGridMqttClientCreatedOrUpdatedEventData 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.
-