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/PeeringAttachmentStatus.h>
13#include <aws/ec2/model/PeeringTgwInfo.h>
14#include <aws/ec2/model/Tag.h>
15#include <aws/ec2/model/TransitGatewayAttachmentState.h>
16#include <aws/ec2/model/TransitGatewayPeeringAttachmentOptions.h>
50 template <
typename TransitGatewayAttachmentIdT = Aws::String>
52 m_transitGatewayAttachmentIdHasBeenSet =
true;
53 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
55 template <
typename TransitGatewayAttachmentIdT = Aws::String>
68 template <
typename AccepterTransitGatewayAttachmentIdT = Aws::String>
70 m_accepterTransitGatewayAttachmentIdHasBeenSet =
true;
71 m_accepterTransitGatewayAttachmentId = std::forward<AccepterTransitGatewayAttachmentIdT>(value);
73 template <
typename AccepterTransitGatewayAttachmentIdT = Aws::String>
86 template <
typename RequesterTgwInfoT = PeeringTgwInfo>
88 m_requesterTgwInfoHasBeenSet =
true;
89 m_requesterTgwInfo = std::forward<RequesterTgwInfoT>(value);
91 template <
typename RequesterTgwInfoT = PeeringTgwInfo>
104 template <
typename AccepterTgwInfoT = PeeringTgwInfo>
106 m_accepterTgwInfoHasBeenSet =
true;
107 m_accepterTgwInfo = std::forward<AccepterTgwInfoT>(value);
109 template <
typename AccepterTgwInfoT = PeeringTgwInfo>
122 template <
typename OptionsT = TransitGatewayPeeringAttachmentOptions>
124 m_optionsHasBeenSet =
true;
125 m_options = std::forward<OptionsT>(value);
127 template <
typename OptionsT = TransitGatewayPeeringAttachmentOptions>
140 template <
typename StatusT = PeeringAttachmentStatus>
142 m_statusHasBeenSet =
true;
143 m_status = std::forward<StatusT>(value);
145 template <
typename StatusT = PeeringAttachmentStatus>
160 m_stateHasBeenSet =
true;
175 template <
typename CreationTimeT = Aws::Utils::DateTime>
177 m_creationTimeHasBeenSet =
true;
178 m_creationTime = std::forward<CreationTimeT>(value);
180 template <
typename CreationTimeT = Aws::Utils::DateTime>
193 template <
typename TagsT = Aws::Vector<Tag>>
195 m_tagsHasBeenSet =
true;
196 m_tags = std::forward<TagsT>(value);
198 template <
typename TagsT = Aws::Vector<Tag>>
200 SetTags(std::forward<TagsT>(value));
203 template <
typename TagsT = Tag>
205 m_tagsHasBeenSet =
true;
206 m_tags.emplace_back(std::forward<TagsT>(value));
228 bool m_transitGatewayAttachmentIdHasBeenSet =
false;
229 bool m_accepterTransitGatewayAttachmentIdHasBeenSet =
false;
230 bool m_requesterTgwInfoHasBeenSet =
false;
231 bool m_accepterTgwInfoHasBeenSet =
false;
232 bool m_optionsHasBeenSet =
false;
233 bool m_statusHasBeenSet =
false;
234 bool m_stateHasBeenSet =
false;
235 bool m_creationTimeHasBeenSet =
false;
236 bool m_tagsHasBeenSet =
false;
void SetStatus(StatusT &&value)
TransitGatewayPeeringAttachment & WithState(TransitGatewayAttachmentState value)
AWS_EC2_API TransitGatewayPeeringAttachment()=default
const PeeringTgwInfo & GetRequesterTgwInfo() const
const Aws::Vector< Tag > & GetTags() const
const PeeringAttachmentStatus & GetStatus() const
bool TagsHasBeenSet() const
const Aws::String & GetAccepterTransitGatewayAttachmentId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAccepterTgwInfo(AccepterTgwInfoT &&value)
TransitGatewayPeeringAttachment & AddTags(TagsT &&value)
void SetAccepterTransitGatewayAttachmentId(AccepterTransitGatewayAttachmentIdT &&value)
TransitGatewayPeeringAttachment & WithAccepterTransitGatewayAttachmentId(AccepterTransitGatewayAttachmentIdT &&value)
void SetCreationTime(CreationTimeT &&value)
TransitGatewayPeeringAttachment & WithTags(TagsT &&value)
bool TransitGatewayAttachmentIdHasBeenSet() const
bool OptionsHasBeenSet() const
const TransitGatewayPeeringAttachmentOptions & GetOptions() const
void SetState(TransitGatewayAttachmentState value)
bool StateHasBeenSet() const
bool StatusHasBeenSet() const
TransitGatewayPeeringAttachment & WithOptions(OptionsT &&value)
TransitGatewayPeeringAttachment & WithAccepterTgwInfo(AccepterTgwInfoT &&value)
bool AccepterTgwInfoHasBeenSet() const
TransitGatewayPeeringAttachment & WithCreationTime(CreationTimeT &&value)
bool AccepterTransitGatewayAttachmentIdHasBeenSet() const
bool RequesterTgwInfoHasBeenSet() const
void SetRequesterTgwInfo(RequesterTgwInfoT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetOptions(OptionsT &&value)
AWS_EC2_API TransitGatewayPeeringAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayAttachmentState GetState() const
bool CreationTimeHasBeenSet() const
TransitGatewayPeeringAttachment & WithRequesterTgwInfo(RequesterTgwInfoT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayPeeringAttachment & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
void SetTags(TagsT &&value)
TransitGatewayPeeringAttachment & WithStatus(StatusT &&value)
AWS_EC2_API TransitGatewayPeeringAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTransitGatewayAttachmentId() const
const PeeringTgwInfo & GetAccepterTgwInfo() const
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