AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HeaderMatchMethod.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appmesh/model/MatchRange.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API HeaderMatchMethod() = default;
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetExact() const { return m_exact; }
47 inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; }
48 template<typename ExactT = Aws::String>
49 void SetExact(ExactT&& value) { m_exactHasBeenSet = true; m_exact = std::forward<ExactT>(value); }
50 template<typename ExactT = Aws::String>
51 HeaderMatchMethod& WithExact(ExactT&& value) { SetExact(std::forward<ExactT>(value)); return *this;}
53
55
58 inline const Aws::String& GetPrefix() const { return m_prefix; }
59 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
60 template<typename PrefixT = Aws::String>
61 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
62 template<typename PrefixT = Aws::String>
63 HeaderMatchMethod& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
65
67
70 inline const MatchRange& GetRange() const { return m_range; }
71 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
72 template<typename RangeT = MatchRange>
73 void SetRange(RangeT&& value) { m_rangeHasBeenSet = true; m_range = std::forward<RangeT>(value); }
74 template<typename RangeT = MatchRange>
75 HeaderMatchMethod& WithRange(RangeT&& value) { SetRange(std::forward<RangeT>(value)); return *this;}
77
79
82 inline const Aws::String& GetRegex() const { return m_regex; }
83 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
84 template<typename RegexT = Aws::String>
85 void SetRegex(RegexT&& value) { m_regexHasBeenSet = true; m_regex = std::forward<RegexT>(value); }
86 template<typename RegexT = Aws::String>
87 HeaderMatchMethod& WithRegex(RegexT&& value) { SetRegex(std::forward<RegexT>(value)); return *this;}
89
91
94 inline const Aws::String& GetSuffix() const { return m_suffix; }
95 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
96 template<typename SuffixT = Aws::String>
97 void SetSuffix(SuffixT&& value) { m_suffixHasBeenSet = true; m_suffix = std::forward<SuffixT>(value); }
98 template<typename SuffixT = Aws::String>
99 HeaderMatchMethod& WithSuffix(SuffixT&& value) { SetSuffix(std::forward<SuffixT>(value)); return *this;}
101 private:
102
103 Aws::String m_exact;
104 bool m_exactHasBeenSet = false;
105
106 Aws::String m_prefix;
107 bool m_prefixHasBeenSet = false;
108
109 MatchRange m_range;
110 bool m_rangeHasBeenSet = false;
111
112 Aws::String m_regex;
113 bool m_regexHasBeenSet = false;
114
115 Aws::String m_suffix;
116 bool m_suffixHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace AppMesh
121} // namespace Aws
HeaderMatchMethod & WithExact(ExactT &&value)
const Aws::String & GetRegex() const
const Aws::String & GetPrefix() const
AWS_APPMESH_API HeaderMatchMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSuffix() const
AWS_APPMESH_API HeaderMatchMethod()=default
HeaderMatchMethod & WithSuffix(SuffixT &&value)
HeaderMatchMethod & WithRange(RangeT &&value)
AWS_APPMESH_API HeaderMatchMethod(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetExact() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
HeaderMatchMethod & WithPrefix(PrefixT &&value)
HeaderMatchMethod & WithRegex(RegexT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue