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/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/HostHeaderConditionConfig.h>
12#include <aws/elasticloadbalancingv2/model/HttpHeaderConditionConfig.h>
13#include <aws/elasticloadbalancingv2/model/HttpRequestMethodConditionConfig.h>
14#include <aws/elasticloadbalancingv2/model/PathPatternConditionConfig.h>
15#include <aws/elasticloadbalancingv2/model/QueryStringConditionConfig.h>
16#include <aws/elasticloadbalancingv2/model/SourceIpConditionConfig.h>
26namespace ElasticLoadBalancingv2 {
53 const char* locationValue)
const;
72 template <
typename FieldT = Aws::String>
74 m_fieldHasBeenSet =
true;
75 m_field = std::forward<FieldT>(value);
77 template <
typename FieldT = Aws::String>
79 SetField(std::forward<FieldT>(value));
107 template <
typename ValuesT = Aws::Vector<Aws::String>>
109 m_valuesHasBeenSet =
true;
110 m_values = std::forward<ValuesT>(value);
112 template <
typename ValuesT = Aws::Vector<Aws::String>>
117 template <
typename ValuesT = Aws::String>
119 m_valuesHasBeenSet =
true;
120 m_values.emplace_back(std::forward<ValuesT>(value));
132 template <
typename HostHeaderConfigT = HostHeaderConditionConfig>
134 m_hostHeaderConfigHasBeenSet =
true;
135 m_hostHeaderConfig = std::forward<HostHeaderConfigT>(value);
137 template <
typename HostHeaderConfigT = HostHeaderConditionConfig>
151 template <
typename PathPatternConfigT = PathPatternConditionConfig>
153 m_pathPatternConfigHasBeenSet =
true;
154 m_pathPatternConfig = std::forward<PathPatternConfigT>(value);
156 template <
typename PathPatternConfigT = PathPatternConditionConfig>
170 template <
typename HttpHeaderConfigT = HttpHeaderConditionConfig>
172 m_httpHeaderConfigHasBeenSet =
true;
173 m_httpHeaderConfig = std::forward<HttpHeaderConfigT>(value);
175 template <
typename HttpHeaderConfigT = HttpHeaderConditionConfig>
189 template <
typename QueryStringConfigT = QueryStringConditionConfig>
191 m_queryStringConfigHasBeenSet =
true;
192 m_queryStringConfig = std::forward<QueryStringConfigT>(value);
194 template <
typename QueryStringConfigT = QueryStringConditionConfig>
208 template <
typename HttpRequestMethodConfigT = HttpRequestMethodConditionConfig>
210 m_httpRequestMethodConfigHasBeenSet =
true;
211 m_httpRequestMethodConfig = std::forward<HttpRequestMethodConfigT>(value);
213 template <
typename HttpRequestMethodConfigT = HttpRequestMethodConditionConfig>
227 template <
typename SourceIpConfigT = SourceIpConditionConfig>
229 m_sourceIpConfigHasBeenSet =
true;
230 m_sourceIpConfig = std::forward<SourceIpConfigT>(value);
232 template <
typename SourceIpConfigT = SourceIpConditionConfig>
248 template <
typename RegexValuesT = Aws::Vector<Aws::String>>
250 m_regexValuesHasBeenSet =
true;
251 m_regexValues = std::forward<RegexValuesT>(value);
253 template <
typename RegexValuesT = Aws::Vector<Aws::String>>
258 template <
typename RegexValuesT = Aws::String>
260 m_regexValuesHasBeenSet =
true;
261 m_regexValues.emplace_back(std::forward<RegexValuesT>(value));
283 bool m_fieldHasBeenSet =
false;
284 bool m_valuesHasBeenSet =
false;
285 bool m_hostHeaderConfigHasBeenSet =
false;
286 bool m_pathPatternConfigHasBeenSet =
false;
287 bool m_httpHeaderConfigHasBeenSet =
false;
288 bool m_queryStringConfigHasBeenSet =
false;
289 bool m_httpRequestMethodConfigHasBeenSet =
false;
290 bool m_sourceIpConfigHasBeenSet =
false;
291 bool m_regexValuesHasBeenSet =
false;
void SetHttpHeaderConfig(HttpHeaderConfigT &&value)
RuleCondition & AddValues(ValuesT &&value)
RuleCondition & WithQueryStringConfig(QueryStringConfigT &&value)
const QueryStringConditionConfig & GetQueryStringConfig() const
const HttpRequestMethodConditionConfig & GetHttpRequestMethodConfig() const
bool HostHeaderConfigHasBeenSet() const
RuleCondition & WithPathPatternConfig(PathPatternConfigT &&value)
const SourceIpConditionConfig & GetSourceIpConfig() const
RuleCondition & WithField(FieldT &&value)
bool FieldHasBeenSet() const
bool HttpRequestMethodConfigHasBeenSet() const
const Aws::String & GetField() const
RuleCondition & WithRegexValues(RegexValuesT &&value)
AWS_ELASTICLOADBALANCINGV2_API RuleCondition()=default
const HttpHeaderConditionConfig & GetHttpHeaderConfig() const
bool SourceIpConfigHasBeenSet() const
bool PathPatternConfigHasBeenSet() const
void SetPathPatternConfig(PathPatternConfigT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetHostHeaderConfig(HostHeaderConfigT &&value)
const PathPatternConditionConfig & GetPathPatternConfig() const
bool HttpHeaderConfigHasBeenSet() const
RuleCondition & AddRegexValues(RegexValuesT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool QueryStringConfigHasBeenSet() const
void SetQueryStringConfig(QueryStringConfigT &&value)
const Aws::Vector< Aws::String > & GetRegexValues() const
AWS_ELASTICLOADBALANCINGV2_API RuleCondition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RuleCondition & WithHttpHeaderConfig(HttpHeaderConfigT &&value)
void SetSourceIpConfig(SourceIpConfigT &&value)
RuleCondition & WithHttpRequestMethodConfig(HttpRequestMethodConfigT &&value)
bool ValuesHasBeenSet() const
const HostHeaderConditionConfig & GetHostHeaderConfig() const
void SetField(FieldT &&value)
void SetHttpRequestMethodConfig(HttpRequestMethodConfigT &&value)
RuleCondition & WithValues(ValuesT &&value)
bool RegexValuesHasBeenSet() const
AWS_ELASTICLOADBALANCINGV2_API RuleCondition(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetValues() const
void SetRegexValues(RegexValuesT &&value)
RuleCondition & WithHostHeaderConfig(HostHeaderConfigT &&value)
RuleCondition & WithSourceIpConfig(SourceIpConfigT &&value)
void SetValues(ValuesT &&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