public UserProperty withKey(String key) {
        setKey(key);
        return this;
    }
<p>
A key to be specified in <code>UserProperty</code>.
</p>

@param key
       A key to be specified in <code>UserProperty</code>.
@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/UserProperty.java