AWS SDK for C++  1.9.126
AWS SDK for C++
GatewayRouteTarget.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 
44  inline const GatewayRouteVirtualService& GetVirtualService() const{ return m_virtualService; }
45 
49  inline bool VirtualServiceHasBeenSet() const { return m_virtualServiceHasBeenSet; }
50 
54  inline void SetVirtualService(const GatewayRouteVirtualService& value) { m_virtualServiceHasBeenSet = true; m_virtualService = value; }
55 
59  inline void SetVirtualService(GatewayRouteVirtualService&& value) { m_virtualServiceHasBeenSet = true; m_virtualService = std::move(value); }
60 
64  inline GatewayRouteTarget& WithVirtualService(const GatewayRouteVirtualService& value) { SetVirtualService(value); return *this;}
65 
69  inline GatewayRouteTarget& WithVirtualService(GatewayRouteVirtualService&& value) { SetVirtualService(std::move(value)); return *this;}
70 
71  private:
72 
73  GatewayRouteVirtualService m_virtualService;
74  bool m_virtualServiceHasBeenSet;
75  };
76 
77 } // namespace Model
78 } // namespace AppMesh
79 } // namespace Aws
Aws::AppMesh::Model::GatewayRouteTarget::operator=
GatewayRouteTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GatewayRouteTarget::GatewayRouteTarget
GatewayRouteTarget(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GatewayRouteTarget::GatewayRouteTarget
GatewayRouteTarget()
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GatewayRouteTarget::SetVirtualService
void SetVirtualService(const GatewayRouteVirtualService &value)
Definition: GatewayRouteTarget.h:54
Aws::AppMesh::Model::GatewayRouteTarget::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GatewayRouteTarget::VirtualServiceHasBeenSet
bool VirtualServiceHasBeenSet() const
Definition: GatewayRouteTarget.h:49
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AppMesh::Model::GatewayRouteTarget::WithVirtualService
GatewayRouteTarget & WithVirtualService(const GatewayRouteVirtualService &value)
Definition: GatewayRouteTarget.h:64
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GatewayRouteTarget
Definition: GatewayRouteTarget.h:33
Aws::AppMesh::Model::GatewayRouteTarget::SetVirtualService
void SetVirtualService(GatewayRouteVirtualService &&value)
Definition: GatewayRouteTarget.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GatewayRouteTarget::GetVirtualService
const GatewayRouteVirtualService & GetVirtualService() const
Definition: GatewayRouteTarget.h:44
Aws::AppMesh::Model::GatewayRouteTarget::WithVirtualService
GatewayRouteTarget & WithVirtualService(GatewayRouteVirtualService &&value)
Definition: GatewayRouteTarget.h:69
Aws::AppMesh::Model::GatewayRouteVirtualService
Definition: GatewayRouteVirtualService.h:33
GatewayRouteVirtualService.h
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28