private boolean isAddToLoadBalancerSuspended(AutoScalingGroup asg) {
        List<SuspendedProcess> suspendedProcesses = asg.getSuspendedProcesses();
        for (SuspendedProcess process : suspendedProcesses) {
            if (PROP_ADD_TO_LOAD_BALANCER.equals(process.getProcessName())) {
                return true;
            }
        }
        return false;
    }
private boolean isAddToLoadBalancerSuspended ( AutoScalingGroup asg ) { List < SuspendedProcess > suspendedProcesses = asg . getSuspendedProcesses ( ) ; for ( SuspendedProcess process : suspendedProcesses ) { if ( PROP_ADD_TO_LOAD_BALANCER . equals ( process . getProcessName ( ) ) ) { return true ; } } return false ; }
Checks if the load balancer addition is disabled or not.

@param asg
- The ASG object for which the status needs to be checked
@return - true, if the load balancer addition is suspended, false
otherwise.