/** * <p> * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html">Configure * Cross-Zone Load Balancing</a> in the <i>Classic Load Balancers Guide</i>. * </p> * * @param crossZoneLoadBalancing * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones.</p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html" * >Configure Cross-Zone Load Balancing</a> in the <i>Classic Load Balancers Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withCrossZoneLoadBalancing(CrossZoneLoadBalancing crossZoneLoadBalancing) { setCrossZoneLoadBalancing(crossZoneLoadBalancing); return this; }
loadBalancerAttributes.setCrossZoneLoadBalancing(CrossZoneLoadBalancingStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html">Configure * Cross-Zone Load Balancing</a> in the <i>Classic Load Balancers Guide</i>. * </p> * * @param crossZoneLoadBalancing * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones.</p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html" * >Configure Cross-Zone Load Balancing</a> in the <i>Classic Load Balancers Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withCrossZoneLoadBalancing(CrossZoneLoadBalancing crossZoneLoadBalancing) { setCrossZoneLoadBalancing(crossZoneLoadBalancing); return this; }
if (context.testExpression("CrossZoneLoadBalancing", targetDepth)) { loadBalancerAttributes .setCrossZoneLoadBalancing(CrossZoneLoadBalancingStaxUnmarshaller .getInstance().unmarshall(context)); continue;
public LoadBalancerAttributes getLoadBalancerAttributes(LoadBalancerDescription sourceLoadBalancer, AmazonElasticLoadBalancing sourceClient) { LoadBalancerAttributes sourceAttributes = sourceClient.describeLoadBalancerAttributes( new DescribeLoadBalancerAttributesRequest().withLoadBalancerName(sourceLoadBalancer.getLoadBalancerName())).getLoadBalancerAttributes(); if (sourceLoadBalancer.getListenerDescriptions().stream().anyMatch(l -> l.getListener().getInstancePort() == 0)) { sourceAttributes.setCrossZoneLoadBalancing(new CrossZoneLoadBalancing().withEnabled(true)); } return sourceAttributes; }
loadBalancerAttributes.setCrossZoneLoadBalancing(CrossZoneLoadBalancingStaxUnmarshaller.getInstance().unmarshall(context)); continue;