AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
VPCConnectionSummary.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
34 public:
35 AWS_QUICKSIGHT_API VPCConnectionSummary() = default;
36 AWS_QUICKSIGHT_API VPCConnectionSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetVPCConnectionId() const { return m_vPCConnectionId; }
47 inline bool VPCConnectionIdHasBeenSet() const { return m_vPCConnectionIdHasBeenSet; }
48 template <typename VPCConnectionIdT = Aws::String>
49 void SetVPCConnectionId(VPCConnectionIdT&& value) {
50 m_vPCConnectionIdHasBeenSet = true;
51 m_vPCConnectionId = std::forward<VPCConnectionIdT>(value);
52 }
53 template <typename VPCConnectionIdT = Aws::String>
54 VPCConnectionSummary& WithVPCConnectionId(VPCConnectionIdT&& value) {
55 SetVPCConnectionId(std::forward<VPCConnectionIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetArn() const { return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 template <typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) {
68 m_arnHasBeenSet = true;
69 m_arn = std::forward<ArnT>(value);
70 }
71 template <typename ArnT = Aws::String>
73 SetArn(std::forward<ArnT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetVPCId() const { return m_vPCId; }
101 inline bool VPCIdHasBeenSet() const { return m_vPCIdHasBeenSet; }
102 template <typename VPCIdT = Aws::String>
103 void SetVPCId(VPCIdT&& value) {
104 m_vPCIdHasBeenSet = true;
105 m_vPCId = std::forward<VPCIdT>(value);
106 }
107 template <typename VPCIdT = Aws::String>
109 SetVPCId(std::forward<VPCIdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
119 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
120 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
121 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
122 m_securityGroupIdsHasBeenSet = true;
123 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
124 }
125 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
126 VPCConnectionSummary& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
127 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
128 return *this;
129 }
130 template <typename SecurityGroupIdsT = Aws::String>
131 VPCConnectionSummary& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
132 m_securityGroupIdsHasBeenSet = true;
133 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<Aws::String>& GetDnsResolvers() const { return m_dnsResolvers; }
143 inline bool DnsResolversHasBeenSet() const { return m_dnsResolversHasBeenSet; }
144 template <typename DnsResolversT = Aws::Vector<Aws::String>>
145 void SetDnsResolvers(DnsResolversT&& value) {
146 m_dnsResolversHasBeenSet = true;
147 m_dnsResolvers = std::forward<DnsResolversT>(value);
148 }
149 template <typename DnsResolversT = Aws::Vector<Aws::String>>
150 VPCConnectionSummary& WithDnsResolvers(DnsResolversT&& value) {
151 SetDnsResolvers(std::forward<DnsResolversT>(value));
152 return *this;
153 }
154 template <typename DnsResolversT = Aws::String>
155 VPCConnectionSummary& AddDnsResolvers(DnsResolversT&& value) {
156 m_dnsResolversHasBeenSet = true;
157 m_dnsResolvers.emplace_back(std::forward<DnsResolversT>(value));
158 return *this;
159 }
161
163
166 inline VPCConnectionResourceStatus GetStatus() const { return m_status; }
167 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
169 m_statusHasBeenSet = true;
170 m_status = value;
171 }
173 SetStatus(value);
174 return *this;
175 }
177
179
182 inline VPCConnectionAvailabilityStatus GetAvailabilityStatus() const { return m_availabilityStatus; }
183 inline bool AvailabilityStatusHasBeenSet() const { return m_availabilityStatusHasBeenSet; }
185 m_availabilityStatusHasBeenSet = true;
186 m_availabilityStatus = value;
187 }
190 return *this;
191 }
193
195
198 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
199 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
200 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
201 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
202 m_networkInterfacesHasBeenSet = true;
203 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
204 }
205 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
206 VPCConnectionSummary& WithNetworkInterfaces(NetworkInterfacesT&& value) {
207 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
208 return *this;
209 }
210 template <typename NetworkInterfacesT = NetworkInterface>
211 VPCConnectionSummary& AddNetworkInterfaces(NetworkInterfacesT&& value) {
212 m_networkInterfacesHasBeenSet = true;
213 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
223 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
224 template <typename RoleArnT = Aws::String>
225 void SetRoleArn(RoleArnT&& value) {
226 m_roleArnHasBeenSet = true;
227 m_roleArn = std::forward<RoleArnT>(value);
228 }
229 template <typename RoleArnT = Aws::String>
231 SetRoleArn(std::forward<RoleArnT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
241 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
242 template <typename CreatedTimeT = Aws::Utils::DateTime>
243 void SetCreatedTime(CreatedTimeT&& value) {
244 m_createdTimeHasBeenSet = true;
245 m_createdTime = std::forward<CreatedTimeT>(value);
246 }
247 template <typename CreatedTimeT = Aws::Utils::DateTime>
248 VPCConnectionSummary& WithCreatedTime(CreatedTimeT&& value) {
249 SetCreatedTime(std::forward<CreatedTimeT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
259 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
260 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
261 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
262 m_lastUpdatedTimeHasBeenSet = true;
263 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
264 }
265 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
266 VPCConnectionSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
267 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_vPCConnectionId;
273
274 Aws::String m_arn;
275
276 Aws::String m_name;
277
278 Aws::String m_vPCId;
279
280 Aws::Vector<Aws::String> m_securityGroupIds;
281
282 Aws::Vector<Aws::String> m_dnsResolvers;
283
285
287
288 Aws::Vector<NetworkInterface> m_networkInterfaces;
289
290 Aws::String m_roleArn;
291
292 Aws::Utils::DateTime m_createdTime{};
293
294 Aws::Utils::DateTime m_lastUpdatedTime{};
295 bool m_vPCConnectionIdHasBeenSet = false;
296 bool m_arnHasBeenSet = false;
297 bool m_nameHasBeenSet = false;
298 bool m_vPCIdHasBeenSet = false;
299 bool m_securityGroupIdsHasBeenSet = false;
300 bool m_dnsResolversHasBeenSet = false;
301 bool m_statusHasBeenSet = false;
302 bool m_availabilityStatusHasBeenSet = false;
303 bool m_networkInterfacesHasBeenSet = false;
304 bool m_roleArnHasBeenSet = false;
305 bool m_createdTimeHasBeenSet = false;
306 bool m_lastUpdatedTimeHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace QuickSight
311} // namespace Aws
VPCConnectionSummary & WithName(NameT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
VPCConnectionSummary & AddSecurityGroupIds(SecurityGroupIdsT &&value)
VPCConnectionSummary & WithAvailabilityStatus(VPCConnectionAvailabilityStatus value)
VPCConnectionSummary & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_QUICKSIGHT_API VPCConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
VPCConnectionSummary & WithArn(ArnT &&value)
VPCConnectionSummary & WithRoleArn(RoleArnT &&value)
void SetAvailabilityStatus(VPCConnectionAvailabilityStatus value)
VPCConnectionSummary & WithDnsResolvers(DnsResolversT &&value)
VPCConnectionResourceStatus GetStatus() const
VPCConnectionSummary & WithVPCId(VPCIdT &&value)
VPCConnectionSummary & WithStatus(VPCConnectionResourceStatus value)
VPCConnectionSummary & AddNetworkInterfaces(NetworkInterfacesT &&value)
VPCConnectionSummary & WithVPCConnectionId(VPCConnectionIdT &&value)
void SetStatus(VPCConnectionResourceStatus value)
const Aws::Vector< Aws::String > & GetDnsResolvers() const
VPCConnectionSummary & WithNetworkInterfaces(NetworkInterfacesT &&value)
VPCConnectionSummary & AddDnsResolvers(DnsResolversT &&value)
AWS_QUICKSIGHT_API VPCConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
VPCConnectionSummary & WithCreatedTime(CreatedTimeT &&value)
AWS_QUICKSIGHT_API VPCConnectionSummary()=default
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetVPCConnectionId(VPCConnectionIdT &&value)
void SetNetworkInterfaces(NetworkInterfacesT &&value)
VPCConnectionAvailabilityStatus GetAvailabilityStatus() const
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
VPCConnectionSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue