AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BackendServerDescription.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticLoadBalancing
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICLOADBALANCING_API BackendServerDescription() = default;
37 AWS_ELASTICLOADBALANCING_API BackendServerDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICLOADBALANCING_API BackendServerDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline int GetInstancePort() const { return m_instancePort; }
49 inline bool InstancePortHasBeenSet() const { return m_instancePortHasBeenSet; }
50 inline void SetInstancePort(int value) { m_instancePortHasBeenSet = true; m_instancePort = value; }
51 inline BackendServerDescription& WithInstancePort(int value) { SetInstancePort(value); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetPolicyNames() const { return m_policyNames; }
59 inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; }
60 template<typename PolicyNamesT = Aws::Vector<Aws::String>>
61 void SetPolicyNames(PolicyNamesT&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::forward<PolicyNamesT>(value); }
62 template<typename PolicyNamesT = Aws::Vector<Aws::String>>
63 BackendServerDescription& WithPolicyNames(PolicyNamesT&& value) { SetPolicyNames(std::forward<PolicyNamesT>(value)); return *this;}
64 template<typename PolicyNamesT = Aws::String>
65 BackendServerDescription& AddPolicyNames(PolicyNamesT&& value) { m_policyNamesHasBeenSet = true; m_policyNames.emplace_back(std::forward<PolicyNamesT>(value)); return *this; }
67 private:
68
69 int m_instancePort{0};
70 bool m_instancePortHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_policyNames;
73 bool m_policyNamesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ElasticLoadBalancing
78} // 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