/** * <p> * One or more load balancers associated with the group. * </p> * * @param loadBalancerNames * One or more load balancers associated with the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingGroup withLoadBalancerNames(java.util.Collection<String> loadBalancerNames) { setLoadBalancerNames(loadBalancerNames); return this; }
/** * <p> * One or more load balancers associated with the group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLoadBalancerNames(java.util.Collection)} or {@link #withLoadBalancerNames(java.util.Collection)} if * you want to override the existing values. * </p> * * @param loadBalancerNames * One or more load balancers associated with the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingGroup withLoadBalancerNames(String... loadBalancerNames) { if (this.loadBalancerNames == null) { setLoadBalancerNames(new com.amazonaws.internal.SdkInternalList<String>(loadBalancerNames.length)); } for (String ele : loadBalancerNames) { this.loadBalancerNames.add(ele); } return this; }
/** * <p> * One or more load balancers associated with the group. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param loadBalancerNames <p> * One or more load balancers associated with the group. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public AutoScalingGroup withLoadBalancerNames(java.util.Collection<String> loadBalancerNames) { setLoadBalancerNames(loadBalancerNames); return this; }