Enum MqttQualityOfService

java.lang.Object
java.lang.Enum<MqttQualityOfService>
software.amazon.awscdk.services.iot.actions.alpha.MqttQualityOfService
All Implemented Interfaces:
Serializable, Comparable<MqttQualityOfService>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:16.112Z") @Stability(Experimental) public enum MqttQualityOfService extends Enum<MqttQualityOfService>
(experimental) MQTT Quality of Service (QoS) indicates the level of assurance for delivery of an MQTT Message.

Example:

 TopicRule.Builder.create(this, "TopicRule")
         .sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"))
         .actions(List.of(
             IotRepublishMqttAction.Builder.create("${topic()}/republish")
                     .qualityOfService(MqttQualityOfService.AT_LEAST_ONCE)
                     .build()))
         .build();
 

See Also:
  • Enum Constant Details

    • ZERO_OR_MORE_TIMES

      @Stability(Experimental) public static final MqttQualityOfService ZERO_OR_MORE_TIMES
      (experimental) QoS level 0.

      Sent zero or more times. This level should be used for messages that are sent over reliable communication links or that can be missed without a problem.

    • AT_LEAST_ONCE

      @Stability(Experimental) public static final MqttQualityOfService AT_LEAST_ONCE
      (experimental) QoS level 1.

      Sent at least one time, and then repeatedly until a PUBACK response is received. The message is not considered complete until the sender receives a PUBACK response to indicate successful delivery.

  • Method Details

    • values

      public static MqttQualityOfService[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MqttQualityOfService valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null