public void setPayloadFormatIndicator(String payloadFormatIndicator) {
        this.payloadFormatIndicator = payloadFormatIndicator;
    }
<p>
An <code>Enum</code> string value that indicates whether the payload is formatted as UTF-8.
</p>
<p>
Valid values are <code>UNSPECIFIED_BYTES</code> and <code>UTF8_DATA</code>.
</p>
<p>
For more information, see <a href="https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901111">
Payload Format Indicator</a> from the MQTT Version 5.0 specification.
</p>
<p>
Supports <a
href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html">substitution
templates</a>.
</p>

@param payloadFormatIndicator
       An <code>Enum</code> string value that indicates whether the payload is formatted as UTF-8.</p>
       <p>
       Valid values are <code>UNSPECIFIED_BYTES</code> and <code>UTF8_DATA</code>.
       </p>
       <p>
       For more information, see <a
       href="https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901111"> Payload Format
       Indicator</a> from the MQTT Version 5.0 specification.
       </p>
       <p>
       Supports <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html">
       substitution templates</a>.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/MqttHeaders.java