AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GatewayRouteTarget.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GatewayRouteVirtualService.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMesh
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APPMESH_API GatewayRouteTarget();
38 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetPort() const{ return m_port; }
46 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
47 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
48 inline GatewayRouteTarget& WithPort(int value) { SetPort(value); return *this;}
50
52
55 inline const GatewayRouteVirtualService& GetVirtualService() const{ return m_virtualService; }
56 inline bool VirtualServiceHasBeenSet() const { return m_virtualServiceHasBeenSet; }
57 inline void SetVirtualService(const GatewayRouteVirtualService& value) { m_virtualServiceHasBeenSet = true; m_virtualService = value; }
58 inline void SetVirtualService(GatewayRouteVirtualService&& value) { m_virtualServiceHasBeenSet = true; m_virtualService = std::move(value); }
60 inline GatewayRouteTarget& WithVirtualService(GatewayRouteVirtualService&& value) { SetVirtualService(std::move(value)); return *this;}
62 private:
63
64 int m_port;
65 bool m_portHasBeenSet = false;
66
67 GatewayRouteVirtualService m_virtualService;
68 bool m_virtualServiceHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace AppMesh
73} // namespace Aws
GatewayRouteTarget & WithPort(int value)
GatewayRouteTarget & WithVirtualService(GatewayRouteVirtualService &&value)
AWS_APPMESH_API GatewayRouteTarget(Aws::Utils::Json::JsonView jsonValue)
GatewayRouteTarget & WithVirtualService(const GatewayRouteVirtualService &value)
AWS_APPMESH_API GatewayRouteTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
const GatewayRouteVirtualService & GetVirtualService() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVirtualService(GatewayRouteVirtualService &&value)
void SetVirtualService(const GatewayRouteVirtualService &value)
Aws::Utils::Json::JsonValue JsonValue