Builder

class Builder

Properties

Link copied to clipboard

The unique identifier of the MQTT client to send the message to.

Link copied to clipboard

A Boolean value that specifies whether to wait for delivery confirmation from the receiving client.

Link copied to clipboard

The MQTT5 content type property forwarded to the receiving client (for example, application/json).

Link copied to clipboard

The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it's received. correlationData is an HTTP header value in the API.

Link copied to clipboard

The message body. MQTT accepts text, binary, and empty (null) message payloads.

Link copied to clipboard

An Enum string value that indicates whether the payload is formatted as UTF-8. payloadFormatIndicator is an HTTP header value in the API.

Link copied to clipboard

A UTF-8 encoded string that's used as the topic name for a response message. The response topic describes the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters. For more information, see Amazon Web Services IoT Core message broker and protocol limits and quotas.

Link copied to clipboard
var timeout: Int?

An integer that represents the maximum time, in seconds, to wait for a delivery confirmation (PUBACK) from the receiving client after the message has been delivered. This parameter is only used when confirmation is set to true. If confirmation is false, this parameter is ignored.

Link copied to clipboard

The topic of the outbound MQTT Publish message to the receiving client. For more information, see Amazon Web Services IoT Core message broker and protocol limits and quotas.

Link copied to clipboard

A JSON string that contains an array of JSON objects. If you don't use Amazon Web Services SDK or CLI, you must encode the JSON string to base64 format before adding it to the HTTP header. userProperties is an HTTP header value in the API.