AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrpcGatewayRouteAction.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GrpcGatewayRouteRewrite.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 GrpcGatewayRouteAction();
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const GrpcGatewayRouteRewrite& GetRewrite() const{ return m_rewrite; }
47 inline bool RewriteHasBeenSet() const { return m_rewriteHasBeenSet; }
48 inline void SetRewrite(const GrpcGatewayRouteRewrite& value) { m_rewriteHasBeenSet = true; m_rewrite = value; }
49 inline void SetRewrite(GrpcGatewayRouteRewrite&& value) { m_rewriteHasBeenSet = true; m_rewrite = std::move(value); }
50 inline GrpcGatewayRouteAction& WithRewrite(const GrpcGatewayRouteRewrite& value) { SetRewrite(value); return *this;}
51 inline GrpcGatewayRouteAction& WithRewrite(GrpcGatewayRouteRewrite&& 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 GrpcGatewayRouteAction& WithTarget(const GatewayRouteTarget& value) { SetTarget(value); return *this;}
64 inline GrpcGatewayRouteAction& 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(GrpcGatewayRouteRewrite &&value)
void SetRewrite(const GrpcGatewayRouteRewrite &value)
GrpcGatewayRouteAction & WithRewrite(GrpcGatewayRouteRewrite &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcGatewayRouteAction & WithTarget(GatewayRouteTarget &&value)
void SetTarget(const GatewayRouteTarget &value)
AWS_APPMESH_API GrpcGatewayRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API GrpcGatewayRouteAction(Aws::Utils::Json::JsonView jsonValue)
const GatewayRouteTarget & GetTarget() const
const GrpcGatewayRouteRewrite & GetRewrite() const
GrpcGatewayRouteAction & WithTarget(const GatewayRouteTarget &value)
GrpcGatewayRouteAction & WithRewrite(const GrpcGatewayRouteRewrite &value)
Aws::Utils::Json::JsonValue JsonValue