AWS SDK for C++  1.9.20
AWS SDK for C++
HeaderMatchMethod.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetExact() const{ return m_exact; }
46 
50  inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; }
51 
55  inline void SetExact(const Aws::String& value) { m_exactHasBeenSet = true; m_exact = value; }
56 
60  inline void SetExact(Aws::String&& value) { m_exactHasBeenSet = true; m_exact = std::move(value); }
61 
65  inline void SetExact(const char* value) { m_exactHasBeenSet = true; m_exact.assign(value); }
66 
70  inline HeaderMatchMethod& WithExact(const Aws::String& value) { SetExact(value); return *this;}
71 
75  inline HeaderMatchMethod& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
76 
80  inline HeaderMatchMethod& WithExact(const char* value) { SetExact(value); return *this;}
81 
82 
86  inline const Aws::String& GetPrefix() const{ return m_prefix; }
87 
91  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
92 
96  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
97 
101  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
102 
106  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
107 
111  inline HeaderMatchMethod& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
112 
116  inline HeaderMatchMethod& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
117 
121  inline HeaderMatchMethod& WithPrefix(const char* value) { SetPrefix(value); return *this;}
122 
123 
127  inline const MatchRange& GetRange() const{ return m_range; }
128 
132  inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
133 
137  inline void SetRange(const MatchRange& value) { m_rangeHasBeenSet = true; m_range = value; }
138 
142  inline void SetRange(MatchRange&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
143 
147  inline HeaderMatchMethod& WithRange(const MatchRange& value) { SetRange(value); return *this;}
148 
152  inline HeaderMatchMethod& WithRange(MatchRange&& value) { SetRange(std::move(value)); return *this;}
153 
154 
158  inline const Aws::String& GetRegex() const{ return m_regex; }
159 
163  inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
164 
168  inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
169 
173  inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
174 
178  inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
179 
183  inline HeaderMatchMethod& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
184 
188  inline HeaderMatchMethod& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
189 
193  inline HeaderMatchMethod& WithRegex(const char* value) { SetRegex(value); return *this;}
194 
195 
199  inline const Aws::String& GetSuffix() const{ return m_suffix; }
200 
204  inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
205 
209  inline void SetSuffix(const Aws::String& value) { m_suffixHasBeenSet = true; m_suffix = value; }
210 
214  inline void SetSuffix(Aws::String&& value) { m_suffixHasBeenSet = true; m_suffix = std::move(value); }
215 
219  inline void SetSuffix(const char* value) { m_suffixHasBeenSet = true; m_suffix.assign(value); }
220 
224  inline HeaderMatchMethod& WithSuffix(const Aws::String& value) { SetSuffix(value); return *this;}
225 
229  inline HeaderMatchMethod& WithSuffix(Aws::String&& value) { SetSuffix(std::move(value)); return *this;}
230 
234  inline HeaderMatchMethod& WithSuffix(const char* value) { SetSuffix(value); return *this;}
235 
236  private:
237 
238  Aws::String m_exact;
239  bool m_exactHasBeenSet;
240 
241  Aws::String m_prefix;
242  bool m_prefixHasBeenSet;
243 
244  MatchRange m_range;
245  bool m_rangeHasBeenSet;
246 
247  Aws::String m_regex;
248  bool m_regexHasBeenSet;
249 
250  Aws::String m_suffix;
251  bool m_suffixHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace AppMesh
256 } // namespace Aws
Aws::AppMesh::Model::HeaderMatchMethod::SetRegex
void SetRegex(const char *value)
Definition: HeaderMatchMethod.h:178
Aws::AppMesh::Model::HeaderMatchMethod::SuffixHasBeenSet
bool SuffixHasBeenSet() const
Definition: HeaderMatchMethod.h:204
Aws::AppMesh::Model::HeaderMatchMethod::SetPrefix
void SetPrefix(const char *value)
Definition: HeaderMatchMethod.h:106
Aws::AppMesh::Model::HeaderMatchMethod::GetPrefix
const Aws::String & GetPrefix() const
Definition: HeaderMatchMethod.h:86
Aws::AppMesh::Model::HeaderMatchMethod::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HeaderMatchMethod::SetRange
void SetRange(MatchRange &&value)
Definition: HeaderMatchMethod.h:142
Aws::AppMesh::Model::HeaderMatchMethod::WithRange
HeaderMatchMethod & WithRange(const MatchRange &value)
Definition: HeaderMatchMethod.h:147
Aws::AppMesh::Model::HeaderMatchMethod::GetRegex
const Aws::String & GetRegex() const
Definition: HeaderMatchMethod.h:158
Aws::AppMesh::Model::MatchRange
Definition: MatchRange.h:33
Aws::AppMesh::Model::HeaderMatchMethod::WithExact
HeaderMatchMethod & WithExact(const Aws::String &value)
Definition: HeaderMatchMethod.h:70
Aws::AppMesh::Model::HeaderMatchMethod::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: HeaderMatchMethod.h:101
Aws::AppMesh::Model::HeaderMatchMethod::SetExact
void SetExact(Aws::String &&value)
Definition: HeaderMatchMethod.h:60
Aws::AppMesh::Model::HeaderMatchMethod::SetSuffix
void SetSuffix(const char *value)
Definition: HeaderMatchMethod.h:219
Aws::AppMesh::Model::HeaderMatchMethod::SetRange
void SetRange(const MatchRange &value)
Definition: HeaderMatchMethod.h:137
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HeaderMatchMethod::RegexHasBeenSet
bool RegexHasBeenSet() const
Definition: HeaderMatchMethod.h:163
Aws::AppMesh::Model::HeaderMatchMethod::SetSuffix
void SetSuffix(const Aws::String &value)
Definition: HeaderMatchMethod.h:209
Aws::AppMesh::Model::HeaderMatchMethod::GetRange
const MatchRange & GetRange() const
Definition: HeaderMatchMethod.h:127
Aws::AppMesh::Model::HeaderMatchMethod::HeaderMatchMethod
HeaderMatchMethod()
Aws::AppMesh::Model::HeaderMatchMethod::WithExact
HeaderMatchMethod & WithExact(const char *value)
Definition: HeaderMatchMethod.h:80
Aws::AppMesh::Model::HeaderMatchMethod::WithRegex
HeaderMatchMethod & WithRegex(const Aws::String &value)
Definition: HeaderMatchMethod.h:183
Aws::AppMesh::Model::HeaderMatchMethod
Definition: HeaderMatchMethod.h:34
Aws::AppMesh::Model::HeaderMatchMethod::SetExact
void SetExact(const char *value)
Definition: HeaderMatchMethod.h:65
Aws::AppMesh::Model::HeaderMatchMethod::SetSuffix
void SetSuffix(Aws::String &&value)
Definition: HeaderMatchMethod.h:214
Aws::AppMesh::Model::HeaderMatchMethod::WithRegex
HeaderMatchMethod & WithRegex(Aws::String &&value)
Definition: HeaderMatchMethod.h:188
Aws::AppMesh::Model::HeaderMatchMethod::WithRegex
HeaderMatchMethod & WithRegex(const char *value)
Definition: HeaderMatchMethod.h:193
Aws::AppMesh::Model::HeaderMatchMethod::WithRange
HeaderMatchMethod & WithRange(MatchRange &&value)
Definition: HeaderMatchMethod.h:152
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::AppMesh::Model::HeaderMatchMethod::RangeHasBeenSet
bool RangeHasBeenSet() const
Definition: HeaderMatchMethod.h:132
AWSString.h
Aws::AppMesh::Model::HeaderMatchMethod::WithExact
HeaderMatchMethod & WithExact(Aws::String &&value)
Definition: HeaderMatchMethod.h:75
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
MatchRange.h
Aws::AppMesh::Model::HeaderMatchMethod::WithPrefix
HeaderMatchMethod & WithPrefix(Aws::String &&value)
Definition: HeaderMatchMethod.h:116
Aws::AppMesh::Model::HeaderMatchMethod::GetExact
const Aws::String & GetExact() const
Definition: HeaderMatchMethod.h:45
Aws::AppMesh::Model::HeaderMatchMethod::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: HeaderMatchMethod.h:91
Aws::AppMesh::Model::HeaderMatchMethod::SetExact
void SetExact(const Aws::String &value)
Definition: HeaderMatchMethod.h:55
Aws::AppMesh::Model::HeaderMatchMethod::GetSuffix
const Aws::String & GetSuffix() const
Definition: HeaderMatchMethod.h:199
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HeaderMatchMethod::HeaderMatchMethod
HeaderMatchMethod(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HeaderMatchMethod::SetRegex
void SetRegex(Aws::String &&value)
Definition: HeaderMatchMethod.h:173
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HeaderMatchMethod::WithPrefix
HeaderMatchMethod & WithPrefix(const Aws::String &value)
Definition: HeaderMatchMethod.h:111
Aws::AppMesh::Model::HeaderMatchMethod::WithSuffix
HeaderMatchMethod & WithSuffix(Aws::String &&value)
Definition: HeaderMatchMethod.h:229
Aws::AppMesh::Model::HeaderMatchMethod::WithSuffix
HeaderMatchMethod & WithSuffix(const char *value)
Definition: HeaderMatchMethod.h:234
Aws::AppMesh::Model::HeaderMatchMethod::WithSuffix
HeaderMatchMethod & WithSuffix(const Aws::String &value)
Definition: HeaderMatchMethod.h:224
Aws::AppMesh::Model::HeaderMatchMethod::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: HeaderMatchMethod.h:96
Aws::AppMesh::Model::HeaderMatchMethod::ExactHasBeenSet
bool ExactHasBeenSet() const
Definition: HeaderMatchMethod.h:50
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HeaderMatchMethod::WithPrefix
HeaderMatchMethod & WithPrefix(const char *value)
Definition: HeaderMatchMethod.h:121
Aws::AppMesh::Model::HeaderMatchMethod::operator=
HeaderMatchMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HeaderMatchMethod::SetRegex
void SetRegex(const Aws::String &value)
Definition: HeaderMatchMethod.h:168