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>
28namespace ElasticLoadBalancingv2
53 AWS_ELASTICLOADBALANCINGV2_API
void OutputToStream(
Aws::OStream& ostream,
const char* location,
unsigned index,
const char* locationValue)
const;
68 template<
typename FieldT = Aws::String>
69 void SetField(FieldT&& value) { m_fieldHasBeenSet =
true; m_field = std::forward<FieldT>(value); }
70 template<
typename FieldT = Aws::String>
97 template<
typename ValuesT = Aws::Vector<Aws::String>>
98 void SetValues(ValuesT&& value) { m_valuesHasBeenSet =
true; m_values = std::forward<ValuesT>(value); }
99 template<
typename ValuesT = Aws::Vector<Aws::String>>
101 template<
typename ValuesT = Aws::String>
102 RuleCondition&
AddValues(ValuesT&& value) { m_valuesHasBeenSet =
true; m_values.emplace_back(std::forward<ValuesT>(value));
return *
this; }
112 template<
typename HostHeaderConfigT = HostHeaderConditionConfig>
113 void SetHostHeaderConfig(HostHeaderConfigT&& value) { m_hostHeaderConfigHasBeenSet =
true; m_hostHeaderConfig = std::forward<HostHeaderConfigT>(value); }
114 template<
typename HostHeaderConfigT = HostHeaderConditionConfig>
125 template<
typename PathPatternConfigT = PathPatternConditionConfig>
126 void SetPathPatternConfig(PathPatternConfigT&& value) { m_pathPatternConfigHasBeenSet =
true; m_pathPatternConfig = std::forward<PathPatternConfigT>(value); }
127 template<
typename PathPatternConfigT = PathPatternConditionConfig>
138 template<
typename HttpHeaderConfigT = HttpHeaderConditionConfig>
139 void SetHttpHeaderConfig(HttpHeaderConfigT&& value) { m_httpHeaderConfigHasBeenSet =
true; m_httpHeaderConfig = std::forward<HttpHeaderConfigT>(value); }
140 template<
typename HttpHeaderConfigT = HttpHeaderConditionConfig>
151 template<
typename QueryStringConfigT = QueryStringConditionConfig>
152 void SetQueryStringConfig(QueryStringConfigT&& value) { m_queryStringConfigHasBeenSet =
true; m_queryStringConfig = std::forward<QueryStringConfigT>(value); }
153 template<
typename QueryStringConfigT = QueryStringConditionConfig>
164 template<
typename HttpRequestMethodConfigT = HttpRequestMethodConditionConfig>
165 void SetHttpRequestMethodConfig(HttpRequestMethodConfigT&& value) { m_httpRequestMethodConfigHasBeenSet =
true; m_httpRequestMethodConfig = std::forward<HttpRequestMethodConfigT>(value); }
166 template<
typename HttpRequestMethodConfigT = HttpRequestMethodConditionConfig>
177 template<
typename SourceIpConfigT = SourceIpConditionConfig>
178 void SetSourceIpConfig(SourceIpConfigT&& value) { m_sourceIpConfigHasBeenSet =
true; m_sourceIpConfig = std::forward<SourceIpConfigT>(value); }
179 template<
typename SourceIpConfigT = SourceIpConditionConfig>
185 bool m_fieldHasBeenSet =
false;
188 bool m_valuesHasBeenSet =
false;
191 bool m_hostHeaderConfigHasBeenSet =
false;
194 bool m_pathPatternConfigHasBeenSet =
false;
197 bool m_httpHeaderConfigHasBeenSet =
false;
200 bool m_queryStringConfigHasBeenSet =
false;
203 bool m_httpRequestMethodConfigHasBeenSet =
false;
206 bool m_sourceIpConfigHasBeenSet =
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
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
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool QueryStringConfigHasBeenSet() const
void SetQueryStringConfig(QueryStringConfigT &&value)
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)
AWS_ELASTICLOADBALANCINGV2_API RuleCondition(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetValues() const
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