public void setAlarmSpecification(AlarmSpecification alarmSpecification) {
        this.alarmSpecification = alarmSpecification;
    }
<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.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/RefreshPreferences.java