/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticLoadBalancing { namespace Model { /** *

Information about the ConnectionSettings * attribute.

See Also:

AWS * API Reference

*/ class ConnectionSettings { public: AWS_ELASTICLOADBALANCING_API ConnectionSettings(); AWS_ELASTICLOADBALANCING_API ConnectionSettings(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCING_API ConnectionSettings& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The time, in seconds, that the connection is allowed to be idle (no data has * been sent over the connection) before it is closed by the load balancer.

*/ inline int GetIdleTimeout() const{ return m_idleTimeout; } /** *

The time, in seconds, that the connection is allowed to be idle (no data has * been sent over the connection) before it is closed by the load balancer.

*/ inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; } /** *

The time, in seconds, that the connection is allowed to be idle (no data has * been sent over the connection) before it is closed by the load balancer.

*/ inline void SetIdleTimeout(int value) { m_idleTimeoutHasBeenSet = true; m_idleTimeout = value; } /** *

The time, in seconds, that the connection is allowed to be idle (no data has * been sent over the connection) before it is closed by the load balancer.

*/ inline ConnectionSettings& WithIdleTimeout(int value) { SetIdleTimeout(value); return *this;} private: int m_idleTimeout; bool m_idleTimeoutHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancing } // namespace Aws