public void setUserProperties(java.util.Collection<UserProperty> userProperties) {
        if (userProperties == null) {
            this.userProperties = null;
            return;
        }

        this.userProperties = new java.util.ArrayList<UserProperty>(userProperties);
    }
<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.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/MqttHeaders.java