AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppMesh {
20namespace Model {
21
29 public:
30 AWS_APPMESH_API GatewayRouteTarget() = default;
33 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetPort() const { return m_port; }
40 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
41 inline void SetPort(int value) {
42 m_portHasBeenSet = true;
43 m_port = value;
44 }
45 inline GatewayRouteTarget& WithPort(int value) {
46 SetPort(value);
47 return *this;
48 }
50
52
55 inline const GatewayRouteVirtualService& GetVirtualService() const { return m_virtualService; }
56 inline bool VirtualServiceHasBeenSet() const { return m_virtualServiceHasBeenSet; }
57 template <typename VirtualServiceT = GatewayRouteVirtualService>
58 void SetVirtualService(VirtualServiceT&& value) {
59 m_virtualServiceHasBeenSet = true;
60 m_virtualService = std::forward<VirtualServiceT>(value);
61 }
62 template <typename VirtualServiceT = GatewayRouteVirtualService>
63 GatewayRouteTarget& WithVirtualService(VirtualServiceT&& value) {
64 SetVirtualService(std::forward<VirtualServiceT>(value));
65 return *this;
66 }
68 private:
69 int m_port{0};
70
71 GatewayRouteVirtualService m_virtualService;
72 bool m_portHasBeenSet = false;
73 bool m_virtualServiceHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AppMesh
78} // namespace Aws
GatewayRouteTarget & WithPort(int value)
AWS_APPMESH_API GatewayRouteTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API GatewayRouteTarget()=default
GatewayRouteTarget & WithVirtualService(VirtualServiceT &&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(VirtualServiceT &&value)
Aws::Utils::Json::JsonValue JsonValue