AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpGatewayRouteMatch.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/GatewayRouteHostnameMatch.h>
10#include <aws/appmesh/model/HttpMethod.h>
11#include <aws/appmesh/model/HttpPathMatch.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/appmesh/model/HttpGatewayRouteHeader.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 HttpGatewayRouteMatch();
44 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::Vector<HttpGatewayRouteHeader>& GetHeaders() const{ return m_headers; }
52 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
53 inline void SetHeaders(const Aws::Vector<HttpGatewayRouteHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
54 inline void SetHeaders(Aws::Vector<HttpGatewayRouteHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
56 inline HttpGatewayRouteMatch& WithHeaders(Aws::Vector<HttpGatewayRouteHeader>&& value) { SetHeaders(std::move(value)); return *this;}
57 inline HttpGatewayRouteMatch& AddHeaders(const HttpGatewayRouteHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
58 inline HttpGatewayRouteMatch& AddHeaders(HttpGatewayRouteHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
60
62
65 inline const GatewayRouteHostnameMatch& GetHostname() const{ return m_hostname; }
66 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
67 inline void SetHostname(const GatewayRouteHostnameMatch& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
68 inline void SetHostname(GatewayRouteHostnameMatch&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
69 inline HttpGatewayRouteMatch& WithHostname(const GatewayRouteHostnameMatch& value) { SetHostname(value); return *this;}
70 inline HttpGatewayRouteMatch& WithHostname(GatewayRouteHostnameMatch&& value) { SetHostname(std::move(value)); return *this;}
72
74
77 inline const HttpMethod& GetMethod() const{ return m_method; }
78 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
79 inline void SetMethod(const HttpMethod& value) { m_methodHasBeenSet = true; m_method = value; }
80 inline void SetMethod(HttpMethod&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
81 inline HttpGatewayRouteMatch& WithMethod(const HttpMethod& value) { SetMethod(value); return *this;}
82 inline HttpGatewayRouteMatch& WithMethod(HttpMethod&& value) { SetMethod(std::move(value)); return *this;}
84
86
89 inline const HttpPathMatch& GetPath() const{ return m_path; }
90 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
91 inline void SetPath(const HttpPathMatch& value) { m_pathHasBeenSet = true; m_path = value; }
92 inline void SetPath(HttpPathMatch&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
93 inline HttpGatewayRouteMatch& WithPath(const HttpPathMatch& value) { SetPath(value); return *this;}
94 inline HttpGatewayRouteMatch& WithPath(HttpPathMatch&& value) { SetPath(std::move(value)); return *this;}
96
98
101 inline int GetPort() const{ return m_port; }
102 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
103 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
104 inline HttpGatewayRouteMatch& WithPort(int value) { SetPort(value); return *this;}
106
108
116 inline const Aws::String& GetPrefix() const{ return m_prefix; }
117 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
118 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
119 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
120 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
121 inline HttpGatewayRouteMatch& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
122 inline HttpGatewayRouteMatch& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
123 inline HttpGatewayRouteMatch& WithPrefix(const char* value) { SetPrefix(value); return *this;}
125
127
130 inline const Aws::Vector<HttpQueryParameter>& GetQueryParameters() const{ return m_queryParameters; }
131 inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
132 inline void SetQueryParameters(const Aws::Vector<HttpQueryParameter>& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; }
133 inline void SetQueryParameters(Aws::Vector<HttpQueryParameter>&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); }
136 inline HttpGatewayRouteMatch& AddQueryParameters(const HttpQueryParameter& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; }
137 inline HttpGatewayRouteMatch& AddQueryParameters(HttpQueryParameter&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(std::move(value)); return *this; }
139 private:
140
142 bool m_headersHasBeenSet = false;
143
144 GatewayRouteHostnameMatch m_hostname;
145 bool m_hostnameHasBeenSet = false;
146
147 HttpMethod m_method;
148 bool m_methodHasBeenSet = false;
149
150 HttpPathMatch m_path;
151 bool m_pathHasBeenSet = false;
152
153 int m_port;
154 bool m_portHasBeenSet = false;
155
156 Aws::String m_prefix;
157 bool m_prefixHasBeenSet = false;
158
159 Aws::Vector<HttpQueryParameter> m_queryParameters;
160 bool m_queryParametersHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace AppMesh
165} // namespace Aws
void SetQueryParameters(const Aws::Vector< HttpQueryParameter > &value)
HttpGatewayRouteMatch & WithMethod(HttpMethod &&value)
void SetHostname(GatewayRouteHostnameMatch &&value)
HttpGatewayRouteMatch & WithHostname(GatewayRouteHostnameMatch &&value)
HttpGatewayRouteMatch & WithQueryParameters(const Aws::Vector< HttpQueryParameter > &value)
const GatewayRouteHostnameMatch & GetHostname() const
HttpGatewayRouteMatch & AddQueryParameters(HttpQueryParameter &&value)
HttpGatewayRouteMatch & WithPrefix(Aws::String &&value)
HttpGatewayRouteMatch & WithHeaders(Aws::Vector< HttpGatewayRouteHeader > &&value)
HttpGatewayRouteMatch & WithQueryParameters(Aws::Vector< HttpQueryParameter > &&value)
AWS_APPMESH_API HttpGatewayRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetQueryParameters(Aws::Vector< HttpQueryParameter > &&value)
HttpGatewayRouteMatch & AddQueryParameters(const HttpQueryParameter &value)
const Aws::Vector< HttpGatewayRouteHeader > & GetHeaders() const
HttpGatewayRouteMatch & WithMethod(const HttpMethod &value)
HttpGatewayRouteMatch & WithHostname(const GatewayRouteHostnameMatch &value)
HttpGatewayRouteMatch & WithPath(const HttpPathMatch &value)
HttpGatewayRouteMatch & WithPath(HttpPathMatch &&value)
HttpGatewayRouteMatch & WithHeaders(const Aws::Vector< HttpGatewayRouteHeader > &value)
AWS_APPMESH_API HttpGatewayRouteMatch(Aws::Utils::Json::JsonView jsonValue)
HttpGatewayRouteMatch & AddHeaders(const HttpGatewayRouteHeader &value)
void SetHeaders(const Aws::Vector< HttpGatewayRouteHeader > &value)
HttpGatewayRouteMatch & WithPrefix(const char *value)
HttpGatewayRouteMatch & AddHeaders(HttpGatewayRouteHeader &&value)
HttpGatewayRouteMatch & WithPrefix(const Aws::String &value)
const Aws::Vector< HttpQueryParameter > & GetQueryParameters() const
void SetHostname(const GatewayRouteHostnameMatch &value)
void SetHeaders(Aws::Vector< HttpGatewayRouteHeader > &&value)
HttpGatewayRouteMatch & WithPort(int value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue