public CreateReceiptRuleRequest withRule(ReceiptRule rule) {
        setRule(rule);
        return this;
    }
<p>
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan
status, and TLS policy.
</p>

@param rule
       A data structure that contains the specified rule's name, actions, recipients, domains, enabled status,
       scan status, and TLS policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/model/CreateReceiptRuleRequest.java