public CompositeAlarm withAlarmRule(String alarmRule) {
        setAlarmRule(alarmRule);
        return this;
    }
<p>
The rule that this alarm uses to evaluate its alarm state.
</p>

@param alarmRule
       The rule that this alarm uses to evaluate its alarm state.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/CompositeAlarm.java