public RefreshPreferences withAlarmSpecification(AlarmSpecification alarmSpecification) {
        setAlarmSpecification(alarmSpecification);
        return this;
    }
<p>
(Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and fail the
operation if an alarm threshold is met.
</p>

@param alarmSpecification
       (Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and
       fail the operation if an alarm threshold is met.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/RefreshPreferences.java