AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename HostnameT = GatewayRouteHostnameRewrite>
50 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
51 template<typename HostnameT = GatewayRouteHostnameRewrite>
52 HttpGatewayRouteRewrite& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
54
56
59 inline const HttpGatewayRoutePathRewrite& GetPath() const { return m_path; }
60 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
61 template<typename PathT = HttpGatewayRoutePathRewrite>
62 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
63 template<typename PathT = HttpGatewayRoutePathRewrite>
64 HttpGatewayRouteRewrite& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
66
68
71 inline const HttpGatewayRoutePrefixRewrite& GetPrefix() const { return m_prefix; }
72 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
73 template<typename PrefixT = HttpGatewayRoutePrefixRewrite>
74 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
75 template<typename PrefixT = HttpGatewayRoutePrefixRewrite>
76 HttpGatewayRouteRewrite& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(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
const HttpGatewayRoutePathRewrite & GetPath() const
HttpGatewayRouteRewrite & WithPrefix(PrefixT &&value)
HttpGatewayRouteRewrite & WithPath(PathT &&value)
const HttpGatewayRoutePrefixRewrite & GetPrefix() const
AWS_APPMESH_API HttpGatewayRouteRewrite(Aws::Utils::Json::JsonView jsonValue)
HttpGatewayRouteRewrite & WithHostname(HostnameT &&value)
const GatewayRouteHostnameRewrite & GetHostname() const
AWS_APPMESH_API HttpGatewayRouteRewrite & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API HttpGatewayRouteRewrite()=default
Aws::Utils::Json::JsonValue JsonValue