public ListRecordHistorySearchFilter withKey(String key) {
        setKey(key);
        return this;
    }
<p>
The filter key.
</p>
<ul>
<li>
<p>
<code>product</code> - Filter results based on the specified product identifier.
</p>
</li>
<li>
<p>
<code>provisionedproduct</code> - Filter results based on the provisioned product identifier.
</p>
</li>
</ul>

@param key
       The filter key.</p>
       <ul>
       <li>
       <p>
       <code>product</code> - Filter results based on the specified product identifier.
       </p>
       </li>
       <li>
       <p>
       <code>provisionedproduct</code> - Filter results based on the provisioned product identifier.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/ListRecordHistorySearchFilter.java