AWS SDK for C++  1.9.17
AWS SDK for C++
GrpcRouteMetadataMatchMethod.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 GrpcRouteMetadataMatchMethod& WithExact(const Aws::String& value) { SetExact(value); return *this;}
71 
75  inline GrpcRouteMetadataMatchMethod& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
76 
80  inline GrpcRouteMetadataMatchMethod& 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 GrpcRouteMetadataMatchMethod& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
112 
116  inline GrpcRouteMetadataMatchMethod& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
117 
121  inline GrpcRouteMetadataMatchMethod& 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 GrpcRouteMetadataMatchMethod& WithRange(const MatchRange& value) { SetRange(value); return *this;}
148 
152  inline GrpcRouteMetadataMatchMethod& 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 GrpcRouteMetadataMatchMethod& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
184 
188  inline GrpcRouteMetadataMatchMethod& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
189 
193  inline GrpcRouteMetadataMatchMethod& 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 GrpcRouteMetadataMatchMethod& WithSuffix(const Aws::String& value) { SetSuffix(value); return *this;}
225 
229  inline GrpcRouteMetadataMatchMethod& WithSuffix(Aws::String&& value) { SetSuffix(std::move(value)); return *this;}
230 
234  inline GrpcRouteMetadataMatchMethod& 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::GrpcRouteMetadataMatchMethod::GetRegex
const Aws::String & GetRegex() const
Definition: GrpcRouteMetadataMatchMethod.h:158
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetRegex
void SetRegex(const Aws::String &value)
Definition: GrpcRouteMetadataMatchMethod.h:168
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::RangeHasBeenSet
bool RangeHasBeenSet() const
Definition: GrpcRouteMetadataMatchMethod.h:132
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithRange
GrpcRouteMetadataMatchMethod & WithRange(const MatchRange &value)
Definition: GrpcRouteMetadataMatchMethod.h:147
Aws::AppMesh::Model::MatchRange
Definition: MatchRange.h:33
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithRegex
GrpcRouteMetadataMatchMethod & WithRegex(const Aws::String &value)
Definition: GrpcRouteMetadataMatchMethod.h:183
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithExact
GrpcRouteMetadataMatchMethod & WithExact(const char *value)
Definition: GrpcRouteMetadataMatchMethod.h:80
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::GetExact
const Aws::String & GetExact() const
Definition: GrpcRouteMetadataMatchMethod.h:45
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetSuffix
void SetSuffix(Aws::String &&value)
Definition: GrpcRouteMetadataMatchMethod.h:214
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetRange
void SetRange(MatchRange &&value)
Definition: GrpcRouteMetadataMatchMethod.h:142
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::GetSuffix
const Aws::String & GetSuffix() const
Definition: GrpcRouteMetadataMatchMethod.h:199
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetExact
void SetExact(Aws::String &&value)
Definition: GrpcRouteMetadataMatchMethod.h:60
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod
Definition: GrpcRouteMetadataMatchMethod.h:34
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithExact
GrpcRouteMetadataMatchMethod & WithExact(const Aws::String &value)
Definition: GrpcRouteMetadataMatchMethod.h:70
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: GrpcRouteMetadataMatchMethod.h:91
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::GetPrefix
const Aws::String & GetPrefix() const
Definition: GrpcRouteMetadataMatchMethod.h:86
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::GrpcRouteMetadataMatchMethod
GrpcRouteMetadataMatchMethod(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithExact
GrpcRouteMetadataMatchMethod & WithExact(Aws::String &&value)
Definition: GrpcRouteMetadataMatchMethod.h:75
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetRange
void SetRange(const MatchRange &value)
Definition: GrpcRouteMetadataMatchMethod.h:137
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetExact
void SetExact(const char *value)
Definition: GrpcRouteMetadataMatchMethod.h:65
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::ExactHasBeenSet
bool ExactHasBeenSet() const
Definition: GrpcRouteMetadataMatchMethod.h:50
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::RegexHasBeenSet
bool RegexHasBeenSet() const
Definition: GrpcRouteMetadataMatchMethod.h:163
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithRange
GrpcRouteMetadataMatchMethod & WithRange(MatchRange &&value)
Definition: GrpcRouteMetadataMatchMethod.h:152
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithSuffix
GrpcRouteMetadataMatchMethod & WithSuffix(const char *value)
Definition: GrpcRouteMetadataMatchMethod.h:234
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetExact
void SetExact(const Aws::String &value)
Definition: GrpcRouteMetadataMatchMethod.h:55
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: GrpcRouteMetadataMatchMethod.h:101
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithSuffix
GrpcRouteMetadataMatchMethod & WithSuffix(Aws::String &&value)
Definition: GrpcRouteMetadataMatchMethod.h:229
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetPrefix
void SetPrefix(const char *value)
Definition: GrpcRouteMetadataMatchMethod.h:106
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetRegex
void SetRegex(Aws::String &&value)
Definition: GrpcRouteMetadataMatchMethod.h:173
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithPrefix
GrpcRouteMetadataMatchMethod & WithPrefix(Aws::String &&value)
Definition: GrpcRouteMetadataMatchMethod.h:116
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SuffixHasBeenSet
bool SuffixHasBeenSet() const
Definition: GrpcRouteMetadataMatchMethod.h:204
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithRegex
GrpcRouteMetadataMatchMethod & WithRegex(const char *value)
Definition: GrpcRouteMetadataMatchMethod.h:193
MatchRange.h
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::operator=
GrpcRouteMetadataMatchMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetSuffix
void SetSuffix(const char *value)
Definition: GrpcRouteMetadataMatchMethod.h:219
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::GetRange
const MatchRange & GetRange() const
Definition: GrpcRouteMetadataMatchMethod.h:127
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithPrefix
GrpcRouteMetadataMatchMethod & WithPrefix(const char *value)
Definition: GrpcRouteMetadataMatchMethod.h:121
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithRegex
GrpcRouteMetadataMatchMethod & WithRegex(Aws::String &&value)
Definition: GrpcRouteMetadataMatchMethod.h:188
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: GrpcRouteMetadataMatchMethod.h:96
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithPrefix
GrpcRouteMetadataMatchMethod & WithPrefix(const Aws::String &value)
Definition: GrpcRouteMetadataMatchMethod.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::WithSuffix
GrpcRouteMetadataMatchMethod & WithSuffix(const Aws::String &value)
Definition: GrpcRouteMetadataMatchMethod.h:224
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetRegex
void SetRegex(const char *value)
Definition: GrpcRouteMetadataMatchMethod.h:178
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::GrpcRouteMetadataMatchMethod
GrpcRouteMetadataMatchMethod()
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod::SetSuffix
void SetSuffix(const Aws::String &value)
Definition: GrpcRouteMetadataMatchMethod.h:209