public static interface PublishRequest.Builder extends IotDataPlaneRequest.Builder, SdkPojo, CopyableBuilder<PublishRequest.Builder,PublishRequest>
| Modifier and Type | Method and Description |
|---|---|
PublishRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PublishRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PublishRequest.Builder |
payload(SdkBytes payload)
The message body.
|
PublishRequest.Builder |
qos(Integer qos)
The Quality of Service (QoS) level.
|
PublishRequest.Builder |
retain(Boolean retain)
A Boolean value that determines whether to set the RETAIN flag when the message is published.
|
PublishRequest.Builder |
topic(String topic)
The name of the MQTT topic.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPublishRequest.Builder topic(String topic)
The name of the MQTT topic.
topic - The name of the MQTT topic.PublishRequest.Builder qos(Integer qos)
The Quality of Service (QoS) level.
qos - The Quality of Service (QoS) level.PublishRequest.Builder retain(Boolean retain)
A Boolean value that determines whether to set the RETAIN flag when the message is published.
Setting the RETAIN flag causes the message to be retained and sent to new subscribers to the topic.
Valid values: true | false
Default value: false
retain - A Boolean value that determines whether to set the RETAIN flag when the message is published.
Setting the RETAIN flag causes the message to be retained and sent to new subscribers to the topic.
Valid values: true | false
Default value: false
PublishRequest.Builder payload(SdkBytes payload)
The message body. MQTT accepts text, binary, and empty (null) message payloads.
Publishing an empty (null) payload with retain = true deletes the retained message
identified by topic from Amazon Web Services IoT Core.
payload - The message body. MQTT accepts text, binary, and empty (null) message payloads.
Publishing an empty (null) payload with retain = true deletes the retained message
identified by topic from Amazon Web Services IoT Core.
PublishRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPublishRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.