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/TransitGatewayAttachmentState.h>
14#include <aws/ec2/model/TransitGatewayVpcAttachmentOptions.h>
47 template <
typename TransitGatewayAttachmentIdT = Aws::String>
49 m_transitGatewayAttachmentIdHasBeenSet =
true;
50 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
52 template <
typename TransitGatewayAttachmentIdT = Aws::String>
65 template <
typename TransitGatewayIdT = Aws::String>
67 m_transitGatewayIdHasBeenSet =
true;
68 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
70 template <
typename TransitGatewayIdT = Aws::String>
83 template <
typename VpcIdT = Aws::String>
85 m_vpcIdHasBeenSet =
true;
86 m_vpcId = std::forward<VpcIdT>(value);
88 template <
typename VpcIdT = Aws::String>
90 SetVpcId(std::forward<VpcIdT>(value));
101 template <
typename VpcOwnerIdT = Aws::String>
103 m_vpcOwnerIdHasBeenSet =
true;
104 m_vpcOwnerId = std::forward<VpcOwnerIdT>(value);
106 template <
typename VpcOwnerIdT = Aws::String>
121 m_stateHasBeenSet =
true;
136 template <
typename SubnetIdsT = Aws::Vector<Aws::String>>
138 m_subnetIdsHasBeenSet =
true;
139 m_subnetIds = std::forward<SubnetIdsT>(value);
141 template <
typename SubnetIdsT = Aws::Vector<Aws::String>>
146 template <
typename SubnetIdsT = Aws::String>
148 m_subnetIdsHasBeenSet =
true;
149 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
160 template <
typename CreationTimeT = Aws::Utils::DateTime>
162 m_creationTimeHasBeenSet =
true;
163 m_creationTime = std::forward<CreationTimeT>(value);
165 template <
typename CreationTimeT = Aws::Utils::DateTime>
178 template <
typename OptionsT = TransitGatewayVpcAttachmentOptions>
180 m_optionsHasBeenSet =
true;
181 m_options = std::forward<OptionsT>(value);
183 template <
typename OptionsT = TransitGatewayVpcAttachmentOptions>
196 template <
typename TagsT = Aws::Vector<Tag>>
198 m_tagsHasBeenSet =
true;
199 m_tags = std::forward<TagsT>(value);
201 template <
typename TagsT = Aws::Vector<Tag>>
203 SetTags(std::forward<TagsT>(value));
206 template <
typename TagsT = Tag>
208 m_tagsHasBeenSet =
true;
209 m_tags.emplace_back(std::forward<TagsT>(value));
228 TransitGatewayVpcAttachmentOptions m_options;
231 bool m_transitGatewayAttachmentIdHasBeenSet =
false;
232 bool m_transitGatewayIdHasBeenSet =
false;
233 bool m_vpcIdHasBeenSet =
false;
234 bool m_vpcOwnerIdHasBeenSet =
false;
235 bool m_stateHasBeenSet =
false;
236 bool m_subnetIdsHasBeenSet =
false;
237 bool m_creationTimeHasBeenSet =
false;
238 bool m_optionsHasBeenSet =
false;
239 bool m_tagsHasBeenSet =
false;
TransitGatewayVpcAttachment & WithVpcId(VpcIdT &&value)
const Aws::String & GetTransitGatewayAttachmentId() const
TransitGatewayAttachmentState GetState() const
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
bool StateHasBeenSet() const
void SetVpcId(VpcIdT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::String & GetVpcId() const
void SetState(TransitGatewayAttachmentState value)
bool SubnetIdsHasBeenSet() const
void SetTransitGatewayId(TransitGatewayIdT &&value)
bool TransitGatewayIdHasBeenSet() const
bool OptionsHasBeenSet() const
TransitGatewayVpcAttachment & WithOptions(OptionsT &&value)
TransitGatewayVpcAttachment & AddSubnetIds(SubnetIdsT &&value)
TransitGatewayVpcAttachment & WithSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Tag > & GetTags() const
TransitGatewayVpcAttachment & WithTags(TagsT &&value)
TransitGatewayVpcAttachment & WithState(TransitGatewayAttachmentState value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayVpcAttachment & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayVpcAttachment & WithVpcOwnerId(VpcOwnerIdT &&value)
bool TagsHasBeenSet() const
TransitGatewayVpcAttachment & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API TransitGatewayVpcAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubnetIds(SubnetIdsT &&value)
bool VpcIdHasBeenSet() const
const Aws::String & GetTransitGatewayId() const
const Aws::Utils::DateTime & GetCreationTime() const
const TransitGatewayVpcAttachmentOptions & GetOptions() const
void SetCreationTime(CreationTimeT &&value)
bool VpcOwnerIdHasBeenSet() const
AWS_EC2_API TransitGatewayVpcAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTags(TagsT &&value)
bool TransitGatewayAttachmentIdHasBeenSet() const
void SetVpcOwnerId(VpcOwnerIdT &&value)
AWS_EC2_API TransitGatewayVpcAttachment()=default
TransitGatewayVpcAttachment & WithCreationTime(CreationTimeT &&value)
TransitGatewayVpcAttachment & AddTags(TagsT &&value)
bool CreationTimeHasBeenSet() const
const Aws::String & GetVpcOwnerId() const
void SetOptions(OptionsT &&value)
TransitGatewayAttachmentState
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