AWS SDK for C++  1.9.123
AWS SDK for C++
HttpGatewayRouteRewrite.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AppMesh
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const GatewayRouteHostnameRewrite& GetHostname() const{ return m_hostname; }
47 
51  inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
52 
56  inline void SetHostname(const GatewayRouteHostnameRewrite& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
57 
61  inline void SetHostname(GatewayRouteHostnameRewrite&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
62 
66  inline HttpGatewayRouteRewrite& WithHostname(const GatewayRouteHostnameRewrite& value) { SetHostname(value); return *this;}
67 
71  inline HttpGatewayRouteRewrite& WithHostname(GatewayRouteHostnameRewrite&& value) { SetHostname(std::move(value)); return *this;}
72 
73 
77  inline const HttpGatewayRoutePathRewrite& GetPath() const{ return m_path; }
78 
82  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
83 
87  inline void SetPath(const HttpGatewayRoutePathRewrite& value) { m_pathHasBeenSet = true; m_path = value; }
88 
92  inline void SetPath(HttpGatewayRoutePathRewrite&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
93 
97  inline HttpGatewayRouteRewrite& WithPath(const HttpGatewayRoutePathRewrite& value) { SetPath(value); return *this;}
98 
102  inline HttpGatewayRouteRewrite& WithPath(HttpGatewayRoutePathRewrite&& value) { SetPath(std::move(value)); return *this;}
103 
104 
108  inline const HttpGatewayRoutePrefixRewrite& GetPrefix() const{ return m_prefix; }
109 
113  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
114 
118  inline void SetPrefix(const HttpGatewayRoutePrefixRewrite& value) { m_prefixHasBeenSet = true; m_prefix = value; }
119 
123  inline void SetPrefix(HttpGatewayRoutePrefixRewrite&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
124 
128  inline HttpGatewayRouteRewrite& WithPrefix(const HttpGatewayRoutePrefixRewrite& value) { SetPrefix(value); return *this;}
129 
133  inline HttpGatewayRouteRewrite& WithPrefix(HttpGatewayRoutePrefixRewrite&& value) { SetPrefix(std::move(value)); return *this;}
134 
135  private:
136 
137  GatewayRouteHostnameRewrite m_hostname;
138  bool m_hostnameHasBeenSet;
139 
141  bool m_pathHasBeenSet;
142 
144  bool m_prefixHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace AppMesh
149 } // namespace Aws
Aws::AppMesh::Model::HttpGatewayRouteRewrite::SetHostname
void SetHostname(GatewayRouteHostnameRewrite &&value)
Definition: HttpGatewayRouteRewrite.h:61
Aws::AppMesh::Model::HttpGatewayRouteRewrite::SetHostname
void SetHostname(const GatewayRouteHostnameRewrite &value)
Definition: HttpGatewayRouteRewrite.h:56
Aws::AppMesh::Model::HttpGatewayRouteRewrite::HttpGatewayRouteRewrite
HttpGatewayRouteRewrite(Aws::Utils::Json::JsonView jsonValue)
GatewayRouteHostnameRewrite.h
Aws::AppMesh::Model::HttpGatewayRouteRewrite::WithPrefix
HttpGatewayRouteRewrite & WithPrefix(const HttpGatewayRoutePrefixRewrite &value)
Definition: HttpGatewayRouteRewrite.h:128
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite
Definition: HttpGatewayRoutePrefixRewrite.h:34
Aws::AppMesh::Model::HttpGatewayRouteRewrite::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpGatewayRouteRewrite::GetHostname
const GatewayRouteHostnameRewrite & GetHostname() const
Definition: HttpGatewayRouteRewrite.h:46
Aws::AppMesh::Model::HttpGatewayRouteRewrite::SetPrefix
void SetPrefix(const HttpGatewayRoutePrefixRewrite &value)
Definition: HttpGatewayRouteRewrite.h:118
Aws::AppMesh::Model::HttpGatewayRouteRewrite::SetPrefix
void SetPrefix(HttpGatewayRoutePrefixRewrite &&value)
Definition: HttpGatewayRouteRewrite.h:123
Aws::AppMesh::Model::HttpGatewayRouteRewrite::WithPrefix
HttpGatewayRouteRewrite & WithPrefix(HttpGatewayRoutePrefixRewrite &&value)
Definition: HttpGatewayRouteRewrite.h:133
Aws::AppMesh::Model::HttpGatewayRouteRewrite::WithHostname
HttpGatewayRouteRewrite & WithHostname(const GatewayRouteHostnameRewrite &value)
Definition: HttpGatewayRouteRewrite.h:66
AppMesh_EXPORTS.h
HttpGatewayRoutePathRewrite.h
Aws::AppMesh::Model::HttpGatewayRouteRewrite::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: HttpGatewayRouteRewrite.h:113
Aws::AppMesh::Model::HttpGatewayRouteRewrite::HttpGatewayRouteRewrite
HttpGatewayRouteRewrite()
HttpGatewayRoutePrefixRewrite.h
Aws::AppMesh::Model::HttpGatewayRouteRewrite::HostnameHasBeenSet
bool HostnameHasBeenSet() const
Definition: HttpGatewayRouteRewrite.h:51
Aws::AppMesh::Model::GatewayRouteHostnameRewrite
Definition: GatewayRouteHostnameRewrite.h:33
Aws::AppMesh::Model::HttpGatewayRouteRewrite::SetPath
void SetPath(HttpGatewayRoutePathRewrite &&value)
Definition: HttpGatewayRouteRewrite.h:92
Aws::AppMesh::Model::HttpGatewayRouteRewrite::GetPath
const HttpGatewayRoutePathRewrite & GetPath() const
Definition: HttpGatewayRouteRewrite.h:77
Aws::AppMesh::Model::HttpGatewayRouteRewrite::GetPrefix
const HttpGatewayRoutePrefixRewrite & GetPrefix() const
Definition: HttpGatewayRouteRewrite.h:108
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::HttpGatewayRouteRewrite::SetPath
void SetPath(const HttpGatewayRoutePathRewrite &value)
Definition: HttpGatewayRouteRewrite.h:87
Aws::AppMesh::Model::HttpGatewayRouteRewrite::WithPath
HttpGatewayRouteRewrite & WithPath(const HttpGatewayRoutePathRewrite &value)
Definition: HttpGatewayRouteRewrite.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpGatewayRouteRewrite::PathHasBeenSet
bool PathHasBeenSet() const
Definition: HttpGatewayRouteRewrite.h:82
Aws::AppMesh::Model::HttpGatewayRouteRewrite::operator=
HttpGatewayRouteRewrite & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRouteRewrite::WithHostname
HttpGatewayRouteRewrite & WithHostname(GatewayRouteHostnameRewrite &&value)
Definition: HttpGatewayRouteRewrite.h:71
Aws::AppMesh::Model::HttpGatewayRouteRewrite
Definition: HttpGatewayRouteRewrite.h:35
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpGatewayRouteRewrite::WithPath
HttpGatewayRouteRewrite & WithPath(HttpGatewayRoutePathRewrite &&value)
Definition: HttpGatewayRouteRewrite.h:102
Aws::AppMesh::Model::HttpGatewayRoutePathRewrite
Definition: HttpGatewayRoutePathRewrite.h:32