AWS SDK for C++

AWS SDK for C++ Version 1.11.920

Loading...
Searching...
No Matches
GatewayConnection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/AccessType.h>
10#include <aws/ecs/model/GatewayConnectionResources.h>
11#include <aws/ecs/model/GatewayRouteStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS {
23namespace Model {
24
34 public:
35 AWS_ECS_API GatewayConnection() = default;
39
41
44 inline const Aws::String& GetGatewayArn() const { return m_gatewayArn; }
45 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
46 template <typename GatewayArnT = Aws::String>
47 void SetGatewayArn(GatewayArnT&& value) {
48 m_gatewayArnHasBeenSet = true;
49 m_gatewayArn = std::forward<GatewayArnT>(value);
50 }
51 template <typename GatewayArnT = Aws::String>
52 GatewayConnection& WithGatewayArn(GatewayArnT&& value) {
53 SetGatewayArn(std::forward<GatewayArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetGatewayRouteArn() const { return m_gatewayRouteArn; }
63 inline bool GatewayRouteArnHasBeenSet() const { return m_gatewayRouteArnHasBeenSet; }
64 template <typename GatewayRouteArnT = Aws::String>
65 void SetGatewayRouteArn(GatewayRouteArnT&& value) {
66 m_gatewayRouteArnHasBeenSet = true;
67 m_gatewayRouteArn = std::forward<GatewayRouteArnT>(value);
68 }
69 template <typename GatewayRouteArnT = Aws::String>
70 GatewayConnection& WithGatewayRouteArn(GatewayRouteArnT&& value) {
71 SetGatewayRouteArn(std::forward<GatewayRouteArnT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetPortName() const { return m_portName; }
82 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
83 template <typename PortNameT = Aws::String>
84 void SetPortName(PortNameT&& value) {
85 m_portNameHasBeenSet = true;
86 m_portName = std::forward<PortNameT>(value);
87 }
88 template <typename PortNameT = Aws::String>
89 GatewayConnection& WithPortName(PortNameT&& value) {
90 SetPortName(std::forward<PortNameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetServiceUrl() const { return m_serviceUrl; }
100 inline bool ServiceUrlHasBeenSet() const { return m_serviceUrlHasBeenSet; }
101 template <typename ServiceUrlT = Aws::String>
102 void SetServiceUrl(ServiceUrlT&& value) {
103 m_serviceUrlHasBeenSet = true;
104 m_serviceUrl = std::forward<ServiceUrlT>(value);
105 }
106 template <typename ServiceUrlT = Aws::String>
107 GatewayConnection& WithServiceUrl(ServiceUrlT&& value) {
108 SetServiceUrl(std::forward<ServiceUrlT>(value));
109 return *this;
110 }
112
114
120 inline AccessType GetAccessType() const { return m_accessType; }
121 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
122 inline void SetAccessType(AccessType value) {
123 m_accessTypeHasBeenSet = true;
124 m_accessType = value;
125 }
127 SetAccessType(value);
128 return *this;
129 }
131
133
136 inline GatewayRouteStatus GetStatus() const { return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 inline void SetStatus(GatewayRouteStatus value) {
139 m_statusHasBeenSet = true;
140 m_status = value;
141 }
143 SetStatus(value);
144 return *this;
145 }
147
149
152 inline const GatewayConnectionResources& GetResources() const { return m_resources; }
153 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
154 template <typename ResourcesT = GatewayConnectionResources>
155 void SetResources(ResourcesT&& value) {
156 m_resourcesHasBeenSet = true;
157 m_resources = std::forward<ResourcesT>(value);
158 }
159 template <typename ResourcesT = GatewayConnectionResources>
160 GatewayConnection& WithResources(ResourcesT&& value) {
161 SetResources(std::forward<ResourcesT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_gatewayArn;
167
168 Aws::String m_gatewayRouteArn;
169
170 Aws::String m_portName;
171
172 Aws::String m_serviceUrl;
173
174 AccessType m_accessType{AccessType::NOT_SET};
175
177
178 GatewayConnectionResources m_resources;
179 bool m_gatewayArnHasBeenSet = false;
180 bool m_gatewayRouteArnHasBeenSet = false;
181 bool m_portNameHasBeenSet = false;
182 bool m_serviceUrlHasBeenSet = false;
183 bool m_accessTypeHasBeenSet = false;
184 bool m_statusHasBeenSet = false;
185 bool m_resourcesHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace ECS
190} // namespace Aws
void SetGatewayArn(GatewayArnT &&value)
const Aws::String & GetGatewayArn() const
AWS_ECS_API GatewayConnection(Aws::Utils::Json::JsonView jsonValue)
GatewayRouteStatus GetStatus() const
GatewayConnection & WithResources(ResourcesT &&value)
AWS_ECS_API GatewayConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPortName(PortNameT &&value)
AWS_ECS_API GatewayConnection()=default
void SetResources(ResourcesT &&value)
void SetGatewayRouteArn(GatewayRouteArnT &&value)
GatewayConnection & WithPortName(PortNameT &&value)
GatewayConnection & WithServiceUrl(ServiceUrlT &&value)
const GatewayConnectionResources & GetResources() const
const Aws::String & GetGatewayRouteArn() const
GatewayConnection & WithGatewayArn(GatewayArnT &&value)
GatewayConnection & WithStatus(GatewayRouteStatus value)
void SetServiceUrl(ServiceUrlT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
GatewayConnection & WithAccessType(AccessType value)
void SetStatus(GatewayRouteStatus value)
const Aws::String & GetPortName() const
GatewayConnection & WithGatewayRouteArn(GatewayRouteArnT &&value)
const Aws::String & GetServiceUrl() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue