AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
ConnectionSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/interconnect/Interconnect_EXPORTS.h>
10#include <aws/interconnect/model/AttachPoint.h>
11#include <aws/interconnect/model/ConnectionState.h>
12#include <aws/interconnect/model/Provider.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace Interconnect {
23namespace Model {
24
31 public:
32 AWS_INTERCONNECT_API ConnectionSummary() = default;
33 AWS_INTERCONNECT_API ConnectionSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_INTERCONNECT_API ConnectionSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 ConnectionSummary& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 ConnectionSummary& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 ConnectionSummary& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
96 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
97 template <typename BandwidthT = Aws::String>
98 void SetBandwidth(BandwidthT&& value) {
99 m_bandwidthHasBeenSet = true;
100 m_bandwidth = std::forward<BandwidthT>(value);
101 }
102 template <typename BandwidthT = Aws::String>
103 ConnectionSummary& WithBandwidth(BandwidthT&& value) {
104 SetBandwidth(std::forward<BandwidthT>(value));
105 return *this;
106 }
108
110
113 inline const AttachPoint& GetAttachPoint() const { return m_attachPoint; }
114 inline bool AttachPointHasBeenSet() const { return m_attachPointHasBeenSet; }
115 template <typename AttachPointT = AttachPoint>
116 void SetAttachPoint(AttachPointT&& value) {
117 m_attachPointHasBeenSet = true;
118 m_attachPoint = std::forward<AttachPointT>(value);
119 }
120 template <typename AttachPointT = AttachPoint>
121 ConnectionSummary& WithAttachPoint(AttachPointT&& value) {
122 SetAttachPoint(std::forward<AttachPointT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
132 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
133 template <typename EnvironmentIdT = Aws::String>
134 void SetEnvironmentId(EnvironmentIdT&& value) {
135 m_environmentIdHasBeenSet = true;
136 m_environmentId = std::forward<EnvironmentIdT>(value);
137 }
138 template <typename EnvironmentIdT = Aws::String>
139 ConnectionSummary& WithEnvironmentId(EnvironmentIdT&& value) {
140 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
141 return *this;
142 }
144
146
149 inline const Provider& GetProvider() const { return m_provider; }
150 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
151 template <typename ProviderT = Provider>
152 void SetProvider(ProviderT&& value) {
153 m_providerHasBeenSet = true;
154 m_provider = std::forward<ProviderT>(value);
155 }
156 template <typename ProviderT = Provider>
157 ConnectionSummary& WithProvider(ProviderT&& value) {
158 SetProvider(std::forward<ProviderT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetLocation() const { return m_location; }
169 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
170 template <typename LocationT = Aws::String>
171 void SetLocation(LocationT&& value) {
172 m_locationHasBeenSet = true;
173 m_location = std::forward<LocationT>(value);
174 }
175 template <typename LocationT = Aws::String>
176 ConnectionSummary& WithLocation(LocationT&& value) {
177 SetLocation(std::forward<LocationT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetType() const { return m_type; }
187 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
188 template <typename TypeT = Aws::String>
189 void SetType(TypeT&& value) {
190 m_typeHasBeenSet = true;
191 m_type = std::forward<TypeT>(value);
192 }
193 template <typename TypeT = Aws::String>
194 ConnectionSummary& WithType(TypeT&& value) {
195 SetType(std::forward<TypeT>(value));
196 return *this;
197 }
199
201
213 inline ConnectionState GetState() const { return m_state; }
214 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
215 inline void SetState(ConnectionState value) {
216 m_stateHasBeenSet = true;
217 m_state = value;
218 }
220 SetState(value);
221 return *this;
222 }
224
226
230 inline const Aws::String& GetSharedId() const { return m_sharedId; }
231 inline bool SharedIdHasBeenSet() const { return m_sharedIdHasBeenSet; }
232 template <typename SharedIdT = Aws::String>
233 void SetSharedId(SharedIdT&& value) {
234 m_sharedIdHasBeenSet = true;
235 m_sharedId = std::forward<SharedIdT>(value);
236 }
237 template <typename SharedIdT = Aws::String>
238 ConnectionSummary& WithSharedId(SharedIdT&& value) {
239 SetSharedId(std::forward<SharedIdT>(value));
240 return *this;
241 }
243
245
248 inline int64_t GetBillingTier() const { return m_billingTier; }
249 inline bool BillingTierHasBeenSet() const { return m_billingTierHasBeenSet; }
250 inline void SetBillingTier(int64_t value) {
251 m_billingTierHasBeenSet = true;
252 m_billingTier = value;
253 }
254 inline ConnectionSummary& WithBillingTier(int64_t value) {
255 SetBillingTier(value);
256 return *this;
257 }
259 private:
260 Aws::String m_id;
261
262 Aws::String m_arn;
263
264 Aws::String m_description;
265
266 Aws::String m_bandwidth;
267
268 AttachPoint m_attachPoint;
269
270 Aws::String m_environmentId;
271
272 Provider m_provider;
273
274 Aws::String m_location;
275
276 Aws::String m_type;
277
279
280 Aws::String m_sharedId;
281
282 int64_t m_billingTier{0};
283 bool m_idHasBeenSet = false;
284 bool m_arnHasBeenSet = false;
285 bool m_descriptionHasBeenSet = false;
286 bool m_bandwidthHasBeenSet = false;
287 bool m_attachPointHasBeenSet = false;
288 bool m_environmentIdHasBeenSet = false;
289 bool m_providerHasBeenSet = false;
290 bool m_locationHasBeenSet = false;
291 bool m_typeHasBeenSet = false;
292 bool m_stateHasBeenSet = false;
293 bool m_sharedIdHasBeenSet = false;
294 bool m_billingTierHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace Interconnect
299} // namespace Aws
ConnectionSummary & WithAttachPoint(AttachPointT &&value)
ConnectionSummary & WithBandwidth(BandwidthT &&value)
ConnectionSummary & WithDescription(DescriptionT &&value)
AWS_INTERCONNECT_API ConnectionSummary()=default
ConnectionSummary & WithState(ConnectionState value)
ConnectionSummary & WithProvider(ProviderT &&value)
AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_INTERCONNECT_API ConnectionSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConnectionSummary & WithType(TypeT &&value)
ConnectionSummary & WithBillingTier(int64_t value)
ConnectionSummary & WithLocation(LocationT &&value)
ConnectionSummary & WithArn(ArnT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
ConnectionSummary & WithSharedId(SharedIdT &&value)
AWS_INTERCONNECT_API ConnectionSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConnectionSummary & WithEnvironmentId(EnvironmentIdT &&value)
ConnectionSummary & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String