AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BackendServerDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElasticLoadBalancing {
21namespace Model {
22
30 public:
31 AWS_ELASTICLOADBALANCING_API BackendServerDescription() = default;
32 AWS_ELASTICLOADBALANCING_API BackendServerDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICLOADBALANCING_API BackendServerDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
36 const char* locationValue) const;
37 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline int GetInstancePort() const { return m_instancePort; }
44 inline bool InstancePortHasBeenSet() const { return m_instancePortHasBeenSet; }
45 inline void SetInstancePort(int value) {
46 m_instancePortHasBeenSet = true;
47 m_instancePort = value;
48 }
50 SetInstancePort(value);
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetPolicyNames() const { return m_policyNames; }
60 inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; }
61 template <typename PolicyNamesT = Aws::Vector<Aws::String>>
62 void SetPolicyNames(PolicyNamesT&& value) {
63 m_policyNamesHasBeenSet = true;
64 m_policyNames = std::forward<PolicyNamesT>(value);
65 }
66 template <typename PolicyNamesT = Aws::Vector<Aws::String>>
68 SetPolicyNames(std::forward<PolicyNamesT>(value));
69 return *this;
70 }
71 template <typename PolicyNamesT = Aws::String>
73 m_policyNamesHasBeenSet = true;
74 m_policyNames.emplace_back(std::forward<PolicyNamesT>(value));
75 return *this;
76 }
78 private:
79 int m_instancePort{0};
80
81 Aws::Vector<Aws::String> m_policyNames;
82 bool m_instancePortHasBeenSet = false;
83 bool m_policyNamesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace ElasticLoadBalancing
88} // namespace Aws
AWS_ELASTICLOADBALANCING_API BackendServerDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
BackendServerDescription & WithPolicyNames(PolicyNamesT &&value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BackendServerDescription & AddPolicyNames(PolicyNamesT &&value)
AWS_ELASTICLOADBALANCING_API BackendServerDescription()=default
AWS_ELASTICLOADBALANCING_API BackendServerDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream