AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HostHeaderConditionConfig.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
29 public:
30 AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig() = default;
31 AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
47 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
48 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
49 template <typename ValuesT = Aws::Vector<Aws::String>>
50 void SetValues(ValuesT&& value) {
51 m_valuesHasBeenSet = true;
52 m_values = std::forward<ValuesT>(value);
53 }
54 template <typename ValuesT = Aws::Vector<Aws::String>>
56 SetValues(std::forward<ValuesT>(value));
57 return *this;
58 }
59 template <typename ValuesT = Aws::String>
61 m_valuesHasBeenSet = true;
62 m_values.emplace_back(std::forward<ValuesT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::Vector<Aws::String>& GetRegexValues() const { return m_regexValues; }
73 inline bool RegexValuesHasBeenSet() const { return m_regexValuesHasBeenSet; }
74 template <typename RegexValuesT = Aws::Vector<Aws::String>>
75 void SetRegexValues(RegexValuesT&& value) {
76 m_regexValuesHasBeenSet = true;
77 m_regexValues = std::forward<RegexValuesT>(value);
78 }
79 template <typename RegexValuesT = Aws::Vector<Aws::String>>
81 SetRegexValues(std::forward<RegexValuesT>(value));
82 return *this;
83 }
84 template <typename RegexValuesT = Aws::String>
86 m_regexValuesHasBeenSet = true;
87 m_regexValues.emplace_back(std::forward<RegexValuesT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::Vector<Aws::String> m_regexValues;
95 bool m_valuesHasBeenSet = false;
96 bool m_regexValuesHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ElasticLoadBalancingv2
101} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig()=default
HostHeaderConditionConfig & AddRegexValues(RegexValuesT &&value)
AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
HostHeaderConditionConfig & WithRegexValues(RegexValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream