public VisibilityConditions withKey(String key) {
        setKey(key);
        return this;
    }
<p>
The key that specifies the tag that you're using to filter the search results. It must be in the following
format: <code>Tags.&lt;key&gt;</code>.
</p>

@param key
       The key that specifies the tag that you're using to filter the search results. It must be in the following
       format: <code>Tags.&lt;key&gt;</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/VisibilityConditions.java