AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/interconnect/Interconnect_EXPORTS.h>
11#include <aws/interconnect/model/AttachPoint.h>
12#include <aws/interconnect/model/ConnectionState.h>
13#include <aws/interconnect/model/Provider.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace Interconnect {
24namespace Model {
25
33 public:
34 AWS_INTERCONNECT_API Connection() = default;
35 AWS_INTERCONNECT_API Connection(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_INTERCONNECT_API Connection& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 Connection& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
69 Connection& WithArn(ArnT&& value) {
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 Connection& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
98 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
99 template <typename BandwidthT = Aws::String>
100 void SetBandwidth(BandwidthT&& value) {
101 m_bandwidthHasBeenSet = true;
102 m_bandwidth = std::forward<BandwidthT>(value);
103 }
104 template <typename BandwidthT = Aws::String>
105 Connection& WithBandwidth(BandwidthT&& value) {
106 SetBandwidth(std::forward<BandwidthT>(value));
107 return *this;
108 }
110
112
115 inline const AttachPoint& GetAttachPoint() const { return m_attachPoint; }
116 inline bool AttachPointHasBeenSet() const { return m_attachPointHasBeenSet; }
117 template <typename AttachPointT = AttachPoint>
118 void SetAttachPoint(AttachPointT&& value) {
119 m_attachPointHasBeenSet = true;
120 m_attachPoint = std::forward<AttachPointT>(value);
121 }
122 template <typename AttachPointT = AttachPoint>
123 Connection& WithAttachPoint(AttachPointT&& value) {
124 SetAttachPoint(std::forward<AttachPointT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
134 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
135 template <typename EnvironmentIdT = Aws::String>
136 void SetEnvironmentId(EnvironmentIdT&& value) {
137 m_environmentIdHasBeenSet = true;
138 m_environmentId = std::forward<EnvironmentIdT>(value);
139 }
140 template <typename EnvironmentIdT = Aws::String>
141 Connection& WithEnvironmentId(EnvironmentIdT&& value) {
142 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
143 return *this;
144 }
146
148
151 inline const Provider& GetProvider() const { return m_provider; }
152 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
153 template <typename ProviderT = Provider>
154 void SetProvider(ProviderT&& value) {
155 m_providerHasBeenSet = true;
156 m_provider = std::forward<ProviderT>(value);
157 }
158 template <typename ProviderT = Provider>
159 Connection& WithProvider(ProviderT&& value) {
160 SetProvider(std::forward<ProviderT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetLocation() const { return m_location; }
171 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
172 template <typename LocationT = Aws::String>
173 void SetLocation(LocationT&& value) {
174 m_locationHasBeenSet = true;
175 m_location = std::forward<LocationT>(value);
176 }
177 template <typename LocationT = Aws::String>
178 Connection& WithLocation(LocationT&& value) {
179 SetLocation(std::forward<LocationT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetType() const { return m_type; }
189 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
190 template <typename TypeT = Aws::String>
191 void SetType(TypeT&& value) {
192 m_typeHasBeenSet = true;
193 m_type = std::forward<TypeT>(value);
194 }
195 template <typename TypeT = Aws::String>
196 Connection& WithType(TypeT&& value) {
197 SetType(std::forward<TypeT>(value));
198 return *this;
199 }
201
203
215 inline ConnectionState GetState() const { return m_state; }
216 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
217 inline void SetState(ConnectionState value) {
218 m_stateHasBeenSet = true;
219 m_state = value;
220 }
222 SetState(value);
223 return *this;
224 }
226
228
232 inline const Aws::String& GetSharedId() const { return m_sharedId; }
233 inline bool SharedIdHasBeenSet() const { return m_sharedIdHasBeenSet; }
234 template <typename SharedIdT = Aws::String>
235 void SetSharedId(SharedIdT&& value) {
236 m_sharedIdHasBeenSet = true;
237 m_sharedId = std::forward<SharedIdT>(value);
238 }
239 template <typename SharedIdT = Aws::String>
240 Connection& WithSharedId(SharedIdT&& value) {
241 SetSharedId(std::forward<SharedIdT>(value));
242 return *this;
243 }
245
247
250 inline int64_t GetBillingTier() const { return m_billingTier; }
251 inline bool BillingTierHasBeenSet() const { return m_billingTierHasBeenSet; }
252 inline void SetBillingTier(int64_t value) {
253 m_billingTierHasBeenSet = true;
254 m_billingTier = value;
255 }
256 inline Connection& WithBillingTier(int64_t value) {
257 SetBillingTier(value);
258 return *this;
259 }
261
263
266 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
267 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
268 template <typename OwnerAccountT = Aws::String>
269 void SetOwnerAccount(OwnerAccountT&& value) {
270 m_ownerAccountHasBeenSet = true;
271 m_ownerAccount = std::forward<OwnerAccountT>(value);
272 }
273 template <typename OwnerAccountT = Aws::String>
274 Connection& WithOwnerAccount(OwnerAccountT&& value) {
275 SetOwnerAccount(std::forward<OwnerAccountT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::String& GetActivationKey() const { return m_activationKey; }
285 inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
286 template <typename ActivationKeyT = Aws::String>
287 void SetActivationKey(ActivationKeyT&& value) {
288 m_activationKeyHasBeenSet = true;
289 m_activationKey = std::forward<ActivationKeyT>(value);
290 }
291 template <typename ActivationKeyT = Aws::String>
292 Connection& WithActivationKey(ActivationKeyT&& value) {
293 SetActivationKey(std::forward<ActivationKeyT>(value));
294 return *this;
295 }
297
299
302 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
303 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
304 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
305 void SetTags(TagsT&& value) {
306 m_tagsHasBeenSet = true;
307 m_tags = std::forward<TagsT>(value);
308 }
309 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
310 Connection& WithTags(TagsT&& value) {
311 SetTags(std::forward<TagsT>(value));
312 return *this;
313 }
314 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
315 Connection& AddTags(TagsKeyT&& key, TagsValueT&& value) {
316 m_tagsHasBeenSet = true;
317 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
318 return *this;
319 }
321 private:
322 Aws::String m_id;
323
324 Aws::String m_arn;
325
326 Aws::String m_description;
327
328 Aws::String m_bandwidth;
329
330 AttachPoint m_attachPoint;
331
332 Aws::String m_environmentId;
333
334 Provider m_provider;
335
336 Aws::String m_location;
337
338 Aws::String m_type;
339
341
342 Aws::String m_sharedId;
343
344 int64_t m_billingTier{0};
345
346 Aws::String m_ownerAccount;
347
348 Aws::String m_activationKey;
349
351 bool m_idHasBeenSet = false;
352 bool m_arnHasBeenSet = false;
353 bool m_descriptionHasBeenSet = false;
354 bool m_bandwidthHasBeenSet = false;
355 bool m_attachPointHasBeenSet = false;
356 bool m_environmentIdHasBeenSet = false;
357 bool m_providerHasBeenSet = false;
358 bool m_locationHasBeenSet = false;
359 bool m_typeHasBeenSet = false;
360 bool m_stateHasBeenSet = false;
361 bool m_sharedIdHasBeenSet = false;
362 bool m_billingTierHasBeenSet = false;
363 bool m_ownerAccountHasBeenSet = false;
364 bool m_activationKeyHasBeenSet = false;
365 bool m_tagsHasBeenSet = false;
366};
367
368} // namespace Model
369} // namespace Interconnect
370} // namespace Aws
Connection & WithEnvironmentId(EnvironmentIdT &&value)
Definition Connection.h:141
AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetLocation() const
Definition Connection.h:170
Connection & WithBandwidth(BandwidthT &&value)
Definition Connection.h:105
Connection & WithId(IdT &&value)
Definition Connection.h:51
void SetProvider(ProviderT &&value)
Definition Connection.h:154
const Aws::String & GetOwnerAccount() const
Definition Connection.h:266
const Aws::String & GetBandwidth() const
Definition Connection.h:97
Connection & WithOwnerAccount(OwnerAccountT &&value)
Definition Connection.h:274
Connection & WithDescription(DescriptionT &&value)
Definition Connection.h:87
const Aws::String & GetDescription() const
Definition Connection.h:79
const Provider & GetProvider() const
Definition Connection.h:151
const Aws::String & GetId() const
Definition Connection.h:43
void SetSharedId(SharedIdT &&value)
Definition Connection.h:235
Connection & WithAttachPoint(AttachPointT &&value)
Definition Connection.h:123
void SetLocation(LocationT &&value)
Definition Connection.h:173
const Aws::String & GetSharedId() const
Definition Connection.h:232
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Connection.h:302
Connection & WithArn(ArnT &&value)
Definition Connection.h:69
AWS_INTERCONNECT_API Connection(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Connection & WithState(ConnectionState value)
Definition Connection.h:221
Connection & WithType(TypeT &&value)
Definition Connection.h:196
void SetEnvironmentId(EnvironmentIdT &&value)
Definition Connection.h:136
const Aws::String & GetEnvironmentId() const
Definition Connection.h:133
Connection & WithLocation(LocationT &&value)
Definition Connection.h:178
Connection & WithSharedId(SharedIdT &&value)
Definition Connection.h:240
Connection & WithTags(TagsT &&value)
Definition Connection.h:310
const Aws::String & GetArn() const
Definition Connection.h:61
AWS_INTERCONNECT_API Connection & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetType() const
Definition Connection.h:188
AWS_INTERCONNECT_API Connection()=default
void SetAttachPoint(AttachPointT &&value)
Definition Connection.h:118
void SetState(ConnectionState value)
Definition Connection.h:217
Connection & WithBillingTier(int64_t value)
Definition Connection.h:256
Connection & WithActivationKey(ActivationKeyT &&value)
Definition Connection.h:292
Connection & WithProvider(ProviderT &&value)
Definition Connection.h:159
void SetDescription(DescriptionT &&value)
Definition Connection.h:82
const AttachPoint & GetAttachPoint() const
Definition Connection.h:115
void SetActivationKey(ActivationKeyT &&value)
Definition Connection.h:287
const Aws::String & GetActivationKey() const
Definition Connection.h:284
ConnectionState GetState() const
Definition Connection.h:215
void SetBandwidth(BandwidthT &&value)
Definition Connection.h:100
void SetOwnerAccount(OwnerAccountT &&value)
Definition Connection.h:269
Connection & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Connection.h:315
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String