public SearchResourcesSimpleCriterion withKey(SearchResourcesSimpleCriterionKey key) {
        this.key = key.toString();
        return this;
    }
<p>
The property to use in the condition.
</p>

@param key
       The property to use in the condition.
@return Returns a reference to this object so that method calls can be chained together.
@see SearchResourcesSimpleCriterionKey
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/SearchResourcesSimpleCriterion.java