Interface Mqtt5PubCompBuilder
Builder for a
Mqtt5PubComp.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull Mqtt5PubCompReasonCode@NotNull Mqtt5PubCompBuilderreasonString(@Nullable MqttUtf8String reasonString) Set the optionalReason String.@NotNull Mqtt5PubCompBuilderreasonString(@Nullable String reasonString) Set the optionalReason String.@NotNull Mqtt5UserPropertiesBuilder.Nested<? extends Mqtt5PubCompBuilder> Fluent counterpart ofuserProperties(Mqtt5UserProperties).@NotNull Mqtt5PubCompBuilderuserProperties(@NotNull Mqtt5UserProperties userProperties) Sets theUser Properties.
-
Method Details
-
reasonString
Set the optionalReason String.- Parameters:
reasonString- the Reason String ornullto remove any previously set Reason String.- Returns:
- the builder.
-
reasonString
Set the optionalReason String.- Parameters:
reasonString- the Reason String ornullto remove any previously set Reason String.- Returns:
- the builder.
-
userProperties
@NotNull @NotNull Mqtt5PubCompBuilder userProperties(@NotNull @NotNull Mqtt5UserProperties userProperties) Sets theUser Properties.- Parameters:
userProperties- the User Properties.- Returns:
- the builder.
-
userProperties
@CheckReturnValue @NotNull Mqtt5UserPropertiesBuilder.Nested<? extends Mqtt5PubCompBuilder> userProperties()Fluent counterpart ofuserProperties(Mqtt5UserProperties).Calling
Mqtt5UserPropertiesBuilder.Nested.applyUserProperties()on the returned builder has the effect ofextendingthe current User Properties.- Returns:
- the fluent builder for the User Properties.
- See Also:
-
getReasonCode
- Returns:
- the Reason Code of the PubComp message.
-