public Rule withManagedBy(String managedBy) {
        setManagedBy(managedBy);
        return this;
    }
<p>
If the rule was created on behalf of your account by an Amazon Web Services service, this field displays the
principal name of the service that created the rule.
</p>

@param managedBy
       If the rule was created on behalf of your account by an Amazon Web Services service, this field displays
       the principal name of the service that created the rule.
@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/Rule.java