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

Contains connection settings for the load balancer.

See Also:

* AWS * API Reference

*/ class AwsElbLoadBalancerConnectionSettings { public: AWS_SECURITYHUB_API AwsElbLoadBalancerConnectionSettings(); AWS_SECURITYHUB_API AwsElbLoadBalancerConnectionSettings(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsElbLoadBalancerConnectionSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time, in seconds, that the connection can be idle (no data is 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 can be idle (no data is 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 can be idle (no data is 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 can be idle (no data is sent over * the connection) before it is closed by the load balancer.

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