/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the ConnectionDraining
* attribute.See Also:
AWS
* API Reference
Specifies whether connection draining is enabled for the load balancer.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Specifies whether connection draining is enabled for the load balancer.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Specifies whether connection draining is enabled for the load balancer.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Specifies whether connection draining is enabled for the load balancer.
*/ inline ConnectionDraining& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The maximum time, in seconds, to keep the existing connections open before * deregistering the instances.
*/ inline int GetTimeout() const{ return m_timeout; } /** *The maximum time, in seconds, to keep the existing connections open before * deregistering the instances.
*/ inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; } /** *The maximum time, in seconds, to keep the existing connections open before * deregistering the instances.
*/ inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; } /** *The maximum time, in seconds, to keep the existing connections open before * deregistering the instances.
*/ inline ConnectionDraining& WithTimeout(int value) { SetTimeout(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; int m_timeout; bool m_timeoutHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancing } // namespace Aws