AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpGatewayRouteAction.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/HttpGatewayRouteRewrite.h>
9#include <aws/appmesh/model/GatewayRouteTarget.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API HttpGatewayRouteAction();
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const HttpGatewayRouteRewrite& GetRewrite() const{ return m_rewrite; }
47 inline bool RewriteHasBeenSet() const { return m_rewriteHasBeenSet; }
48 inline void SetRewrite(const HttpGatewayRouteRewrite& value) { m_rewriteHasBeenSet = true; m_rewrite = value; }
49 inline void SetRewrite(HttpGatewayRouteRewrite&& value) { m_rewriteHasBeenSet = true; m_rewrite = std::move(value); }
50 inline HttpGatewayRouteAction& WithRewrite(const HttpGatewayRouteRewrite& value) { SetRewrite(value); return *this;}
51 inline HttpGatewayRouteAction& WithRewrite(HttpGatewayRouteRewrite&& value) { SetRewrite(std::move(value)); return *this;}
53
55
59 inline const GatewayRouteTarget& GetTarget() const{ return m_target; }
60 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
61 inline void SetTarget(const GatewayRouteTarget& value) { m_targetHasBeenSet = true; m_target = value; }
62 inline void SetTarget(GatewayRouteTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
63 inline HttpGatewayRouteAction& WithTarget(const GatewayRouteTarget& value) { SetTarget(value); return *this;}
64 inline HttpGatewayRouteAction& WithTarget(GatewayRouteTarget&& value) { SetTarget(std::move(value)); return *this;}
66 private:
67
69 bool m_rewriteHasBeenSet = false;
70
71 GatewayRouteTarget m_target;
72 bool m_targetHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace AppMesh
77} // namespace Aws
void SetRewrite(const HttpGatewayRouteRewrite &value)
AWS_APPMESH_API HttpGatewayRouteAction(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API HttpGatewayRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRewrite(HttpGatewayRouteRewrite &&value)
HttpGatewayRouteAction & WithRewrite(const HttpGatewayRouteRewrite &value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTarget(const GatewayRouteTarget &value)
HttpGatewayRouteAction & WithRewrite(HttpGatewayRouteRewrite &&value)
HttpGatewayRouteAction & WithTarget(GatewayRouteTarget &&value)
HttpGatewayRouteAction & WithTarget(const GatewayRouteTarget &value)
const HttpGatewayRouteRewrite & GetRewrite() const
const GatewayRouteTarget & GetTarget() const
Aws::Utils::Json::JsonValue JsonValue