7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
11#include <aws/ec2/model/TransitGatewayAttachmentState.h>
12#include <aws/ec2/model/TransitGatewayAttachmentAssociation.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ec2/model/Tag.h>
55 template<
typename TransitGatewayAttachmentIdT = Aws::String>
56 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet =
true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
57 template<
typename TransitGatewayAttachmentIdT = Aws::String>
67 template<
typename TransitGatewayIdT = Aws::String>
68 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet =
true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
69 template<
typename TransitGatewayIdT = Aws::String>
79 template<
typename TransitGatewayOwnerIdT = Aws::String>
80 void SetTransitGatewayOwnerId(TransitGatewayOwnerIdT&& value) { m_transitGatewayOwnerIdHasBeenSet =
true; m_transitGatewayOwnerId = std::forward<TransitGatewayOwnerIdT>(value); }
81 template<
typename TransitGatewayOwnerIdT = Aws::String>
91 template<
typename ResourceOwnerIdT = Aws::String>
92 void SetResourceOwnerId(ResourceOwnerIdT&& value) { m_resourceOwnerIdHasBeenSet =
true; m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value); }
93 template<
typename ResourceOwnerIdT = Aws::String>
114 template<
typename ResourceIdT = Aws::String>
115 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet =
true; m_resourceId = std::forward<ResourceIdT>(value); }
116 template<
typename ResourceIdT = Aws::String>
137 template<
typename AssociationT = TransitGatewayAttachmentAssociation>
138 void SetAssociation(AssociationT&& value) { m_associationHasBeenSet =
true; m_association = std::forward<AssociationT>(value); }
139 template<
typename AssociationT = TransitGatewayAttachmentAssociation>
149 template<
typename CreationTimeT = Aws::Utils::DateTime>
150 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
151 template<
typename CreationTimeT = Aws::Utils::DateTime>
161 template<
typename TagsT = Aws::Vector<Tag>>
162 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
163 template<
typename TagsT = Aws::Vector<Tag>>
165 template<
typename TagsT = Tag>
171 bool m_transitGatewayAttachmentIdHasBeenSet =
false;
174 bool m_transitGatewayIdHasBeenSet =
false;
177 bool m_transitGatewayOwnerIdHasBeenSet =
false;
180 bool m_resourceOwnerIdHasBeenSet =
false;
183 bool m_resourceTypeHasBeenSet =
false;
186 bool m_resourceIdHasBeenSet =
false;
189 bool m_stateHasBeenSet =
false;
191 TransitGatewayAttachmentAssociation m_association;
192 bool m_associationHasBeenSet =
false;
195 bool m_creationTimeHasBeenSet =
false;
198 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