AWS SDK for C++  1.9.131
AWS SDK for C++
GrpcMetadataMatchMethod.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 GrpcMetadataMatchMethod& WithExact(const Aws::String& value) { SetExact(value); return *this;}
71 
75  inline GrpcMetadataMatchMethod& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
76 
80  inline GrpcMetadataMatchMethod& 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 GrpcMetadataMatchMethod& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
112 
116  inline GrpcMetadataMatchMethod& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
117 
121  inline GrpcMetadataMatchMethod& WithPrefix(const char* value) { SetPrefix(value); return *this;}
122 
123 
124 
125  inline const MatchRange& GetRange() const{ return m_range; }
126 
127 
128  inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
129 
130 
131  inline void SetRange(const MatchRange& value) { m_rangeHasBeenSet = true; m_range = value; }
132 
133 
134  inline void SetRange(MatchRange&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
135 
136 
137  inline GrpcMetadataMatchMethod& WithRange(const MatchRange& value) { SetRange(value); return *this;}
138 
139 
140  inline GrpcMetadataMatchMethod& WithRange(MatchRange&& value) { SetRange(std::move(value)); return *this;}
141 
142 
146  inline const Aws::String& GetRegex() const{ return m_regex; }
147 
151  inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
152 
156  inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
157 
161  inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
162 
166  inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
167 
171  inline GrpcMetadataMatchMethod& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
172 
176  inline GrpcMetadataMatchMethod& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
177 
181  inline GrpcMetadataMatchMethod& WithRegex(const char* value) { SetRegex(value); return *this;}
182 
183 
187  inline const Aws::String& GetSuffix() const{ return m_suffix; }
188 
192  inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
193 
197  inline void SetSuffix(const Aws::String& value) { m_suffixHasBeenSet = true; m_suffix = value; }
198 
202  inline void SetSuffix(Aws::String&& value) { m_suffixHasBeenSet = true; m_suffix = std::move(value); }
203 
207  inline void SetSuffix(const char* value) { m_suffixHasBeenSet = true; m_suffix.assign(value); }
208 
212  inline GrpcMetadataMatchMethod& WithSuffix(const Aws::String& value) { SetSuffix(value); return *this;}
213 
217  inline GrpcMetadataMatchMethod& WithSuffix(Aws::String&& value) { SetSuffix(std::move(value)); return *this;}
218 
222  inline GrpcMetadataMatchMethod& WithSuffix(const char* value) { SetSuffix(value); return *this;}
223 
224  private:
225 
226  Aws::String m_exact;
227  bool m_exactHasBeenSet;
228 
229  Aws::String m_prefix;
230  bool m_prefixHasBeenSet;
231 
232  MatchRange m_range;
233  bool m_rangeHasBeenSet;
234 
235  Aws::String m_regex;
236  bool m_regexHasBeenSet;
237 
238  Aws::String m_suffix;
239  bool m_suffixHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace AppMesh
244 } // namespace Aws
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetRange
void SetRange(MatchRange &&value)
Definition: GrpcMetadataMatchMethod.h:134
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetSuffix
void SetSuffix(Aws::String &&value)
Definition: GrpcMetadataMatchMethod.h:202
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetRegex
void SetRegex(Aws::String &&value)
Definition: GrpcMetadataMatchMethod.h:161
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetSuffix
void SetSuffix(const Aws::String &value)
Definition: GrpcMetadataMatchMethod.h:197
Aws::AppMesh::Model::MatchRange
Definition: MatchRange.h:33
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithRange
GrpcMetadataMatchMethod & WithRange(MatchRange &&value)
Definition: GrpcMetadataMatchMethod.h:140
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithPrefix
GrpcMetadataMatchMethod & WithPrefix(Aws::String &&value)
Definition: GrpcMetadataMatchMethod.h:116
Aws::AppMesh::Model::GrpcMetadataMatchMethod::GetExact
const Aws::String & GetExact() const
Definition: GrpcMetadataMatchMethod.h:45
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetRegex
void SetRegex(const Aws::String &value)
Definition: GrpcMetadataMatchMethod.h:156
Aws::AppMesh::Model::GrpcMetadataMatchMethod::GrpcMetadataMatchMethod
GrpcMetadataMatchMethod(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithExact
GrpcMetadataMatchMethod & WithExact(const char *value)
Definition: GrpcMetadataMatchMethod.h:80
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SuffixHasBeenSet
bool SuffixHasBeenSet() const
Definition: GrpcMetadataMatchMethod.h:192
Aws::AppMesh::Model::GrpcMetadataMatchMethod::GetSuffix
const Aws::String & GetSuffix() const
Definition: GrpcMetadataMatchMethod.h:187
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GrpcMetadataMatchMethod::GetRegex
const Aws::String & GetRegex() const
Definition: GrpcMetadataMatchMethod.h:146
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetRegex
void SetRegex(const char *value)
Definition: GrpcMetadataMatchMethod.h:166
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetExact
void SetExact(Aws::String &&value)
Definition: GrpcMetadataMatchMethod.h:60
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithSuffix
GrpcMetadataMatchMethod & WithSuffix(const char *value)
Definition: GrpcMetadataMatchMethod.h:222
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithRegex
GrpcMetadataMatchMethod & WithRegex(const Aws::String &value)
Definition: GrpcMetadataMatchMethod.h:171
Aws::AppMesh::Model::GrpcMetadataMatchMethod
Definition: GrpcMetadataMatchMethod.h:34
Aws::AppMesh::Model::GrpcMetadataMatchMethod::ExactHasBeenSet
bool ExactHasBeenSet() const
Definition: GrpcMetadataMatchMethod.h:50
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetPrefix
void SetPrefix(const char *value)
Definition: GrpcMetadataMatchMethod.h:106
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: GrpcMetadataMatchMethod.h:101
Aws::AppMesh::Model::GrpcMetadataMatchMethod::RegexHasBeenSet
bool RegexHasBeenSet() const
Definition: GrpcMetadataMatchMethod.h:151
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithPrefix
GrpcMetadataMatchMethod & WithPrefix(const Aws::String &value)
Definition: GrpcMetadataMatchMethod.h:111
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithSuffix
GrpcMetadataMatchMethod & WithSuffix(const Aws::String &value)
Definition: GrpcMetadataMatchMethod.h:212
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetRange
void SetRange(const MatchRange &value)
Definition: GrpcMetadataMatchMethod.h:131
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetExact
void SetExact(const char *value)
Definition: GrpcMetadataMatchMethod.h:65
MatchRange.h
Aws::AppMesh::Model::GrpcMetadataMatchMethod::operator=
GrpcMetadataMatchMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcMetadataMatchMethod::GrpcMetadataMatchMethod
GrpcMetadataMatchMethod()
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithRegex
GrpcMetadataMatchMethod & WithRegex(Aws::String &&value)
Definition: GrpcMetadataMatchMethod.h:176
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetExact
void SetExact(const Aws::String &value)
Definition: GrpcMetadataMatchMethod.h:55
Aws::AppMesh::Model::GrpcMetadataMatchMethod::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: GrpcMetadataMatchMethod.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcMetadataMatchMethod::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::GrpcMetadataMatchMethod::GetRange
const MatchRange & GetRange() const
Definition: GrpcMetadataMatchMethod.h:125
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithSuffix
GrpcMetadataMatchMethod & WithSuffix(Aws::String &&value)
Definition: GrpcMetadataMatchMethod.h:217
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithRange
GrpcMetadataMatchMethod & WithRange(const MatchRange &value)
Definition: GrpcMetadataMatchMethod.h:137
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithPrefix
GrpcMetadataMatchMethod & WithPrefix(const char *value)
Definition: GrpcMetadataMatchMethod.h:121
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithRegex
GrpcMetadataMatchMethod & WithRegex(const char *value)
Definition: GrpcMetadataMatchMethod.h:181
Aws::AppMesh::Model::GrpcMetadataMatchMethod::GetPrefix
const Aws::String & GetPrefix() const
Definition: GrpcMetadataMatchMethod.h:86
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithExact
GrpcMetadataMatchMethod & WithExact(Aws::String &&value)
Definition: GrpcMetadataMatchMethod.h:75
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: GrpcMetadataMatchMethod.h:96
Aws::AppMesh::Model::GrpcMetadataMatchMethod::RangeHasBeenSet
bool RangeHasBeenSet() const
Definition: GrpcMetadataMatchMethod.h:128
Aws::AppMesh::Model::GrpcMetadataMatchMethod::WithExact
GrpcMetadataMatchMethod & WithExact(const Aws::String &value)
Definition: GrpcMetadataMatchMethod.h:70
Aws::AppMesh::Model::GrpcMetadataMatchMethod::SetSuffix
void SetSuffix(const char *value)
Definition: GrpcMetadataMatchMethod.h:207