AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename RewriteT = GrpcGatewayRouteRewrite>
49 void SetRewrite(RewriteT&& value) { m_rewriteHasBeenSet = true; m_rewrite = std::forward<RewriteT>(value); }
50 template<typename RewriteT = GrpcGatewayRouteRewrite>
51 GrpcGatewayRouteAction& WithRewrite(RewriteT&& value) { SetRewrite(std::forward<RewriteT>(value)); return *this;}
53
55
59 inline const GatewayRouteTarget& GetTarget() const { return m_target; }
60 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
61 template<typename TargetT = GatewayRouteTarget>
62 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
63 template<typename TargetT = GatewayRouteTarget>
64 GrpcGatewayRouteAction& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(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
GrpcGatewayRouteAction & WithRewrite(RewriteT &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API GrpcGatewayRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API GrpcGatewayRouteAction()=default
GrpcGatewayRouteAction & WithTarget(TargetT &&value)
AWS_APPMESH_API GrpcGatewayRouteAction(Aws::Utils::Json::JsonView jsonValue)
const GatewayRouteTarget & GetTarget() const
const GrpcGatewayRouteRewrite & GetRewrite() const
Aws::Utils::Json::JsonValue JsonValue