AWS SDK for C++  1.9.17
AWS SDK for C++
HttpRouteMatch.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace AppMesh
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
48  inline const Aws::Vector<HttpRouteHeader>& GetHeaders() const{ return m_headers; }
49 
53  inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
54 
58  inline void SetHeaders(const Aws::Vector<HttpRouteHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
59 
63  inline void SetHeaders(Aws::Vector<HttpRouteHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
64 
68  inline HttpRouteMatch& WithHeaders(const Aws::Vector<HttpRouteHeader>& value) { SetHeaders(value); return *this;}
69 
73  inline HttpRouteMatch& WithHeaders(Aws::Vector<HttpRouteHeader>&& value) { SetHeaders(std::move(value)); return *this;}
74 
78  inline HttpRouteMatch& AddHeaders(const HttpRouteHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
79 
83  inline HttpRouteMatch& AddHeaders(HttpRouteHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
84 
85 
89  inline const HttpMethod& GetMethod() const{ return m_method; }
90 
94  inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
95 
99  inline void SetMethod(const HttpMethod& value) { m_methodHasBeenSet = true; m_method = value; }
100 
104  inline void SetMethod(HttpMethod&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
105 
109  inline HttpRouteMatch& WithMethod(const HttpMethod& value) { SetMethod(value); return *this;}
110 
114  inline HttpRouteMatch& WithMethod(HttpMethod&& value) { SetMethod(std::move(value)); return *this;}
115 
116 
125  inline const Aws::String& GetPrefix() const{ return m_prefix; }
126 
135  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
136 
145  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
146 
155  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
156 
165  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
166 
175  inline HttpRouteMatch& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
176 
185  inline HttpRouteMatch& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
186 
195  inline HttpRouteMatch& WithPrefix(const char* value) { SetPrefix(value); return *this;}
196 
197 
201  inline const HttpScheme& GetScheme() const{ return m_scheme; }
202 
206  inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; }
207 
211  inline void SetScheme(const HttpScheme& value) { m_schemeHasBeenSet = true; m_scheme = value; }
212 
216  inline void SetScheme(HttpScheme&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); }
217 
221  inline HttpRouteMatch& WithScheme(const HttpScheme& value) { SetScheme(value); return *this;}
222 
226  inline HttpRouteMatch& WithScheme(HttpScheme&& value) { SetScheme(std::move(value)); return *this;}
227 
228  private:
229 
231  bool m_headersHasBeenSet;
232 
233  HttpMethod m_method;
234  bool m_methodHasBeenSet;
235 
236  Aws::String m_prefix;
237  bool m_prefixHasBeenSet;
238 
239  HttpScheme m_scheme;
240  bool m_schemeHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace AppMesh
245 } // namespace Aws
Aws::AppMesh::Model::HttpRouteMatch::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: HttpRouteMatch.h:145
Aws::AppMesh::Model::HttpRouteMatch::WithScheme
HttpRouteMatch & WithScheme(HttpScheme &&value)
Definition: HttpRouteMatch.h:226
Aws::AppMesh::Model::HttpRouteMatch::SetScheme
void SetScheme(const HttpScheme &value)
Definition: HttpRouteMatch.h:211
Aws::AppMesh::Model::HttpRouteMatch::SetScheme
void SetScheme(HttpScheme &&value)
Definition: HttpRouteMatch.h:216
Aws::AppMesh::Model::HttpRouteMatch::WithScheme
HttpRouteMatch & WithScheme(const HttpScheme &value)
Definition: HttpRouteMatch.h:221
Aws::AppMesh::Model::HttpRouteMatch::WithPrefix
HttpRouteMatch & WithPrefix(const char *value)
Definition: HttpRouteMatch.h:195
HttpScheme.h
Aws::AppMesh::Model::HttpRouteMatch::HeadersHasBeenSet
bool HeadersHasBeenSet() const
Definition: HttpRouteMatch.h:53
Aws::AppMesh::Model::HttpRouteHeader
Definition: HttpRouteHeader.h:34
Aws::AppMesh::Model::HttpRouteMatch::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::HttpRouteMatch::GetMethod
const HttpMethod & GetMethod() const
Definition: HttpRouteMatch.h:89
Aws::AppMesh::Model::HttpRouteMatch::WithPrefix
HttpRouteMatch & WithPrefix(Aws::String &&value)
Definition: HttpRouteMatch.h:185
Aws::AppMesh::Model::HttpRouteMatch::SetHeaders
void SetHeaders(Aws::Vector< HttpRouteHeader > &&value)
Definition: HttpRouteMatch.h:63
Aws::AppMesh::Model::HttpRouteMatch::HttpRouteMatch
HttpRouteMatch(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRouteMatch::WithHeaders
HttpRouteMatch & WithHeaders(const Aws::Vector< HttpRouteHeader > &value)
Definition: HttpRouteMatch.h:68
Aws::AppMesh::Model::HttpRouteMatch::WithPrefix
HttpRouteMatch & WithPrefix(const Aws::String &value)
Definition: HttpRouteMatch.h:175
Aws::AppMesh::Model::HttpRouteMatch::SchemeHasBeenSet
bool SchemeHasBeenSet() const
Definition: HttpRouteMatch.h:206
HttpRouteHeader.h
Aws::AppMesh::Model::HttpRouteMatch::SetHeaders
void SetHeaders(const Aws::Vector< HttpRouteHeader > &value)
Definition: HttpRouteMatch.h:58
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::HttpRouteMatch::WithMethod
HttpRouteMatch & WithMethod(const HttpMethod &value)
Definition: HttpRouteMatch.h:109
Aws::AppMesh::Model::HttpRouteMatch::GetPrefix
const Aws::String & GetPrefix() const
Definition: HttpRouteMatch.h:125
Aws::AppMesh::Model::HttpMethod
HttpMethod
Definition: HttpMethod.h:17
Aws::AppMesh::Model::HttpRouteMatch::WithHeaders
HttpRouteMatch & WithHeaders(Aws::Vector< HttpRouteHeader > &&value)
Definition: HttpRouteMatch.h:73
Aws::AppMesh::Model::HttpRouteMatch::WithMethod
HttpRouteMatch & WithMethod(HttpMethod &&value)
Definition: HttpRouteMatch.h:114
Aws::AppMesh::Model::HttpRouteMatch::GetHeaders
const Aws::Vector< HttpRouteHeader > & GetHeaders() const
Definition: HttpRouteMatch.h:48
HttpMethod.h
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpRouteMatch::SetMethod
void SetMethod(HttpMethod &&value)
Definition: HttpRouteMatch.h:104
Aws::AppMesh::Model::HttpRouteMatch::AddHeaders
HttpRouteMatch & AddHeaders(const HttpRouteHeader &value)
Definition: HttpRouteMatch.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HttpRouteMatch
Definition: HttpRouteMatch.h:37
Aws::AppMesh::Model::HttpRouteMatch::SetMethod
void SetMethod(const HttpMethod &value)
Definition: HttpRouteMatch.h:99
Aws::AppMesh::Model::HttpRouteMatch::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: HttpRouteMatch.h:155
Aws::AppMesh::Model::HttpRouteMatch::operator=
HttpRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRouteMatch::HttpRouteMatch
HttpRouteMatch()
Aws::AppMesh::Model::HttpRouteMatch::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: HttpRouteMatch.h:135
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpScheme
HttpScheme
Definition: HttpScheme.h:17
Aws::AppMesh::Model::HttpRouteMatch::SetPrefix
void SetPrefix(const char *value)
Definition: HttpRouteMatch.h:165
Aws::AppMesh::Model::HttpRouteMatch::GetScheme
const HttpScheme & GetScheme() const
Definition: HttpRouteMatch.h:201
Aws::AppMesh::Model::HttpRouteMatch::MethodHasBeenSet
bool MethodHasBeenSet() const
Definition: HttpRouteMatch.h:94
Aws::AppMesh::Model::HttpRouteMatch::AddHeaders
HttpRouteMatch & AddHeaders(HttpRouteHeader &&value)
Definition: HttpRouteMatch.h:83