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 Details

    • EventGridMqttClientCreatedOrUpdatedEventData

      public EventGridMqttClientCreatedOrUpdatedEventData()
      Creates an instance of EventGridMqttClientCreatedOrUpdatedEventData class.
  • Method Details

    • getState

      public EventGridMqttClientState 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

      public OffsetDateTime 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

      public OffsetDateTime 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

      public Map<String,String> getAttributes()
      Get the attributes property: The key-value attributes that are assigned to the client resource.
      Returns:
      the attributes value.
    • setAttributes

      public EventGridMqttClientCreatedOrUpdatedEventData setAttributes(Map<String,String> attributes)
      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:
      setClientAuthenticationName in class EventGridMqttClientEventData
      Parameters:
      clientAuthenticationName - the clientAuthenticationName value to set.
      Returns:
      the EventGridMqttClientEventData object itself.
    • setClientName

      public EventGridMqttClientCreatedOrUpdatedEventData setClientName(String clientName)
      Set the clientName property: Name of the client resource in the Event Grid namespace.
      Overrides:
      setClientName in class EventGridMqttClientEventData
      Parameters:
      clientName - the clientName value to set.
      Returns:
      the EventGridMqttClientEventData object itself.
    • setNamespaceName

      public EventGridMqttClientCreatedOrUpdatedEventData setNamespaceName(String namespaceName)
      Set the namespaceName property: Name of the Event Grid namespace where the MQTT client was created or updated.
      Overrides:
      setNamespaceName in class EventGridMqttClientEventData
      Parameters:
      namespaceName - the namespaceName value to set.
      Returns:
      the EventGridMqttClientEventData object itself.