AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpRouteMatch.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appmesh/model/HttpMethod.h>
10#include <aws/appmesh/model/HttpPathMatch.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/appmesh/model/HttpScheme.h>
13#include <aws/appmesh/model/HttpRouteHeader.h>
14#include <aws/appmesh/model/HttpQueryParameter.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace AppMesh
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_APPMESH_API HttpRouteMatch();
42 AWS_APPMESH_API HttpRouteMatch(Aws::Utils::Json::JsonView jsonValue);
44 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::Vector<HttpRouteHeader>& GetHeaders() const{ return m_headers; }
52 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
53 inline void SetHeaders(const Aws::Vector<HttpRouteHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
54 inline void SetHeaders(Aws::Vector<HttpRouteHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
55 inline HttpRouteMatch& WithHeaders(const Aws::Vector<HttpRouteHeader>& value) { SetHeaders(value); return *this;}
56 inline HttpRouteMatch& WithHeaders(Aws::Vector<HttpRouteHeader>&& value) { SetHeaders(std::move(value)); return *this;}
57 inline HttpRouteMatch& AddHeaders(const HttpRouteHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
58 inline HttpRouteMatch& AddHeaders(HttpRouteHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
60
62
65 inline const HttpMethod& GetMethod() const{ return m_method; }
66 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
67 inline void SetMethod(const HttpMethod& value) { m_methodHasBeenSet = true; m_method = value; }
68 inline void SetMethod(HttpMethod&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
69 inline HttpRouteMatch& WithMethod(const HttpMethod& value) { SetMethod(value); return *this;}
70 inline HttpRouteMatch& WithMethod(HttpMethod&& value) { SetMethod(std::move(value)); return *this;}
72
74
77 inline const HttpPathMatch& GetPath() const{ return m_path; }
78 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
79 inline void SetPath(const HttpPathMatch& value) { m_pathHasBeenSet = true; m_path = value; }
80 inline void SetPath(HttpPathMatch&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
81 inline HttpRouteMatch& WithPath(const HttpPathMatch& value) { SetPath(value); return *this;}
82 inline HttpRouteMatch& WithPath(HttpPathMatch&& value) { SetPath(std::move(value)); return *this;}
84
86
89 inline int GetPort() const{ return m_port; }
90 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
91 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
92 inline HttpRouteMatch& WithPort(int value) { SetPort(value); return *this;}
94
96
104 inline const Aws::String& GetPrefix() const{ return m_prefix; }
105 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
106 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
107 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
108 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
109 inline HttpRouteMatch& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
110 inline HttpRouteMatch& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
111 inline HttpRouteMatch& WithPrefix(const char* value) { SetPrefix(value); return *this;}
113
115
118 inline const Aws::Vector<HttpQueryParameter>& GetQueryParameters() const{ return m_queryParameters; }
119 inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
120 inline void SetQueryParameters(const Aws::Vector<HttpQueryParameter>& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; }
121 inline void SetQueryParameters(Aws::Vector<HttpQueryParameter>&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); }
124 inline HttpRouteMatch& AddQueryParameters(const HttpQueryParameter& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; }
125 inline HttpRouteMatch& AddQueryParameters(HttpQueryParameter&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(std::move(value)); return *this; }
127
129
133 inline const HttpScheme& GetScheme() const{ return m_scheme; }
134 inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; }
135 inline void SetScheme(const HttpScheme& value) { m_schemeHasBeenSet = true; m_scheme = value; }
136 inline void SetScheme(HttpScheme&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); }
137 inline HttpRouteMatch& WithScheme(const HttpScheme& value) { SetScheme(value); return *this;}
138 inline HttpRouteMatch& WithScheme(HttpScheme&& value) { SetScheme(std::move(value)); return *this;}
140 private:
141
143 bool m_headersHasBeenSet = false;
144
145 HttpMethod m_method;
146 bool m_methodHasBeenSet = false;
147
148 HttpPathMatch m_path;
149 bool m_pathHasBeenSet = false;
150
151 int m_port;
152 bool m_portHasBeenSet = false;
153
154 Aws::String m_prefix;
155 bool m_prefixHasBeenSet = false;
156
157 Aws::Vector<HttpQueryParameter> m_queryParameters;
158 bool m_queryParametersHasBeenSet = false;
159
160 HttpScheme m_scheme;
161 bool m_schemeHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace AppMesh
166} // namespace Aws
void SetPrefix(const Aws::String &value)
HttpRouteMatch & WithMethod(const HttpMethod &value)
HttpRouteMatch & AddQueryParameters(HttpQueryParameter &&value)
void SetPath(const HttpPathMatch &value)
const HttpMethod & GetMethod() const
HttpRouteMatch & WithHeaders(const Aws::Vector< HttpRouteHeader > &value)
void SetScheme(HttpScheme &&value)
void SetMethod(const HttpMethod &value)
void SetScheme(const HttpScheme &value)
HttpRouteMatch & WithQueryParameters(Aws::Vector< HttpQueryParameter > &&value)
HttpRouteMatch & WithHeaders(Aws::Vector< HttpRouteHeader > &&value)
const HttpPathMatch & GetPath() const
const Aws::Vector< HttpQueryParameter > & GetQueryParameters() const
HttpRouteMatch & AddHeaders(HttpRouteHeader &&value)
AWS_APPMESH_API HttpRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
HttpRouteMatch & WithPath(HttpPathMatch &&value)
HttpRouteMatch & WithPrefix(const Aws::String &value)
const HttpScheme & GetScheme() const
const Aws::Vector< HttpRouteHeader > & GetHeaders() const
HttpRouteMatch & AddHeaders(const HttpRouteHeader &value)
const Aws::String & GetPrefix() const
void SetPath(HttpPathMatch &&value)
HttpRouteMatch & WithMethod(HttpMethod &&value)
HttpRouteMatch & WithScheme(const HttpScheme &value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrefix(const char *value)
HttpRouteMatch & WithQueryParameters(const Aws::Vector< HttpQueryParameter > &value)
HttpRouteMatch & WithPath(const HttpPathMatch &value)
AWS_APPMESH_API HttpRouteMatch(Aws::Utils::Json::JsonView jsonValue)
void SetHeaders(Aws::Vector< HttpRouteHeader > &&value)
HttpRouteMatch & WithPrefix(const char *value)
HttpRouteMatch & WithScheme(HttpScheme &&value)
HttpRouteMatch & WithPrefix(Aws::String &&value)
void SetPrefix(Aws::String &&value)
void SetMethod(HttpMethod &&value)
void SetQueryParameters(const Aws::Vector< HttpQueryParameter > &value)
HttpRouteMatch & WithPort(int value)
void SetHeaders(const Aws::Vector< HttpRouteHeader > &value)
void SetQueryParameters(Aws::Vector< HttpQueryParameter > &&value)
HttpRouteMatch & AddQueryParameters(const HttpQueryParameter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue