/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The attributes for a load balancer.See Also:
AWS
* API Reference
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.
*/ inline const CrossZoneLoadBalancing& GetCrossZoneLoadBalancing() const{ return m_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.
*/ inline bool CrossZoneLoadBalancingHasBeenSet() const { return m_crossZoneLoadBalancingHasBeenSet; } /** *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.
*/ inline void SetCrossZoneLoadBalancing(const CrossZoneLoadBalancing& value) { m_crossZoneLoadBalancingHasBeenSet = true; m_crossZoneLoadBalancing = value; } /** *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.
*/ inline void SetCrossZoneLoadBalancing(CrossZoneLoadBalancing&& value) { m_crossZoneLoadBalancingHasBeenSet = true; m_crossZoneLoadBalancing = std::move(value); } /** *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.
*/ inline LoadBalancerAttributes& WithCrossZoneLoadBalancing(const CrossZoneLoadBalancing& value) { SetCrossZoneLoadBalancing(value); return *this;} /** *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.
*/ inline LoadBalancerAttributes& WithCrossZoneLoadBalancing(CrossZoneLoadBalancing&& value) { SetCrossZoneLoadBalancing(std::move(value)); 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.
*/ inline const AccessLog& GetAccessLog() const{ return m_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.
*/ inline bool AccessLogHasBeenSet() const { return m_accessLogHasBeenSet; } /** *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.
*/ inline void SetAccessLog(const AccessLog& value) { m_accessLogHasBeenSet = true; m_accessLog = value; } /** *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.
*/ inline void SetAccessLog(AccessLog&& value) { m_accessLogHasBeenSet = true; m_accessLog = std::move(value); } /** *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.
*/ inline LoadBalancerAttributes& WithAccessLog(const AccessLog& value) { SetAccessLog(value); 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.
*/ inline LoadBalancerAttributes& WithAccessLog(AccessLog&& value) { SetAccessLog(std::move(value)); 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.
*/ inline const ConnectionDraining& GetConnectionDraining() const{ return m_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.
*/ inline bool ConnectionDrainingHasBeenSet() const { return m_connectionDrainingHasBeenSet; } /** *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.
*/ inline void SetConnectionDraining(const ConnectionDraining& value) { m_connectionDrainingHasBeenSet = true; m_connectionDraining = value; } /** *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.
*/ inline void SetConnectionDraining(ConnectionDraining&& value) { m_connectionDrainingHasBeenSet = true; m_connectionDraining = std::move(value); } /** *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.
*/ inline LoadBalancerAttributes& WithConnectionDraining(const ConnectionDraining& value) { SetConnectionDraining(value); 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.
*/ inline LoadBalancerAttributes& WithConnectionDraining(ConnectionDraining&& value) { SetConnectionDraining(std::move(value)); 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.
*/ inline const ConnectionSettings& GetConnectionSettings() const{ return m_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.
*/ inline bool ConnectionSettingsHasBeenSet() const { return m_connectionSettingsHasBeenSet; } /** *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.
*/ inline void SetConnectionSettings(const ConnectionSettings& value) { m_connectionSettingsHasBeenSet = true; m_connectionSettings = value; } /** *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.
*/ inline void SetConnectionSettings(ConnectionSettings&& value) { m_connectionSettingsHasBeenSet = true; m_connectionSettings = std::move(value); } /** *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.
*/ inline LoadBalancerAttributes& WithConnectionSettings(const ConnectionSettings& value) { SetConnectionSettings(value); 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.
*/ inline LoadBalancerAttributes& WithConnectionSettings(ConnectionSettings&& value) { SetConnectionSettings(std::move(value)); return *this;} /** *Any additional attributes.
*/ inline const Aws::VectorAny additional attributes.
*/ inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; } /** *Any additional attributes.
*/ inline void SetAdditionalAttributes(const Aws::VectorAny additional attributes.
*/ inline void SetAdditionalAttributes(Aws::VectorAny additional attributes.
*/ inline LoadBalancerAttributes& WithAdditionalAttributes(const Aws::VectorAny additional attributes.
*/ inline LoadBalancerAttributes& WithAdditionalAttributes(Aws::VectorAny additional attributes.
*/ inline LoadBalancerAttributes& AddAdditionalAttributes(const AdditionalAttribute& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(value); return *this; } /** *Any additional attributes.
*/ inline LoadBalancerAttributes& AddAdditionalAttributes(AdditionalAttribute&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(std::move(value)); return *this; } private: CrossZoneLoadBalancing m_crossZoneLoadBalancing; bool m_crossZoneLoadBalancingHasBeenSet = false; AccessLog m_accessLog; bool m_accessLogHasBeenSet = false; ConnectionDraining m_connectionDraining; bool m_connectionDrainingHasBeenSet = false; ConnectionSettings m_connectionSettings; bool m_connectionSettingsHasBeenSet = false; Aws::Vector