/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elasticloadbalancing.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* The attributes for a load balancer. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LoadBalancerAttributes implements Serializable, Cloneable { /** ** If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. *
** For more information, see Configure * Cross-Zone Load Balancing in the Classic Load Balancers Guide. *
*/ private CrossZoneLoadBalancing crossZoneLoadBalancing; /** ** If enabled, the load balancer captures detailed information of all requests and delivers the information to the * Amazon S3 bucket that you specify. *
** For more information, see Enable Access * Logs in the Classic Load Balancers Guide. *
*/ private AccessLog accessLog; /** ** If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away * from a deregistered or unhealthy instance. *
** For more information, see Configure * Connection Draining in the Classic Load Balancers Guide. *
*/ private ConnectionDraining connectionDraining; /** ** If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the * specified duration. *
** By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end * connections of your load balancer. For more information, see Configure Idle * Connection Timeout in the Classic Load Balancers Guide. *
*/ private ConnectionSettings connectionSettings; /** ** Any additional attributes. *
*/ private com.amazonaws.internal.SdkInternalList* If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. *
** For more information, see Configure * Cross-Zone Load Balancing in the Classic Load Balancers Guide. *
* * @param crossZoneLoadBalancing * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. ** For more information, see Configure Cross-Zone Load Balancing in the Classic Load Balancers Guide. */ public void setCrossZoneLoadBalancing(CrossZoneLoadBalancing crossZoneLoadBalancing) { this.crossZoneLoadBalancing = crossZoneLoadBalancing; } /** *
* If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. *
** For more information, see Configure * Cross-Zone Load Balancing in the Classic Load Balancers Guide. *
* * @return If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. ** For more information, see Configure Cross-Zone Load Balancing in the Classic Load Balancers Guide. */ public CrossZoneLoadBalancing getCrossZoneLoadBalancing() { return this.crossZoneLoadBalancing; } /** *
* If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. *
** For more information, see Configure * Cross-Zone Load Balancing in the Classic Load Balancers Guide. *
* * @param crossZoneLoadBalancing * If enabled, the load balancer routes the request traffic evenly across all instances regardless of the * Availability Zones. ** For more information, see Configure Cross-Zone Load Balancing in the Classic Load Balancers Guide. * @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 enabled, the load balancer captures detailed information of all requests and delivers the information to the * Amazon S3 bucket that you specify. *
** For more information, see Enable Access * Logs in the Classic Load Balancers Guide. *
* * @param accessLog * If enabled, the load balancer captures detailed information of all requests and delivers the information * to the Amazon S3 bucket that you specify. ** For more information, see Enable * Access Logs in the Classic Load Balancers Guide. */ public void setAccessLog(AccessLog accessLog) { this.accessLog = accessLog; } /** *
* If enabled, the load balancer captures detailed information of all requests and delivers the information to the * Amazon S3 bucket that you specify. *
** For more information, see Enable Access * Logs in the Classic Load Balancers Guide. *
* * @return If enabled, the load balancer captures detailed information of all requests and delivers the information * to the Amazon S3 bucket that you specify. ** For more information, see Enable * Access Logs in the Classic Load Balancers Guide. */ public AccessLog getAccessLog() { return this.accessLog; } /** *
* If enabled, the load balancer captures detailed information of all requests and delivers the information to the * Amazon S3 bucket that you specify. *
** For more information, see Enable Access * Logs in the Classic Load Balancers Guide. *
* * @param accessLog * If enabled, the load balancer captures detailed information of all requests and delivers the information * to the Amazon S3 bucket that you specify. ** For more information, see Enable * Access Logs in the Classic Load Balancers Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withAccessLog(AccessLog accessLog) { setAccessLog(accessLog); return this; } /** *
* If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away * from a deregistered or unhealthy instance. *
** For more information, see Configure * Connection Draining in the Classic Load Balancers Guide. *
* * @param connectionDraining * If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic * away from a deregistered or unhealthy instance. ** For more information, see Configure * Connection Draining in the Classic Load Balancers Guide. */ public void setConnectionDraining(ConnectionDraining connectionDraining) { this.connectionDraining = connectionDraining; } /** *
* If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away * from a deregistered or unhealthy instance. *
** For more information, see Configure * Connection Draining in the Classic Load Balancers Guide. *
* * @return If enabled, the load balancer allows existing requests to complete before the load balancer shifts * traffic away from a deregistered or unhealthy instance. ** For more information, see Configure * Connection Draining in the Classic Load Balancers Guide. */ public ConnectionDraining getConnectionDraining() { return this.connectionDraining; } /** *
* If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away * from a deregistered or unhealthy instance. *
** For more information, see Configure * Connection Draining in the Classic Load Balancers Guide. *
* * @param connectionDraining * If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic * away from a deregistered or unhealthy instance. ** For more information, see Configure * Connection Draining in the Classic Load Balancers Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withConnectionDraining(ConnectionDraining connectionDraining) { setConnectionDraining(connectionDraining); return this; } /** *
* If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the * specified duration. *
** By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end * connections of your load balancer. For more information, see Configure Idle * Connection Timeout in the Classic Load Balancers Guide. *
* * @param connectionSettings * If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) * for the specified duration. ** By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and * back-end connections of your load balancer. For more information, see Configure * Idle Connection Timeout in the Classic Load Balancers Guide. */ public void setConnectionSettings(ConnectionSettings connectionSettings) { this.connectionSettings = connectionSettings; } /** *
* If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the * specified duration. *
** By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end * connections of your load balancer. For more information, see Configure Idle * Connection Timeout in the Classic Load Balancers Guide. *
* * @return If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) * for the specified duration. ** By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and * back-end connections of your load balancer. For more information, see Configure * Idle Connection Timeout in the Classic Load Balancers Guide. */ public ConnectionSettings getConnectionSettings() { return this.connectionSettings; } /** *
* If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the * specified duration. *
** By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end * connections of your load balancer. For more information, see Configure Idle * Connection Timeout in the Classic Load Balancers Guide. *
* * @param connectionSettings * If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) * for the specified duration. ** By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and * back-end connections of your load balancer. For more information, see Configure * Idle Connection Timeout in the Classic Load Balancers Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withConnectionSettings(ConnectionSettings connectionSettings) { setConnectionSettings(connectionSettings); return this; } /** *
* Any additional attributes. *
* * @return Any additional attributes. */ public java.util.List* Any additional attributes. *
* * @param additionalAttributes * Any additional attributes. */ public void setAdditionalAttributes(java.util.Collection* Any additional attributes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdditionalAttributes(java.util.Collection)} or {@link #withAdditionalAttributes(java.util.Collection)} * if you want to override the existing values. *
* * @param additionalAttributes * Any additional attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withAdditionalAttributes(AdditionalAttribute... additionalAttributes) { if (this.additionalAttributes == null) { setAdditionalAttributes(new com.amazonaws.internal.SdkInternalList* Any additional attributes. *
* * @param additionalAttributes * Any additional attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public LoadBalancerAttributes withAdditionalAttributes(java.util.Collection