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/TransitGatewayAttachmentState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/TransitGatewayVpcAttachmentOptions.h>
14#include <aws/ec2/model/Tag.h>
53 template<
typename TransitGatewayAttachmentIdT = Aws::String>
54 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet =
true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
55 template<
typename TransitGatewayAttachmentIdT = Aws::String>
65 template<
typename TransitGatewayIdT = Aws::String>
66 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet =
true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
67 template<
typename TransitGatewayIdT = Aws::String>
77 template<
typename VpcIdT = Aws::String>
78 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet =
true; m_vpcId = std::forward<VpcIdT>(value); }
79 template<
typename VpcIdT = Aws::String>
89 template<
typename VpcOwnerIdT = Aws::String>
90 void SetVpcOwnerId(VpcOwnerIdT&& value) { m_vpcOwnerIdHasBeenSet =
true; m_vpcOwnerId = std::forward<VpcOwnerIdT>(value); }
91 template<
typename VpcOwnerIdT = Aws::String>
112 template<
typename SubnetIdsT = Aws::Vector<Aws::String>>
113 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet =
true; m_subnetIds = std::forward<SubnetIdsT>(value); }
114 template<
typename SubnetIdsT = Aws::Vector<Aws::String>>
116 template<
typename SubnetIdsT = Aws::String>
126 template<
typename CreationTimeT = Aws::Utils::DateTime>
127 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
128 template<
typename CreationTimeT = Aws::Utils::DateTime>
138 template<
typename OptionsT = TransitGatewayVpcAttachmentOptions>
139 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet =
true; m_options = std::forward<OptionsT>(value); }
140 template<
typename OptionsT = TransitGatewayVpcAttachmentOptions>
150 template<
typename TagsT = Aws::Vector<Tag>>
151 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
152 template<
typename TagsT = Aws::Vector<Tag>>
154 template<
typename TagsT = Tag>
160 bool m_transitGatewayAttachmentIdHasBeenSet =
false;
163 bool m_transitGatewayIdHasBeenSet =
false;
166 bool m_vpcIdHasBeenSet =
false;
169 bool m_vpcOwnerIdHasBeenSet =
false;
172 bool m_stateHasBeenSet =
false;
175 bool m_subnetIdsHasBeenSet =
false;
178 bool m_creationTimeHasBeenSet =
false;
180 TransitGatewayVpcAttachmentOptions m_options;
181 bool m_optionsHasBeenSet =
false;
184 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