AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Policies.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/elasticloadbalancing/model/AppCookieStickinessPolicy.h>
11#include <aws/elasticloadbalancing/model/LBCookieStickinessPolicy.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElasticLoadBalancing
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_ELASTICLOADBALANCING_API Policies();
38 AWS_ELASTICLOADBALANCING_API Policies(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICLOADBALANCING_API Policies& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::Vector<AppCookieStickinessPolicy>& GetAppCookieStickinessPolicies() const{ return m_appCookieStickinessPolicies; }
51 inline bool AppCookieStickinessPoliciesHasBeenSet() const { return m_appCookieStickinessPoliciesHasBeenSet; }
52 inline void SetAppCookieStickinessPolicies(const Aws::Vector<AppCookieStickinessPolicy>& value) { m_appCookieStickinessPoliciesHasBeenSet = true; m_appCookieStickinessPolicies = value; }
53 inline void SetAppCookieStickinessPolicies(Aws::Vector<AppCookieStickinessPolicy>&& value) { m_appCookieStickinessPoliciesHasBeenSet = true; m_appCookieStickinessPolicies = std::move(value); }
56 inline Policies& AddAppCookieStickinessPolicies(const AppCookieStickinessPolicy& value) { m_appCookieStickinessPoliciesHasBeenSet = true; m_appCookieStickinessPolicies.push_back(value); return *this; }
57 inline Policies& AddAppCookieStickinessPolicies(AppCookieStickinessPolicy&& value) { m_appCookieStickinessPoliciesHasBeenSet = true; m_appCookieStickinessPolicies.push_back(std::move(value)); return *this; }
59
61
65 inline const Aws::Vector<LBCookieStickinessPolicy>& GetLBCookieStickinessPolicies() const{ return m_lBCookieStickinessPolicies; }
66 inline bool LBCookieStickinessPoliciesHasBeenSet() const { return m_lBCookieStickinessPoliciesHasBeenSet; }
67 inline void SetLBCookieStickinessPolicies(const Aws::Vector<LBCookieStickinessPolicy>& value) { m_lBCookieStickinessPoliciesHasBeenSet = true; m_lBCookieStickinessPolicies = value; }
68 inline void SetLBCookieStickinessPolicies(Aws::Vector<LBCookieStickinessPolicy>&& value) { m_lBCookieStickinessPoliciesHasBeenSet = true; m_lBCookieStickinessPolicies = std::move(value); }
71 inline Policies& AddLBCookieStickinessPolicies(const LBCookieStickinessPolicy& value) { m_lBCookieStickinessPoliciesHasBeenSet = true; m_lBCookieStickinessPolicies.push_back(value); return *this; }
72 inline Policies& AddLBCookieStickinessPolicies(LBCookieStickinessPolicy&& value) { m_lBCookieStickinessPoliciesHasBeenSet = true; m_lBCookieStickinessPolicies.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::Vector<Aws::String>& GetOtherPolicies() const{ return m_otherPolicies; }
80 inline bool OtherPoliciesHasBeenSet() const { return m_otherPoliciesHasBeenSet; }
81 inline void SetOtherPolicies(const Aws::Vector<Aws::String>& value) { m_otherPoliciesHasBeenSet = true; m_otherPolicies = value; }
82 inline void SetOtherPolicies(Aws::Vector<Aws::String>&& value) { m_otherPoliciesHasBeenSet = true; m_otherPolicies = std::move(value); }
83 inline Policies& WithOtherPolicies(const Aws::Vector<Aws::String>& value) { SetOtherPolicies(value); return *this;}
84 inline Policies& WithOtherPolicies(Aws::Vector<Aws::String>&& value) { SetOtherPolicies(std::move(value)); return *this;}
85 inline Policies& AddOtherPolicies(const Aws::String& value) { m_otherPoliciesHasBeenSet = true; m_otherPolicies.push_back(value); return *this; }
86 inline Policies& AddOtherPolicies(Aws::String&& value) { m_otherPoliciesHasBeenSet = true; m_otherPolicies.push_back(std::move(value)); return *this; }
87 inline Policies& AddOtherPolicies(const char* value) { m_otherPoliciesHasBeenSet = true; m_otherPolicies.push_back(value); return *this; }
89 private:
90
91 Aws::Vector<AppCookieStickinessPolicy> m_appCookieStickinessPolicies;
92 bool m_appCookieStickinessPoliciesHasBeenSet = false;
93
94 Aws::Vector<LBCookieStickinessPolicy> m_lBCookieStickinessPolicies;
95 bool m_lBCookieStickinessPoliciesHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_otherPolicies;
98 bool m_otherPoliciesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ElasticLoadBalancing
103} // namespace Aws
Policies & AddAppCookieStickinessPolicies(AppCookieStickinessPolicy &&value)
Definition Policies.h:57
Policies & AddLBCookieStickinessPolicies(const LBCookieStickinessPolicy &value)
Definition Policies.h:71
Policies & WithAppCookieStickinessPolicies(const Aws::Vector< AppCookieStickinessPolicy > &value)
Definition Policies.h:54
void SetLBCookieStickinessPolicies(Aws::Vector< LBCookieStickinessPolicy > &&value)
Definition Policies.h:68
AWS_ELASTICLOADBALANCING_API Policies()
Policies & AddOtherPolicies(Aws::String &&value)
Definition Policies.h:86
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< AppCookieStickinessPolicy > & GetAppCookieStickinessPolicies() const
Definition Policies.h:50
Policies & WithLBCookieStickinessPolicies(Aws::Vector< LBCookieStickinessPolicy > &&value)
Definition Policies.h:70
AWS_ELASTICLOADBALANCING_API Policies(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< LBCookieStickinessPolicy > & GetLBCookieStickinessPolicies() const
Definition Policies.h:65
void SetLBCookieStickinessPolicies(const Aws::Vector< LBCookieStickinessPolicy > &value)
Definition Policies.h:67
Policies & AddOtherPolicies(const Aws::String &value)
Definition Policies.h:85
Policies & AddOtherPolicies(const char *value)
Definition Policies.h:87
Policies & WithAppCookieStickinessPolicies(Aws::Vector< AppCookieStickinessPolicy > &&value)
Definition Policies.h:55
AWS_ELASTICLOADBALANCING_API Policies & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Policies & AddAppCookieStickinessPolicies(const AppCookieStickinessPolicy &value)
Definition Policies.h:56
void SetOtherPolicies(Aws::Vector< Aws::String > &&value)
Definition Policies.h:82
void SetAppCookieStickinessPolicies(const Aws::Vector< AppCookieStickinessPolicy > &value)
Definition Policies.h:52
Policies & WithLBCookieStickinessPolicies(const Aws::Vector< LBCookieStickinessPolicy > &value)
Definition Policies.h:69
void SetOtherPolicies(const Aws::Vector< Aws::String > &value)
Definition Policies.h:81
void SetAppCookieStickinessPolicies(Aws::Vector< AppCookieStickinessPolicy > &&value)
Definition Policies.h:53
Policies & WithOtherPolicies(const Aws::Vector< Aws::String > &value)
Definition Policies.h:83
Policies & AddLBCookieStickinessPolicies(LBCookieStickinessPolicy &&value)
Definition Policies.h:72
Policies & WithOtherPolicies(Aws::Vector< Aws::String > &&value)
Definition Policies.h:84
const Aws::Vector< Aws::String > & GetOtherPolicies() const
Definition Policies.h:79
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