AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
VPCConnection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/NetworkInterface.h>
12#include <aws/quicksight/model/VPCConnectionAvailabilityStatus.h>
13#include <aws/quicksight/model/VPCConnectionResourceStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
33 public:
34 AWS_QUICKSIGHT_API VPCConnection() = default;
35 AWS_QUICKSIGHT_API VPCConnection(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API VPCConnection& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetVPCConnectionId() const { return m_vPCConnectionId; }
46 inline bool VPCConnectionIdHasBeenSet() const { return m_vPCConnectionIdHasBeenSet; }
47 template <typename VPCConnectionIdT = Aws::String>
48 void SetVPCConnectionId(VPCConnectionIdT&& value) {
49 m_vPCConnectionIdHasBeenSet = true;
50 m_vPCConnectionId = std::forward<VPCConnectionIdT>(value);
51 }
52 template <typename VPCConnectionIdT = Aws::String>
53 VPCConnection& WithVPCConnectionId(VPCConnectionIdT&& value) {
54 SetVPCConnectionId(std::forward<VPCConnectionIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
71 VPCConnection& WithArn(ArnT&& value) {
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 VPCConnection& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetVPCId() const { return m_vPCId; }
100 inline bool VPCIdHasBeenSet() const { return m_vPCIdHasBeenSet; }
101 template <typename VPCIdT = Aws::String>
102 void SetVPCId(VPCIdT&& value) {
103 m_vPCIdHasBeenSet = true;
104 m_vPCId = std::forward<VPCIdT>(value);
105 }
106 template <typename VPCIdT = Aws::String>
107 VPCConnection& WithVPCId(VPCIdT&& value) {
108 SetVPCId(std::forward<VPCIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
118 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
119 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
120 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
121 m_securityGroupIdsHasBeenSet = true;
122 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
123 }
124 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
125 VPCConnection& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
126 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
127 return *this;
128 }
129 template <typename SecurityGroupIdsT = Aws::String>
130 VPCConnection& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
131 m_securityGroupIdsHasBeenSet = true;
132 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Vector<Aws::String>& GetDnsResolvers() const { return m_dnsResolvers; }
142 inline bool DnsResolversHasBeenSet() const { return m_dnsResolversHasBeenSet; }
143 template <typename DnsResolversT = Aws::Vector<Aws::String>>
144 void SetDnsResolvers(DnsResolversT&& value) {
145 m_dnsResolversHasBeenSet = true;
146 m_dnsResolvers = std::forward<DnsResolversT>(value);
147 }
148 template <typename DnsResolversT = Aws::Vector<Aws::String>>
149 VPCConnection& WithDnsResolvers(DnsResolversT&& value) {
150 SetDnsResolvers(std::forward<DnsResolversT>(value));
151 return *this;
152 }
153 template <typename DnsResolversT = Aws::String>
154 VPCConnection& AddDnsResolvers(DnsResolversT&& value) {
155 m_dnsResolversHasBeenSet = true;
156 m_dnsResolvers.emplace_back(std::forward<DnsResolversT>(value));
157 return *this;
158 }
160
162
165 inline VPCConnectionResourceStatus GetStatus() const { return m_status; }
166 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
168 m_statusHasBeenSet = true;
169 m_status = value;
170 }
172 SetStatus(value);
173 return *this;
174 }
176
178
181 inline VPCConnectionAvailabilityStatus GetAvailabilityStatus() const { return m_availabilityStatus; }
182 inline bool AvailabilityStatusHasBeenSet() const { return m_availabilityStatusHasBeenSet; }
184 m_availabilityStatusHasBeenSet = true;
185 m_availabilityStatus = value;
186 }
189 return *this;
190 }
192
194
197 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
198 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
199 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
200 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
201 m_networkInterfacesHasBeenSet = true;
202 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
203 }
204 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
205 VPCConnection& WithNetworkInterfaces(NetworkInterfacesT&& value) {
206 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
207 return *this;
208 }
209 template <typename NetworkInterfacesT = NetworkInterface>
210 VPCConnection& AddNetworkInterfaces(NetworkInterfacesT&& value) {
211 m_networkInterfacesHasBeenSet = true;
212 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
222 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
223 template <typename RoleArnT = Aws::String>
224 void SetRoleArn(RoleArnT&& value) {
225 m_roleArnHasBeenSet = true;
226 m_roleArn = std::forward<RoleArnT>(value);
227 }
228 template <typename RoleArnT = Aws::String>
229 VPCConnection& WithRoleArn(RoleArnT&& value) {
230 SetRoleArn(std::forward<RoleArnT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
240 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
241 template <typename CreatedTimeT = Aws::Utils::DateTime>
242 void SetCreatedTime(CreatedTimeT&& value) {
243 m_createdTimeHasBeenSet = true;
244 m_createdTime = std::forward<CreatedTimeT>(value);
245 }
246 template <typename CreatedTimeT = Aws::Utils::DateTime>
247 VPCConnection& WithCreatedTime(CreatedTimeT&& value) {
248 SetCreatedTime(std::forward<CreatedTimeT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
258 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
259 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
260 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
261 m_lastUpdatedTimeHasBeenSet = true;
262 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
263 }
264 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
265 VPCConnection& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
266 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_vPCConnectionId;
272
273 Aws::String m_arn;
274
275 Aws::String m_name;
276
277 Aws::String m_vPCId;
278
279 Aws::Vector<Aws::String> m_securityGroupIds;
280
281 Aws::Vector<Aws::String> m_dnsResolvers;
282
284
286
287 Aws::Vector<NetworkInterface> m_networkInterfaces;
288
289 Aws::String m_roleArn;
290
291 Aws::Utils::DateTime m_createdTime{};
292
293 Aws::Utils::DateTime m_lastUpdatedTime{};
294 bool m_vPCConnectionIdHasBeenSet = false;
295 bool m_arnHasBeenSet = false;
296 bool m_nameHasBeenSet = false;
297 bool m_vPCIdHasBeenSet = false;
298 bool m_securityGroupIdsHasBeenSet = false;
299 bool m_dnsResolversHasBeenSet = false;
300 bool m_statusHasBeenSet = false;
301 bool m_availabilityStatusHasBeenSet = false;
302 bool m_networkInterfacesHasBeenSet = false;
303 bool m_roleArnHasBeenSet = false;
304 bool m_createdTimeHasBeenSet = false;
305 bool m_lastUpdatedTimeHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace QuickSight
310} // namespace Aws
const Aws::String & GetRoleArn() const
void SetAvailabilityStatus(VPCConnectionAvailabilityStatus value)
VPCConnection & WithLastUpdatedTime(LastUpdatedTimeT &&value)
VPCConnection & WithVPCConnectionId(VPCConnectionIdT &&value)
VPCConnection & WithCreatedTime(CreatedTimeT &&value)
void SetNetworkInterfaces(NetworkInterfacesT &&value)
const Aws::Vector< Aws::String > & GetDnsResolvers() const
AWS_QUICKSIGHT_API VPCConnection()=default
VPCConnection & WithName(NameT &&value)
VPCConnection & WithNetworkInterfaces(NetworkInterfacesT &&value)
AWS_QUICKSIGHT_API VPCConnection(Aws::Utils::Json::JsonView jsonValue)
VPCConnection & WithRoleArn(RoleArnT &&value)
VPCConnection & WithAvailabilityStatus(VPCConnectionAvailabilityStatus value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VPCConnection & WithDnsResolvers(DnsResolversT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetDnsResolvers(DnsResolversT &&value)
void SetStatus(VPCConnectionResourceStatus value)
void SetCreatedTime(CreatedTimeT &&value)
VPCConnection & WithStatus(VPCConnectionResourceStatus value)
VPCConnection & WithVPCId(VPCIdT &&value)
void SetVPCConnectionId(VPCConnectionIdT &&value)
VPCConnectionAvailabilityStatus GetAvailabilityStatus() const
AWS_QUICKSIGHT_API VPCConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
VPCConnection & AddNetworkInterfaces(NetworkInterfacesT &&value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
VPCConnection & WithArn(ArnT &&value)
VPCConnectionResourceStatus GetStatus() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
VPCConnection & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetVPCConnectionId() const
VPCConnection & AddDnsResolvers(DnsResolversT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetVPCId() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetArn() const
VPCConnection & WithSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue