public Filter withKey(FilterNameStringType key) {
        this.key = key.toString();
        return this;
    }
<p>
The following are keys you can use:
</p>
<ul>
<li>
<p>
<b>description</b>: Prefix match, not case-sensitive.
</p>
</li>
<li>
<p>
<b>name</b>: Prefix match, case-sensitive.
</p>
</li>
<li>
<p>
<b>tag-key</b>: Prefix match, case-sensitive.
</p>
</li>
<li>
<p>
<b>tag-value</b>: Prefix match, case-sensitive.
</p>
</li>
<li>
<p>
<b>primary-region</b>: Prefix match, case-sensitive.
</p>
</li>
<li>
<p>
<b>owning-service</b>: Prefix match, case-sensitive.
</p>
</li>
<li>
<p>
<b>all</b>: Breaks the filter value string into words and then searches all attributes for matches. Not
case-sensitive.
</p>
</li>
</ul>

@param key
       The following are keys you can use:</p>
       <ul>
       <li>
       <p>
       <b>description</b>: Prefix match, not case-sensitive.
       </p>
       </li>
       <li>
       <p>
       <b>name</b>: Prefix match, case-sensitive.
       </p>
       </li>
       <li>
       <p>
       <b>tag-key</b>: Prefix match, case-sensitive.
       </p>
       </li>
       <li>
       <p>
       <b>tag-value</b>: Prefix match, case-sensitive.
       </p>
       </li>
       <li>
       <p>
       <b>primary-region</b>: Prefix match, case-sensitive.
       </p>
       </li>
       <li>
       <p>
       <b>owning-service</b>: Prefix match, case-sensitive.
       </p>
       </li>
       <li>
       <p>
       <b>all</b>: Breaks the filter value string into words and then searches all attributes for matches. Not
       case-sensitive.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see FilterNameStringType
aws-java-sdk-secretsmanager/src/main/java/com/amazonaws/services/secretsmanager/model/Filter.java