Enum MqttQualityOfService
java.lang.Object
java.lang.Enum<MqttQualityOfService>
software.amazon.awscdk.services.iot.actions.MqttQualityOfService
- All Implemented Interfaces:
Serializable
,Comparable<MqttQualityOfService>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.000Z")
@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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) QoS level 1.(experimental) QoS level 0. -
Method Summary
Modifier and TypeMethodDescriptionstatic MqttQualityOfService
Returns the enum constant of this type with the specified name.static MqttQualityOfService[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
(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
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
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 nameNullPointerException
- if the argument is null
-