AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ConnectionDraining.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace ElasticLoadBalancing {
17namespace Model {
18
26 public:
27 AWS_ELASTICLOADBALANCING_API ConnectionDraining() = default;
28 AWS_ELASTICLOADBALANCING_API ConnectionDraining(const Aws::Utils::Xml::XmlNode& xmlNode);
29 AWS_ELASTICLOADBALANCING_API ConnectionDraining& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
30
31 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
32 const char* locationValue) const;
33 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
34
36
39 inline bool GetEnabled() const { return m_enabled; }
40 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
41 inline void SetEnabled(bool value) {
42 m_enabledHasBeenSet = true;
43 m_enabled = value;
44 }
45 inline ConnectionDraining& WithEnabled(bool value) {
46 SetEnabled(value);
47 return *this;
48 }
50
52
56 inline int GetTimeout() const { return m_timeout; }
57 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
58 inline void SetTimeout(int value) {
59 m_timeoutHasBeenSet = true;
60 m_timeout = value;
61 }
62 inline ConnectionDraining& WithTimeout(int value) {
63 SetTimeout(value);
64 return *this;
65 }
67 private:
68 bool m_enabled{false};
69
70 int m_timeout{0};
71 bool m_enabledHasBeenSet = false;
72 bool m_timeoutHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace ElasticLoadBalancing
77} // namespace Aws
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCING_API ConnectionDraining(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API ConnectionDraining()=default
AWS_ELASTICLOADBALANCING_API ConnectionDraining & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream