AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpGatewayRouteRewrite.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GatewayRouteHostnameRewrite.h>
9#include <aws/appmesh/model/HttpGatewayRoutePathRewrite.h>
10#include <aws/appmesh/model/HttpGatewayRoutePrefixRewrite.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppMesh
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPMESH_API HttpGatewayRouteRewrite();
40 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const GatewayRouteHostnameRewrite& GetHostname() const{ return m_hostname; }
48 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
49 inline void SetHostname(const GatewayRouteHostnameRewrite& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
50 inline void SetHostname(GatewayRouteHostnameRewrite&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
51 inline HttpGatewayRouteRewrite& WithHostname(const GatewayRouteHostnameRewrite& value) { SetHostname(value); return *this;}
52 inline HttpGatewayRouteRewrite& WithHostname(GatewayRouteHostnameRewrite&& value) { SetHostname(std::move(value)); return *this;}
54
56
59 inline const HttpGatewayRoutePathRewrite& GetPath() const{ return m_path; }
60 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
61 inline void SetPath(const HttpGatewayRoutePathRewrite& value) { m_pathHasBeenSet = true; m_path = value; }
62 inline void SetPath(HttpGatewayRoutePathRewrite&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
63 inline HttpGatewayRouteRewrite& WithPath(const HttpGatewayRoutePathRewrite& value) { SetPath(value); return *this;}
64 inline HttpGatewayRouteRewrite& WithPath(HttpGatewayRoutePathRewrite&& value) { SetPath(std::move(value)); return *this;}
66
68
71 inline const HttpGatewayRoutePrefixRewrite& GetPrefix() const{ return m_prefix; }
72 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
73 inline void SetPrefix(const HttpGatewayRoutePrefixRewrite& value) { m_prefixHasBeenSet = true; m_prefix = value; }
74 inline void SetPrefix(HttpGatewayRoutePrefixRewrite&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
75 inline HttpGatewayRouteRewrite& WithPrefix(const HttpGatewayRoutePrefixRewrite& value) { SetPrefix(value); return *this;}
76 inline HttpGatewayRouteRewrite& WithPrefix(HttpGatewayRoutePrefixRewrite&& value) { SetPrefix(std::move(value)); return *this;}
78 private:
79
81 bool m_hostnameHasBeenSet = false;
82
84 bool m_pathHasBeenSet = false;
85
87 bool m_prefixHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AppMesh
92} // namespace Aws
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
HttpGatewayRouteRewrite & WithPrefix(HttpGatewayRoutePrefixRewrite &&value)
void SetPrefix(HttpGatewayRoutePrefixRewrite &&value)
HttpGatewayRouteRewrite & WithHostname(GatewayRouteHostnameRewrite &&value)
void SetPath(HttpGatewayRoutePathRewrite &&value)
void SetHostname(GatewayRouteHostnameRewrite &&value)
HttpGatewayRouteRewrite & WithPath(const HttpGatewayRoutePathRewrite &value)
HttpGatewayRouteRewrite & WithPrefix(const HttpGatewayRoutePrefixRewrite &value)
void SetPath(const HttpGatewayRoutePathRewrite &value)
void SetHostname(const GatewayRouteHostnameRewrite &value)
HttpGatewayRouteRewrite & WithPath(HttpGatewayRoutePathRewrite &&value)
const HttpGatewayRoutePathRewrite & GetPath() const
HttpGatewayRouteRewrite & WithHostname(const GatewayRouteHostnameRewrite &value)
const HttpGatewayRoutePrefixRewrite & GetPrefix() const
AWS_APPMESH_API HttpGatewayRouteRewrite(Aws::Utils::Json::JsonView jsonValue)
const GatewayRouteHostnameRewrite & GetHostname() const
AWS_APPMESH_API HttpGatewayRouteRewrite & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrefix(const HttpGatewayRoutePrefixRewrite &value)
Aws::Utils::Json::JsonValue JsonValue