public Condition withType(String type) {
        setType(type);
        return this;
    }
<p>
Specifies the type of condition. Currently the only supported value is <code>StringEquals</code>.
</p>

@param type
       Specifies the type of condition. Currently the only supported value is <code>StringEquals</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/Condition.java