public PathElement withKey(String key) {
        setKey(key);
        return this;
    }
<p>
Refers to a key in a JSON object.
</p>

@param key
       Refers to a key in a JSON object.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/PathElement.java