public AwsWafWebAclRule withType(String type) {
        setType(type);
        return this;
    }
<p>
The rule type.
</p>
<p>
Valid values: <code>REGULAR</code> | <code>RATE_BASED</code> | <code>GROUP</code>
</p>
<p>
The default is <code>REGULAR</code>.
</p>

@param type
       The rule type.</p>
       <p>
       Valid values: <code>REGULAR</code> | <code>RATE_BASED</code> | <code>GROUP</code>
       </p>
       <p>
       The default is <code>REGULAR</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsWafWebAclRule.java