public PatchFilter withKey(String key) {
        setKey(key);
        return this;
    }
<p>
The key for the filter.
</p>
<p>
Run the <a>DescribePatchProperties</a> command to view lists of valid keys for each operating system type.
</p>

@param key
       The key for the filter.</p>
       <p>
       Run the <a>DescribePatchProperties</a> command to view lists of valid keys for each operating system type.
@return Returns a reference to this object so that method calls can be chained together.
@see PatchFilterKey
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/PatchFilter.java