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>
23namespace Interconnect {
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;
45 template <
typename IdT = Aws::String>
47 m_idHasBeenSet =
true;
48 m_id = std::forward<IdT>(value);
50 template <
typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
63 template <
typename ArnT = Aws::String>
65 m_arnHasBeenSet =
true;
66 m_arn = std::forward<ArnT>(value);
68 template <
typename ArnT = Aws::String>
70 SetArn(std::forward<ArnT>(value));
81 template <
typename DescriptionT = Aws::String>
83 m_descriptionHasBeenSet =
true;
84 m_description = std::forward<DescriptionT>(value);
86 template <
typename DescriptionT = Aws::String>
99 template <
typename Bandw
idthT = Aws::String>
101 m_bandwidthHasBeenSet =
true;
102 m_bandwidth = std::forward<BandwidthT>(value);
104 template <
typename Bandw
idthT = Aws::String>
117 template <
typename AttachPo
intT = AttachPo
int>
119 m_attachPointHasBeenSet =
true;
120 m_attachPoint = std::forward<AttachPointT>(value);
122 template <
typename AttachPo
intT = AttachPo
int>
135 template <
typename EnvironmentIdT = Aws::String>
137 m_environmentIdHasBeenSet =
true;
138 m_environmentId = std::forward<EnvironmentIdT>(value);
140 template <
typename EnvironmentIdT = Aws::String>
153 template <
typename Prov
iderT = Prov
ider>
155 m_providerHasBeenSet =
true;
156 m_provider = std::forward<ProviderT>(value);
158 template <
typename Prov
iderT = Prov
ider>
172 template <
typename LocationT = Aws::String>
174 m_locationHasBeenSet =
true;
175 m_location = std::forward<LocationT>(value);
177 template <
typename LocationT = Aws::String>
190 template <
typename TypeT = Aws::String>
192 m_typeHasBeenSet =
true;
193 m_type = std::forward<TypeT>(value);
195 template <
typename TypeT = Aws::String>
197 SetType(std::forward<TypeT>(value));
218 m_stateHasBeenSet =
true;
234 template <
typename SharedIdT = Aws::String>
236 m_sharedIdHasBeenSet =
true;
237 m_sharedId = std::forward<SharedIdT>(value);
239 template <
typename SharedIdT = Aws::String>
253 m_billingTierHasBeenSet =
true;
254 m_billingTier = value;
268 template <
typename OwnerAccountT = Aws::String>
270 m_ownerAccountHasBeenSet =
true;
271 m_ownerAccount = std::forward<OwnerAccountT>(value);
273 template <
typename OwnerAccountT = Aws::String>
286 template <
typename ActivationKeyT = Aws::String>
288 m_activationKeyHasBeenSet =
true;
289 m_activationKey = std::forward<ActivationKeyT>(value);
291 template <
typename ActivationKeyT = Aws::String>
304 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
306 m_tagsHasBeenSet =
true;
307 m_tags = std::forward<TagsT>(value);
309 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
311 SetTags(std::forward<TagsT>(value));
314 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
316 m_tagsHasBeenSet =
true;
317 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
344 int64_t m_billingTier{0};
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;
int64_t GetBillingTier() const
Connection & WithEnvironmentId(EnvironmentIdT &&value)
bool DescriptionHasBeenSet() const
AWS_INTERCONNECT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool TagsHasBeenSet() const
const Aws::String & GetLocation() const
Connection & WithBandwidth(BandwidthT &&value)
Connection & WithId(IdT &&value)
bool StateHasBeenSet() const
bool OwnerAccountHasBeenSet() const
void SetProvider(ProviderT &&value)
bool LocationHasBeenSet() const
const Aws::String & GetOwnerAccount() const
const Aws::String & GetBandwidth() const
Connection & WithOwnerAccount(OwnerAccountT &&value)
void SetTags(TagsT &&value)
bool IdHasBeenSet() const
Connection & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
const Provider & GetProvider() const
const Aws::String & GetId() const
void SetType(TypeT &&value)
void SetSharedId(SharedIdT &&value)
bool SharedIdHasBeenSet() const
Connection & WithAttachPoint(AttachPointT &&value)
void SetLocation(LocationT &&value)
const Aws::String & GetSharedId() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Connection & WithArn(ArnT &&value)
AWS_INTERCONNECT_API Connection(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Connection & WithState(ConnectionState value)
Connection & WithType(TypeT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
const Aws::String & GetEnvironmentId() const
Connection & WithLocation(LocationT &&value)
Connection & WithSharedId(SharedIdT &&value)
Connection & WithTags(TagsT &&value)
const Aws::String & GetArn() const
bool TypeHasBeenSet() const
bool ArnHasBeenSet() const
bool AttachPointHasBeenSet() const
bool ProviderHasBeenSet() const
bool ActivationKeyHasBeenSet() const
bool BillingTierHasBeenSet() const
AWS_INTERCONNECT_API Connection & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetType() const
AWS_INTERCONNECT_API Connection()=default
void SetAttachPoint(AttachPointT &&value)
bool EnvironmentIdHasBeenSet() const
void SetState(ConnectionState value)
Connection & WithBillingTier(int64_t value)
Connection & WithActivationKey(ActivationKeyT &&value)
Connection & WithProvider(ProviderT &&value)
void SetBillingTier(int64_t value)
void SetDescription(DescriptionT &&value)
const AttachPoint & GetAttachPoint() const
bool BandwidthHasBeenSet() const
void SetActivationKey(ActivationKeyT &&value)
const Aws::String & GetActivationKey() const
ConnectionState GetState() const
void SetArn(ArnT &&value)
void SetBandwidth(BandwidthT &&value)
void SetOwnerAccount(OwnerAccountT &&value)
Connection & AddTags(TagsKeyT &&key, TagsValueT &&value)
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