AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
HttpHeaderConditionConfig.h
1
6#pragma once
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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElasticLoadBalancingv2 {
21namespace Model {
22
31 public:
32 AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig() = default;
33 AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
37 const char* locationValue) const;
38 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
49 inline const Aws::String& GetHttpHeaderName() const { return m_httpHeaderName; }
50 inline bool HttpHeaderNameHasBeenSet() const { return m_httpHeaderNameHasBeenSet; }
51 template <typename HttpHeaderNameT = Aws::String>
52 void SetHttpHeaderName(HttpHeaderNameT&& value) {
53 m_httpHeaderNameHasBeenSet = true;
54 m_httpHeaderName = std::forward<HttpHeaderNameT>(value);
55 }
56 template <typename HttpHeaderNameT = Aws::String>
58 SetHttpHeaderName(std::forward<HttpHeaderNameT>(value));
59 return *this;
60 }
62
64
74 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
75 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
76 template <typename ValuesT = Aws::Vector<Aws::String>>
77 void SetValues(ValuesT&& value) {
78 m_valuesHasBeenSet = true;
79 m_values = std::forward<ValuesT>(value);
80 }
81 template <typename ValuesT = Aws::Vector<Aws::String>>
83 SetValues(std::forward<ValuesT>(value));
84 return *this;
85 }
86 template <typename ValuesT = Aws::String>
88 m_valuesHasBeenSet = true;
89 m_values.emplace_back(std::forward<ValuesT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Vector<Aws::String>& GetRegexValues() const { return m_regexValues; }
100 inline bool RegexValuesHasBeenSet() const { return m_regexValuesHasBeenSet; }
101 template <typename RegexValuesT = Aws::Vector<Aws::String>>
102 void SetRegexValues(RegexValuesT&& value) {
103 m_regexValuesHasBeenSet = true;
104 m_regexValues = std::forward<RegexValuesT>(value);
105 }
106 template <typename RegexValuesT = Aws::Vector<Aws::String>>
108 SetRegexValues(std::forward<RegexValuesT>(value));
109 return *this;
110 }
111 template <typename RegexValuesT = Aws::String>
113 m_regexValuesHasBeenSet = true;
114 m_regexValues.emplace_back(std::forward<RegexValuesT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_httpHeaderName;
120
122
123 Aws::Vector<Aws::String> m_regexValues;
124 bool m_httpHeaderNameHasBeenSet = false;
125 bool m_valuesHasBeenSet = false;
126 bool m_regexValuesHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace ElasticLoadBalancingv2
131} // namespace Aws
HttpHeaderConditionConfig & WithHttpHeaderName(HttpHeaderNameT &&value)
AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
HttpHeaderConditionConfig & AddRegexValues(RegexValuesT &&value)
AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig()=default
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
HttpHeaderConditionConfig & WithRegexValues(RegexValuesT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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