AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HttpHeaderConditionConfig.h
1
6#pragma once
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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticLoadBalancingv2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig() = default;
38 AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
54 inline const Aws::String& GetHttpHeaderName() const { return m_httpHeaderName; }
55 inline bool HttpHeaderNameHasBeenSet() const { return m_httpHeaderNameHasBeenSet; }
56 template<typename HttpHeaderNameT = Aws::String>
57 void SetHttpHeaderName(HttpHeaderNameT&& value) { m_httpHeaderNameHasBeenSet = true; m_httpHeaderName = std::forward<HttpHeaderNameT>(value); }
58 template<typename HttpHeaderNameT = Aws::String>
59 HttpHeaderConditionConfig& WithHttpHeaderName(HttpHeaderNameT&& value) { SetHttpHeaderName(std::forward<HttpHeaderNameT>(value)); return *this;}
61
63
73 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
74 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
75 template<typename ValuesT = Aws::Vector<Aws::String>>
76 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
77 template<typename ValuesT = Aws::Vector<Aws::String>>
78 HttpHeaderConditionConfig& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
79 template<typename ValuesT = Aws::String>
80 HttpHeaderConditionConfig& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
82 private:
83
84 Aws::String m_httpHeaderName;
85 bool m_httpHeaderNameHasBeenSet = false;
86
88 bool m_valuesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ElasticLoadBalancingv2
93} // namespace Aws
HttpHeaderConditionConfig & WithHttpHeaderName(HttpHeaderNameT &&value)
AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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)
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