/** * <p> * The LoadBalancers in use by this environment. * </p> * * @param loadBalancers * The LoadBalancers in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) { setLoadBalancers(loadBalancers); return this; }
/** * <p> * The LoadBalancers in use by this environment. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLoadBalancers(java.util.Collection)} or {@link #withLoadBalancers(java.util.Collection)} if you want * to override the existing values. * </p> * * @param loadBalancers * The LoadBalancers in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLoadBalancers(LoadBalancer... loadBalancers) { if (this.loadBalancers == null) { setLoadBalancers(new com.amazonaws.internal.SdkInternalList<LoadBalancer>(loadBalancers.length)); } for (LoadBalancer ele : loadBalancers) { this.loadBalancers.add(ele); } return this; }
/** * <p> * The LoadBalancers in use by this environment. * </p> * * @param loadBalancers * The LoadBalancers in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) { setLoadBalancers(loadBalancers); return this; }
/** * <p> * The LoadBalancers in use by this environment. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLoadBalancers(java.util.Collection)} or {@link #withLoadBalancers(java.util.Collection)} if you want * to override the existing values. * </p> * * @param loadBalancers * The LoadBalancers in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLoadBalancers(LoadBalancer... loadBalancers) { if (this.loadBalancers == null) { setLoadBalancers(new com.amazonaws.internal.SdkInternalList<LoadBalancer>(loadBalancers.length)); } for (LoadBalancer ele : loadBalancers) { this.loadBalancers.add(ele); } return this; }