AWS SDK for C++  1.9.17
AWS SDK for C++
GrpcGatewayRouteAction.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppMesh
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const GatewayRouteTarget& GetTarget() const{ return m_target; }
46 
51  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
52 
57  inline void SetTarget(const GatewayRouteTarget& value) { m_targetHasBeenSet = true; m_target = value; }
58 
63  inline void SetTarget(GatewayRouteTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
64 
69  inline GrpcGatewayRouteAction& WithTarget(const GatewayRouteTarget& value) { SetTarget(value); return *this;}
70 
75  inline GrpcGatewayRouteAction& WithTarget(GatewayRouteTarget&& value) { SetTarget(std::move(value)); return *this;}
76 
77  private:
78 
79  GatewayRouteTarget m_target;
80  bool m_targetHasBeenSet;
81  };
82 
83 } // namespace Model
84 } // namespace AppMesh
85 } // namespace Aws
GatewayRouteTarget.h
Aws::AppMesh::Model::GrpcGatewayRouteAction::WithTarget
GrpcGatewayRouteAction & WithTarget(const GatewayRouteTarget &value)
Definition: GrpcGatewayRouteAction.h:69
Aws::AppMesh::Model::GrpcGatewayRouteAction::GrpcGatewayRouteAction
GrpcGatewayRouteAction(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcGatewayRouteAction::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: GrpcGatewayRouteAction.h:51
Aws::AppMesh::Model::GrpcGatewayRouteAction::GrpcGatewayRouteAction
GrpcGatewayRouteAction()
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GrpcGatewayRouteAction::GetTarget
const GatewayRouteTarget & GetTarget() const
Definition: GrpcGatewayRouteAction.h:45
Aws::AppMesh::Model::GrpcGatewayRouteAction::SetTarget
void SetTarget(GatewayRouteTarget &&value)
Definition: GrpcGatewayRouteAction.h:63
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::GrpcGatewayRouteAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GatewayRouteTarget
Definition: GatewayRouteTarget.h:33
Aws::AppMesh::Model::GrpcGatewayRouteAction::SetTarget
void SetTarget(const GatewayRouteTarget &value)
Definition: GrpcGatewayRouteAction.h:57
Aws::AppMesh::Model::GrpcGatewayRouteAction::WithTarget
GrpcGatewayRouteAction & WithTarget(GatewayRouteTarget &&value)
Definition: GrpcGatewayRouteAction.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcGatewayRouteAction
Definition: GrpcGatewayRouteAction.h:33
Aws::AppMesh::Model::GrpcGatewayRouteAction::operator=
GrpcGatewayRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28