AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
61 inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::move(value); }
63 inline BackendServerDescription& WithPolicyNames(Aws::Vector<Aws::String>&& value) { SetPolicyNames(std::move(value)); return *this;}
64 inline BackendServerDescription& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
65 inline BackendServerDescription& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(std::move(value)); return *this; }
66 inline BackendServerDescription& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
68 private:
69
70 int m_instancePort;
71 bool m_instancePortHasBeenSet = false;
72
73 Aws::Vector<Aws::String> m_policyNames;
74 bool m_policyNamesHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ElasticLoadBalancing
79} // namespace Aws
BackendServerDescription & AddPolicyNames(const char *value)
BackendServerDescription & AddPolicyNames(const Aws::String &value)
AWS_ELASTICLOADBALANCING_API BackendServerDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
BackendServerDescription & AddPolicyNames(Aws::String &&value)
void SetPolicyNames(const Aws::Vector< Aws::String > &value)
BackendServerDescription & WithPolicyNames(const Aws::Vector< Aws::String > &value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BackendServerDescription & WithPolicyNames(Aws::Vector< Aws::String > &&value)
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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream