public class MqttPubCompBuilder extends java.lang.Object implements Mqtt5PubCompBuilder
Constructor and Description |
---|
MqttPubCompBuilder(@NotNull MqttPubRel pubRel) |
Modifier and Type | Method and Description |
---|---|
@NotNull MqttPubComp |
build() |
@NotNull MqttPubRel |
getPubRel() |
@NotNull Mqtt5PubCompReasonCode |
getReasonCode() |
@NotNull MqttPubCompBuilder |
reasonCode(@NotNull Mqtt5PubCompReasonCode reasonCode) |
@NotNull MqttPubCompBuilder |
reasonString(@Nullable MqttUtf8String reasonString)
Set the optional
Reason String . |
@NotNull MqttPubCompBuilder |
reasonString(@Nullable java.lang.String reasonString)
Set the optional
Reason String . |
MqttUserPropertiesImplBuilder.Nested<MqttPubCompBuilder> |
userProperties()
Fluent counterpart of
Mqtt5PubCompBuilder.userProperties(Mqtt5UserProperties) . |
@NotNull MqttPubCompBuilder |
userProperties(@Nullable Mqtt5UserProperties userProperties)
Sets the
User Properties . |
public MqttPubCompBuilder(@NotNull @NotNull MqttPubRel pubRel)
@NotNull public @NotNull MqttPubCompBuilder reasonCode(@NotNull @NotNull Mqtt5PubCompReasonCode reasonCode)
@NotNull public @NotNull MqttPubCompBuilder reasonString(@Nullable @Nullable java.lang.String reasonString)
Mqtt5PubCompBuilder
Reason String
.reasonString
in interface Mqtt5PubCompBuilder
reasonString
- the Reason String or null
to remove any previously set Reason String.@NotNull public @NotNull MqttPubCompBuilder reasonString(@Nullable @Nullable MqttUtf8String reasonString)
Mqtt5PubCompBuilder
Reason String
.reasonString
in interface Mqtt5PubCompBuilder
reasonString
- the Reason String or null
to remove any previously set Reason String.@NotNull public @NotNull MqttPubCompBuilder userProperties(@Nullable @Nullable Mqtt5UserProperties userProperties)
Mqtt5PubCompBuilder
User Properties
.userProperties
in interface Mqtt5PubCompBuilder
userProperties
- the User Properties.@NotNull public MqttUserPropertiesImplBuilder.Nested<MqttPubCompBuilder> userProperties()
Mqtt5PubCompBuilder
Mqtt5PubCompBuilder.userProperties(Mqtt5UserProperties)
.
Calling Mqtt5UserPropertiesBuilder.Nested#applyUserProperties()
on the returned builder has the effect of
extending
the current User Properties.
userProperties
in interface Mqtt5PubCompBuilder
Mqtt5PubCompBuilder.userProperties(Mqtt5UserProperties)
@NotNull public @NotNull Mqtt5PubCompReasonCode getReasonCode()
getReasonCode
in interface Mqtt5PubCompBuilder
@NotNull public @NotNull MqttPubRel getPubRel()
@NotNull public @NotNull MqttPubComp build()