public MqttHeaders withUserProperties(java.util.Collection<UserProperty> userProperties) {
        setUserProperties(userProperties);
        return this;
    }
<p>
An array of key-value pairs that you define in the MQTT5 header.
</p>

@param userProperties
       An array of key-value pairs that you define in the MQTT5 header.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/MqttHeaders.java