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 {
49 const char* locationValue)
const;
63 template <
typename FieldT = Aws::String>
65 m_fieldHasBeenSet =
true;
66 m_field = std::forward<FieldT>(value);
68 template <
typename FieldT = Aws::String>
70 SetField(std::forward<FieldT>(value));
98 template <
typename ValuesT = Aws::Vector<Aws::String>>
100 m_valuesHasBeenSet =
true;
101 m_values = std::forward<ValuesT>(value);
103 template <
typename ValuesT = Aws::Vector<Aws::String>>
108 template <
typename ValuesT = Aws::String>
110 m_valuesHasBeenSet =
true;
111 m_values.emplace_back(std::forward<ValuesT>(value));
123 template <
typename HostHeaderConfigT = HostHeaderConditionConfig>
125 m_hostHeaderConfigHasBeenSet =
true;
126 m_hostHeaderConfig = std::forward<HostHeaderConfigT>(value);
128 template <
typename HostHeaderConfigT = HostHeaderConditionConfig>
142 template <
typename PathPatternConfigT = PathPatternConditionConfig>
144 m_pathPatternConfigHasBeenSet =
true;
145 m_pathPatternConfig = std::forward<PathPatternConfigT>(value);
147 template <
typename PathPatternConfigT = PathPatternConditionConfig>
161 template <
typename HttpHeaderConfigT = HttpHeaderConditionConfig>
163 m_httpHeaderConfigHasBeenSet =
true;
164 m_httpHeaderConfig = std::forward<HttpHeaderConfigT>(value);
166 template <
typename HttpHeaderConfigT = HttpHeaderConditionConfig>
180 template <
typename QueryStringConfigT = QueryStringConditionConfig>
182 m_queryStringConfigHasBeenSet =
true;
183 m_queryStringConfig = std::forward<QueryStringConfigT>(value);
185 template <
typename QueryStringConfigT = QueryStringConditionConfig>
199 template <
typename HttpRequestMethodConfigT = HttpRequestMethodConditionConfig>
201 m_httpRequestMethodConfigHasBeenSet =
true;
202 m_httpRequestMethodConfig = std::forward<HttpRequestMethodConfigT>(value);
204 template <
typename HttpRequestMethodConfigT = HttpRequestMethodConditionConfig>
218 template <
typename SourceIpConfigT = SourceIpConditionConfig>
220 m_sourceIpConfigHasBeenSet =
true;
221 m_sourceIpConfig = std::forward<SourceIpConfigT>(value);
223 template <
typename SourceIpConfigT = SourceIpConditionConfig>
239 template <
typename RegexValuesT = Aws::Vector<Aws::String>>
241 m_regexValuesHasBeenSet =
true;
242 m_regexValues = std::forward<RegexValuesT>(value);
244 template <
typename RegexValuesT = Aws::Vector<Aws::String>>
249 template <
typename RegexValuesT = Aws::String>
251 m_regexValuesHasBeenSet =
true;
252 m_regexValues.emplace_back(std::forward<RegexValuesT>(value));
274 bool m_fieldHasBeenSet =
false;
275 bool m_valuesHasBeenSet =
false;
276 bool m_hostHeaderConfigHasBeenSet =
false;
277 bool m_pathPatternConfigHasBeenSet =
false;
278 bool m_httpHeaderConfigHasBeenSet =
false;
279 bool m_queryStringConfigHasBeenSet =
false;
280 bool m_httpRequestMethodConfigHasBeenSet =
false;
281 bool m_sourceIpConfigHasBeenSet =
false;
282 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