7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/Tag.h>
13#include <aws/ec2/model/TransitGatewayAttachmentAssociation.h>
14#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
15#include <aws/ec2/model/TransitGatewayAttachmentState.h>
49 template <
typename TransitGatewayAttachmentIdT = Aws::String>
51 m_transitGatewayAttachmentIdHasBeenSet =
true;
52 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
54 template <
typename TransitGatewayAttachmentIdT = Aws::String>
67 template <
typename TransitGatewayIdT = Aws::String>
69 m_transitGatewayIdHasBeenSet =
true;
70 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
72 template <
typename TransitGatewayIdT = Aws::String>
85 template <
typename TransitGatewayOwnerIdT = Aws::String>
87 m_transitGatewayOwnerIdHasBeenSet =
true;
88 m_transitGatewayOwnerId = std::forward<TransitGatewayOwnerIdT>(value);
90 template <
typename TransitGatewayOwnerIdT = Aws::String>
103 template <
typename ResourceOwnerIdT = Aws::String>
105 m_resourceOwnerIdHasBeenSet =
true;
106 m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value);
108 template <
typename ResourceOwnerIdT = Aws::String>
123 m_resourceTypeHasBeenSet =
true;
124 m_resourceType = value;
138 template <
typename ResourceIdT = Aws::String>
140 m_resourceIdHasBeenSet =
true;
141 m_resourceId = std::forward<ResourceIdT>(value);
143 template <
typename ResourceIdT = Aws::String>
158 m_stateHasBeenSet =
true;
173 template <
typename AssociationT = TransitGatewayAttachmentAssociation>
175 m_associationHasBeenSet =
true;
176 m_association = std::forward<AssociationT>(value);
178 template <
typename AssociationT = TransitGatewayAttachmentAssociation>
191 template <
typename CreationTimeT = Aws::Utils::DateTime>
193 m_creationTimeHasBeenSet =
true;
194 m_creationTime = std::forward<CreationTimeT>(value);
196 template <
typename CreationTimeT = Aws::Utils::DateTime>
209 template <
typename TagsT = Aws::Vector<Tag>>
211 m_tagsHasBeenSet =
true;
212 m_tags = std::forward<TagsT>(value);
214 template <
typename TagsT = Aws::Vector<Tag>>
216 SetTags(std::forward<TagsT>(value));
219 template <
typename TagsT = Tag>
221 m_tagsHasBeenSet =
true;
222 m_tags.emplace_back(std::forward<TagsT>(value));
241 TransitGatewayAttachmentAssociation m_association;
246 bool m_transitGatewayAttachmentIdHasBeenSet =
false;
247 bool m_transitGatewayIdHasBeenSet =
false;
248 bool m_transitGatewayOwnerIdHasBeenSet =
false;
249 bool m_resourceOwnerIdHasBeenSet =
false;
250 bool m_resourceTypeHasBeenSet =
false;
251 bool m_resourceIdHasBeenSet =
false;
252 bool m_stateHasBeenSet =
false;
253 bool m_associationHasBeenSet =
false;
254 bool m_creationTimeHasBeenSet =
false;
255 bool m_tagsHasBeenSet =
false;
bool ResourceIdHasBeenSet() const
TransitGatewayAttachment & WithCreationTime(CreationTimeT &&value)
TransitGatewayAttachment & WithResourceOwnerId(ResourceOwnerIdT &&value)
const Aws::Vector< Tag > & GetTags() const
bool AssociationHasBeenSet() const
bool TransitGatewayIdHasBeenSet() const
const Aws::String & GetResourceOwnerId() const
TransitGatewayAttachment & WithAssociation(AssociationT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const TransitGatewayAttachmentAssociation & GetAssociation() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayAttachmentState GetState() const
void SetTransitGatewayOwnerId(TransitGatewayOwnerIdT &&value)
void SetResourceId(ResourceIdT &&value)
void SetAssociation(AssociationT &&value)
bool TagsHasBeenSet() const
bool CreationTimeHasBeenSet() const
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API TransitGatewayAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ResourceOwnerIdHasBeenSet() const
const Aws::String & GetTransitGatewayAttachmentId() const
AWS_EC2_API TransitGatewayAttachment()=default
bool StateHasBeenSet() const
TransitGatewayAttachment & WithResourceType(TransitGatewayAttachmentResourceType value)
void SetResourceType(TransitGatewayAttachmentResourceType value)
const Aws::String & GetTransitGatewayOwnerId() const
TransitGatewayAttachmentResourceType GetResourceType() const
TransitGatewayAttachment & WithTransitGatewayId(TransitGatewayIdT &&value)
TransitGatewayAttachment & WithTags(TagsT &&value)
TransitGatewayAttachment & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
const Aws::String & GetResourceId() const
TransitGatewayAttachment & WithResourceId(ResourceIdT &&value)
void SetTransitGatewayId(TransitGatewayIdT &&value)
bool ResourceTypeHasBeenSet() const
void SetResourceOwnerId(ResourceOwnerIdT &&value)
const Aws::String & GetTransitGatewayId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API TransitGatewayAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(TagsT &&value)
void SetCreationTime(CreationTimeT &&value)
TransitGatewayAttachment & AddTags(TagsT &&value)
void SetState(TransitGatewayAttachmentState value)
TransitGatewayAttachment & WithTransitGatewayOwnerId(TransitGatewayOwnerIdT &&value)
TransitGatewayAttachment & WithState(TransitGatewayAttachmentState value)
bool TransitGatewayOwnerIdHasBeenSet() const
bool TransitGatewayAttachmentIdHasBeenSet() const
TransitGatewayAttachmentState
TransitGatewayAttachmentResourceType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream