AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleCondition.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticloadbalancingv2/model/HostHeaderConditionConfig.h>
12#include <aws/elasticloadbalancingv2/model/PathPatternConditionConfig.h>
13#include <aws/elasticloadbalancingv2/model/HttpHeaderConditionConfig.h>
14#include <aws/elasticloadbalancingv2/model/QueryStringConditionConfig.h>
15#include <aws/elasticloadbalancingv2/model/HttpRequestMethodConditionConfig.h>
16#include <aws/elasticloadbalancingv2/model/SourceIpConditionConfig.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace ElasticLoadBalancingv2
29{
30namespace Model
31{
32
47 {
48 public:
49 AWS_ELASTICLOADBALANCINGV2_API RuleCondition();
50 AWS_ELASTICLOADBALANCINGV2_API RuleCondition(const Aws::Utils::Xml::XmlNode& xmlNode);
51 AWS_ELASTICLOADBALANCINGV2_API RuleCondition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
52
53 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
54 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
55
56
58
66 inline const Aws::String& GetField() const{ return m_field; }
67 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
68 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
69 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
70 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
71 inline RuleCondition& WithField(const Aws::String& value) { SetField(value); return *this;}
72 inline RuleCondition& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
73 inline RuleCondition& WithField(const char* value) { SetField(value); return *this;}
75
77
97 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
98 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
99 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
100 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
101 inline RuleCondition& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
102 inline RuleCondition& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
103 inline RuleCondition& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
104 inline RuleCondition& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
105 inline RuleCondition& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
107
109
113 inline const HostHeaderConditionConfig& GetHostHeaderConfig() const{ return m_hostHeaderConfig; }
114 inline bool HostHeaderConfigHasBeenSet() const { return m_hostHeaderConfigHasBeenSet; }
115 inline void SetHostHeaderConfig(const HostHeaderConditionConfig& value) { m_hostHeaderConfigHasBeenSet = true; m_hostHeaderConfig = value; }
116 inline void SetHostHeaderConfig(HostHeaderConditionConfig&& value) { m_hostHeaderConfigHasBeenSet = true; m_hostHeaderConfig = std::move(value); }
118 inline RuleCondition& WithHostHeaderConfig(HostHeaderConditionConfig&& value) { SetHostHeaderConfig(std::move(value)); return *this;}
120
122
126 inline const PathPatternConditionConfig& GetPathPatternConfig() const{ return m_pathPatternConfig; }
127 inline bool PathPatternConfigHasBeenSet() const { return m_pathPatternConfigHasBeenSet; }
128 inline void SetPathPatternConfig(const PathPatternConditionConfig& value) { m_pathPatternConfigHasBeenSet = true; m_pathPatternConfig = value; }
129 inline void SetPathPatternConfig(PathPatternConditionConfig&& value) { m_pathPatternConfigHasBeenSet = true; m_pathPatternConfig = std::move(value); }
131 inline RuleCondition& WithPathPatternConfig(PathPatternConditionConfig&& value) { SetPathPatternConfig(std::move(value)); return *this;}
133
135
139 inline const HttpHeaderConditionConfig& GetHttpHeaderConfig() const{ return m_httpHeaderConfig; }
140 inline bool HttpHeaderConfigHasBeenSet() const { return m_httpHeaderConfigHasBeenSet; }
141 inline void SetHttpHeaderConfig(const HttpHeaderConditionConfig& value) { m_httpHeaderConfigHasBeenSet = true; m_httpHeaderConfig = value; }
142 inline void SetHttpHeaderConfig(HttpHeaderConditionConfig&& value) { m_httpHeaderConfigHasBeenSet = true; m_httpHeaderConfig = std::move(value); }
144 inline RuleCondition& WithHttpHeaderConfig(HttpHeaderConditionConfig&& value) { SetHttpHeaderConfig(std::move(value)); return *this;}
146
148
152 inline const QueryStringConditionConfig& GetQueryStringConfig() const{ return m_queryStringConfig; }
153 inline bool QueryStringConfigHasBeenSet() const { return m_queryStringConfigHasBeenSet; }
154 inline void SetQueryStringConfig(const QueryStringConditionConfig& value) { m_queryStringConfigHasBeenSet = true; m_queryStringConfig = value; }
155 inline void SetQueryStringConfig(QueryStringConditionConfig&& value) { m_queryStringConfigHasBeenSet = true; m_queryStringConfig = std::move(value); }
157 inline RuleCondition& WithQueryStringConfig(QueryStringConditionConfig&& value) { SetQueryStringConfig(std::move(value)); return *this;}
159
161
165 inline const HttpRequestMethodConditionConfig& GetHttpRequestMethodConfig() const{ return m_httpRequestMethodConfig; }
166 inline bool HttpRequestMethodConfigHasBeenSet() const { return m_httpRequestMethodConfigHasBeenSet; }
167 inline void SetHttpRequestMethodConfig(const HttpRequestMethodConditionConfig& value) { m_httpRequestMethodConfigHasBeenSet = true; m_httpRequestMethodConfig = value; }
168 inline void SetHttpRequestMethodConfig(HttpRequestMethodConditionConfig&& value) { m_httpRequestMethodConfigHasBeenSet = true; m_httpRequestMethodConfig = std::move(value); }
172
174
178 inline const SourceIpConditionConfig& GetSourceIpConfig() const{ return m_sourceIpConfig; }
179 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
180 inline void SetSourceIpConfig(const SourceIpConditionConfig& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = value; }
181 inline void SetSourceIpConfig(SourceIpConditionConfig&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::move(value); }
182 inline RuleCondition& WithSourceIpConfig(const SourceIpConditionConfig& value) { SetSourceIpConfig(value); return *this;}
183 inline RuleCondition& WithSourceIpConfig(SourceIpConditionConfig&& value) { SetSourceIpConfig(std::move(value)); return *this;}
185 private:
186
187 Aws::String m_field;
188 bool m_fieldHasBeenSet = false;
189
191 bool m_valuesHasBeenSet = false;
192
193 HostHeaderConditionConfig m_hostHeaderConfig;
194 bool m_hostHeaderConfigHasBeenSet = false;
195
196 PathPatternConditionConfig m_pathPatternConfig;
197 bool m_pathPatternConfigHasBeenSet = false;
198
199 HttpHeaderConditionConfig m_httpHeaderConfig;
200 bool m_httpHeaderConfigHasBeenSet = false;
201
202 QueryStringConditionConfig m_queryStringConfig;
203 bool m_queryStringConfigHasBeenSet = false;
204
205 HttpRequestMethodConditionConfig m_httpRequestMethodConfig;
206 bool m_httpRequestMethodConfigHasBeenSet = false;
207
208 SourceIpConditionConfig m_sourceIpConfig;
209 bool m_sourceIpConfigHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace ElasticLoadBalancingv2
214} // namespace Aws
void SetHttpHeaderConfig(const HttpHeaderConditionConfig &value)
RuleCondition & WithField(Aws::String &&value)
void SetHttpRequestMethodConfig(HttpRequestMethodConditionConfig &&value)
const QueryStringConditionConfig & GetQueryStringConfig() const
const HttpRequestMethodConditionConfig & GetHttpRequestMethodConfig() const
RuleCondition & WithHttpRequestMethodConfig(const HttpRequestMethodConditionConfig &value)
const SourceIpConditionConfig & GetSourceIpConfig() const
void SetPathPatternConfig(PathPatternConditionConfig &&value)
void SetQueryStringConfig(const QueryStringConditionConfig &value)
RuleCondition & WithPathPatternConfig(const PathPatternConditionConfig &value)
RuleCondition & AddValues(const Aws::String &value)
const HttpHeaderConditionConfig & GetHttpHeaderConfig() const
RuleCondition & WithField(const char *value)
AWS_ELASTICLOADBALANCINGV2_API RuleCondition()
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RuleCondition & WithHttpHeaderConfig(HttpHeaderConditionConfig &&value)
void SetValues(Aws::Vector< Aws::String > &&value)
void SetPathPatternConfig(const PathPatternConditionConfig &value)
RuleCondition & WithSourceIpConfig(const SourceIpConditionConfig &value)
const PathPatternConditionConfig & GetPathPatternConfig() const
RuleCondition & WithPathPatternConfig(PathPatternConditionConfig &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API RuleCondition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RuleCondition & WithQueryStringConfig(const QueryStringConditionConfig &value)
void SetHttpHeaderConfig(HttpHeaderConditionConfig &&value)
void SetHttpRequestMethodConfig(const HttpRequestMethodConditionConfig &value)
RuleCondition & WithQueryStringConfig(QueryStringConditionConfig &&value)
RuleCondition & WithHttpRequestMethodConfig(HttpRequestMethodConditionConfig &&value)
void SetQueryStringConfig(QueryStringConditionConfig &&value)
RuleCondition & AddValues(const char *value)
const HostHeaderConditionConfig & GetHostHeaderConfig() const
RuleCondition & WithHttpHeaderConfig(const HttpHeaderConditionConfig &value)
void SetSourceIpConfig(const SourceIpConditionConfig &value)
RuleCondition & WithHostHeaderConfig(HostHeaderConditionConfig &&value)
void SetValues(const Aws::Vector< Aws::String > &value)
RuleCondition & AddValues(Aws::String &&value)
RuleCondition & WithValues(Aws::Vector< Aws::String > &&value)
RuleCondition & WithValues(const Aws::Vector< Aws::String > &value)
RuleCondition & WithSourceIpConfig(SourceIpConditionConfig &&value)
RuleCondition & WithField(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API RuleCondition(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetValues() const
void SetSourceIpConfig(SourceIpConditionConfig &&value)
void SetHostHeaderConfig(const HostHeaderConditionConfig &value)
void SetHostHeaderConfig(HostHeaderConditionConfig &&value)
RuleCondition & WithHostHeaderConfig(const HostHeaderConditionConfig &value)
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