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/PeeringTgwInfo.h>
11#include <aws/ec2/model/TransitGatewayPeeringAttachmentOptions.h>
12#include <aws/ec2/model/PeeringAttachmentStatus.h>
13#include <aws/ec2/model/TransitGatewayAttachmentState.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/ec2/model/Tag.h>
56 template<
typename TransitGatewayAttachmentIdT = Aws::String>
57 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet =
true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
58 template<
typename TransitGatewayAttachmentIdT = Aws::String>
68 template<
typename AccepterTransitGatewayAttachmentIdT = Aws::String>
69 void SetAccepterTransitGatewayAttachmentId(AccepterTransitGatewayAttachmentIdT&& value) { m_accepterTransitGatewayAttachmentIdHasBeenSet =
true; m_accepterTransitGatewayAttachmentId = std::forward<AccepterTransitGatewayAttachmentIdT>(value); }
70 template<
typename AccepterTransitGatewayAttachmentIdT = Aws::String>
80 template<
typename RequesterTgwInfoT = PeeringTgwInfo>
81 void SetRequesterTgwInfo(RequesterTgwInfoT&& value) { m_requesterTgwInfoHasBeenSet =
true; m_requesterTgwInfo = std::forward<RequesterTgwInfoT>(value); }
82 template<
typename RequesterTgwInfoT = PeeringTgwInfo>
92 template<
typename AccepterTgwInfoT = PeeringTgwInfo>
93 void SetAccepterTgwInfo(AccepterTgwInfoT&& value) { m_accepterTgwInfoHasBeenSet =
true; m_accepterTgwInfo = std::forward<AccepterTgwInfoT>(value); }
94 template<
typename AccepterTgwInfoT = PeeringTgwInfo>
104 template<
typename OptionsT = TransitGatewayPeeringAttachmentOptions>
105 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet =
true; m_options = std::forward<OptionsT>(value); }
106 template<
typename OptionsT = TransitGatewayPeeringAttachmentOptions>
116 template<
typename StatusT = PeeringAttachmentStatus>
117 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
118 template<
typename StatusT = PeeringAttachmentStatus>
139 template<
typename CreationTimeT = Aws::Utils::DateTime>
140 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
141 template<
typename CreationTimeT = Aws::Utils::DateTime>
151 template<
typename TagsT = Aws::Vector<Tag>>
152 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
153 template<
typename TagsT = Aws::Vector<Tag>>
155 template<
typename TagsT = Tag>
161 bool m_transitGatewayAttachmentIdHasBeenSet =
false;
164 bool m_accepterTransitGatewayAttachmentIdHasBeenSet =
false;
167 bool m_requesterTgwInfoHasBeenSet =
false;
170 bool m_accepterTgwInfoHasBeenSet =
false;
173 bool m_optionsHasBeenSet =
false;
176 bool m_statusHasBeenSet =
false;
179 bool m_stateHasBeenSet =
false;
182 bool m_creationTimeHasBeenSet =
false;
185 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