AWS SDK for C++  1.9.65
AWS SDK for C++
TransitGatewayPeeringAttachment.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
15 #include <aws/ec2/model/Tag.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlNode;
25 } // namespace Xml
26 } // namespace Utils
27 namespace EC2
28 {
29 namespace Model
30 {
31 
39  {
40  public:
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
48 
52  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
53 
57  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
58 
62  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
63 
67  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
68 
72  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
73 
77  inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
78 
82  inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
83 
87  inline TransitGatewayPeeringAttachment& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
88 
89 
93  inline const PeeringTgwInfo& GetRequesterTgwInfo() const{ return m_requesterTgwInfo; }
94 
98  inline bool RequesterTgwInfoHasBeenSet() const { return m_requesterTgwInfoHasBeenSet; }
99 
103  inline void SetRequesterTgwInfo(const PeeringTgwInfo& value) { m_requesterTgwInfoHasBeenSet = true; m_requesterTgwInfo = value; }
104 
108  inline void SetRequesterTgwInfo(PeeringTgwInfo&& value) { m_requesterTgwInfoHasBeenSet = true; m_requesterTgwInfo = std::move(value); }
109 
113  inline TransitGatewayPeeringAttachment& WithRequesterTgwInfo(const PeeringTgwInfo& value) { SetRequesterTgwInfo(value); return *this;}
114 
118  inline TransitGatewayPeeringAttachment& WithRequesterTgwInfo(PeeringTgwInfo&& value) { SetRequesterTgwInfo(std::move(value)); return *this;}
119 
120 
124  inline const PeeringTgwInfo& GetAccepterTgwInfo() const{ return m_accepterTgwInfo; }
125 
129  inline bool AccepterTgwInfoHasBeenSet() const { return m_accepterTgwInfoHasBeenSet; }
130 
134  inline void SetAccepterTgwInfo(const PeeringTgwInfo& value) { m_accepterTgwInfoHasBeenSet = true; m_accepterTgwInfo = value; }
135 
139  inline void SetAccepterTgwInfo(PeeringTgwInfo&& value) { m_accepterTgwInfoHasBeenSet = true; m_accepterTgwInfo = std::move(value); }
140 
144  inline TransitGatewayPeeringAttachment& WithAccepterTgwInfo(const PeeringTgwInfo& value) { SetAccepterTgwInfo(value); return *this;}
145 
149  inline TransitGatewayPeeringAttachment& WithAccepterTgwInfo(PeeringTgwInfo&& value) { SetAccepterTgwInfo(std::move(value)); return *this;}
150 
151 
155  inline const PeeringAttachmentStatus& GetStatus() const{ return m_status; }
156 
160  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
161 
165  inline void SetStatus(const PeeringAttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
166 
170  inline void SetStatus(PeeringAttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
171 
175  inline TransitGatewayPeeringAttachment& WithStatus(const PeeringAttachmentStatus& value) { SetStatus(value); return *this;}
176 
180  inline TransitGatewayPeeringAttachment& WithStatus(PeeringAttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
181 
182 
187  inline const TransitGatewayAttachmentState& GetState() const{ return m_state; }
188 
193  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
194 
199  inline void SetState(const TransitGatewayAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
200 
205  inline void SetState(TransitGatewayAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
206 
211  inline TransitGatewayPeeringAttachment& WithState(const TransitGatewayAttachmentState& value) { SetState(value); return *this;}
212 
217  inline TransitGatewayPeeringAttachment& WithState(TransitGatewayAttachmentState&& value) { SetState(std::move(value)); return *this;}
218 
219 
223  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
224 
228  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
229 
233  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
234 
238  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
239 
243  inline TransitGatewayPeeringAttachment& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
244 
248  inline TransitGatewayPeeringAttachment& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
249 
250 
254  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
255 
259  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
260 
264  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
265 
269  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
270 
274  inline TransitGatewayPeeringAttachment& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
275 
279  inline TransitGatewayPeeringAttachment& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
280 
284  inline TransitGatewayPeeringAttachment& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
285 
289  inline TransitGatewayPeeringAttachment& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
290 
291  private:
292 
293  Aws::String m_transitGatewayAttachmentId;
294  bool m_transitGatewayAttachmentIdHasBeenSet;
295 
296  PeeringTgwInfo m_requesterTgwInfo;
297  bool m_requesterTgwInfoHasBeenSet;
298 
299  PeeringTgwInfo m_accepterTgwInfo;
300  bool m_accepterTgwInfoHasBeenSet;
301 
302  PeeringAttachmentStatus m_status;
303  bool m_statusHasBeenSet;
304 
306  bool m_stateHasBeenSet;
307 
308  Aws::Utils::DateTime m_creationTime;
309  bool m_creationTimeHasBeenSet;
310 
311  Aws::Vector<Tag> m_tags;
312  bool m_tagsHasBeenSet;
313  };
314 
315 } // namespace Model
316 } // namespace EC2
317 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithTags
TransitGatewayPeeringAttachment & WithTags(Aws::Vector< Tag > &&value)
Definition: TransitGatewayPeeringAttachment.h:279
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithAccepterTgwInfo
TransitGatewayPeeringAttachment & WithAccepterTgwInfo(const PeeringTgwInfo &value)
Definition: TransitGatewayPeeringAttachment.h:144
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithTransitGatewayAttachmentId
TransitGatewayPeeringAttachment & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayPeeringAttachment.h:87
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::TransitGatewayPeeringAttachment::RequesterTgwInfoHasBeenSet
bool RequesterTgwInfoHasBeenSet() const
Definition: TransitGatewayPeeringAttachment.h:98
Aws::EC2::Model::TransitGatewayPeeringAttachment::GetRequesterTgwInfo
const PeeringTgwInfo & GetRequesterTgwInfo() const
Definition: TransitGatewayPeeringAttachment.h:93
Aws::EC2::Model::TransitGatewayPeeringAttachment
Definition: TransitGatewayPeeringAttachment.h:39
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetStatus
void SetStatus(PeeringAttachmentStatus &&value)
Definition: TransitGatewayPeeringAttachment.h:170
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithCreationTime
TransitGatewayPeeringAttachment & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGatewayPeeringAttachment.h:243
DateTime.h
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetAccepterTgwInfo
void SetAccepterTgwInfo(const PeeringTgwInfo &value)
Definition: TransitGatewayPeeringAttachment.h:134
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithCreationTime
TransitGatewayPeeringAttachment & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGatewayPeeringAttachment.h:248
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayPeeringAttachment::GetAccepterTgwInfo
const PeeringTgwInfo & GetAccepterTgwInfo() const
Definition: TransitGatewayPeeringAttachment.h:124
Aws::EC2::Model::TransitGatewayPeeringAttachment::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayPeeringAttachment::AccepterTgwInfoHasBeenSet
bool AccepterTgwInfoHasBeenSet() const
Definition: TransitGatewayPeeringAttachment.h:129
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::TransitGatewayPeeringAttachment::TransitGatewayPeeringAttachment
TransitGatewayPeeringAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayPeeringAttachment::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: TransitGatewayPeeringAttachment.h:228
Aws::EC2::Model::TransitGatewayPeeringAttachment::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayPeeringAttachment.h:52
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithRequesterTgwInfo
TransitGatewayPeeringAttachment & WithRequesterTgwInfo(PeeringTgwInfo &&value)
Definition: TransitGatewayPeeringAttachment.h:118
AWSVector.h
Tag.h
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetAccepterTgwInfo
void SetAccepterTgwInfo(PeeringTgwInfo &&value)
Definition: TransitGatewayPeeringAttachment.h:139
Aws::EC2::Model::TransitGatewayPeeringAttachment::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayPeeringAttachment.h:57
Aws::EC2::Model::PeeringTgwInfo
Definition: PeeringTgwInfo.h:33
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetRequesterTgwInfo
void SetRequesterTgwInfo(const PeeringTgwInfo &value)
Definition: TransitGatewayPeeringAttachment.h:103
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithStatus
TransitGatewayPeeringAttachment & WithStatus(const PeeringAttachmentStatus &value)
Definition: TransitGatewayPeeringAttachment.h:175
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGatewayPeeringAttachment.h:233
Aws::EC2::Model::TransitGatewayPeeringAttachment::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithAccepterTgwInfo
TransitGatewayPeeringAttachment & WithAccepterTgwInfo(PeeringTgwInfo &&value)
Definition: TransitGatewayPeeringAttachment.h:149
Aws::EC2::Model::PeeringAttachmentStatus
Definition: PeeringAttachmentStatus.h:33
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayPeeringAttachment::AddTags
TransitGatewayPeeringAttachment & AddTags(Tag &&value)
Definition: TransitGatewayPeeringAttachment.h:289
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithTransitGatewayAttachmentId
TransitGatewayPeeringAttachment & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayPeeringAttachment.h:77
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithTags
TransitGatewayPeeringAttachment & WithTags(const Aws::Vector< Tag > &value)
Definition: TransitGatewayPeeringAttachment.h:274
Aws::EC2::Model::TransitGatewayPeeringAttachment::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayPeeringAttachment.h:193
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetState
void SetState(TransitGatewayAttachmentState &&value)
Definition: TransitGatewayPeeringAttachment.h:205
Aws::EC2::Model::TransitGatewayAttachmentState
TransitGatewayAttachmentState
Definition: TransitGatewayAttachmentState.h:17
AWSString.h
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithRequesterTgwInfo
TransitGatewayPeeringAttachment & WithRequesterTgwInfo(const PeeringTgwInfo &value)
Definition: TransitGatewayPeeringAttachment.h:113
PeeringAttachmentStatus.h
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayPeeringAttachment.h:62
PeeringTgwInfo.h
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithTransitGatewayAttachmentId
TransitGatewayPeeringAttachment & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayPeeringAttachment.h:82
Aws::EC2::Model::TransitGatewayPeeringAttachment::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TransitGatewayPeeringAttachment.h:259
Aws::EC2::Model::TransitGatewayPeeringAttachment::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: TransitGatewayPeeringAttachment.h:160
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TransitGatewayPeeringAttachment.h:264
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayPeeringAttachment::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: TransitGatewayPeeringAttachment.h:223
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithState
TransitGatewayPeeringAttachment & WithState(TransitGatewayAttachmentState &&value)
Definition: TransitGatewayPeeringAttachment.h:217
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayPeeringAttachment.h:67
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithStatus
TransitGatewayPeeringAttachment & WithStatus(PeeringAttachmentStatus &&value)
Definition: TransitGatewayPeeringAttachment.h:180
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetRequesterTgwInfo
void SetRequesterTgwInfo(PeeringTgwInfo &&value)
Definition: TransitGatewayPeeringAttachment.h:108
Aws::EC2::Model::TransitGatewayPeeringAttachment::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TransitGatewayPeeringAttachment.h:254
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetStatus
void SetStatus(const PeeringAttachmentStatus &value)
Definition: TransitGatewayPeeringAttachment.h:165
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGatewayPeeringAttachment.h:238
Aws::EC2::Model::TransitGatewayPeeringAttachment::GetStatus
const PeeringAttachmentStatus & GetStatus() const
Definition: TransitGatewayPeeringAttachment.h:155
TransitGatewayAttachmentState.h
Aws::EC2::Model::TransitGatewayPeeringAttachment::TransitGatewayPeeringAttachment
TransitGatewayPeeringAttachment()
Aws::EC2::Model::TransitGatewayPeeringAttachment::WithState
TransitGatewayPeeringAttachment & WithState(const TransitGatewayAttachmentState &value)
Definition: TransitGatewayPeeringAttachment.h:211
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TransitGatewayPeeringAttachment.h:269
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayPeeringAttachment.h:72
Aws::EC2::Model::TransitGatewayPeeringAttachment::SetState
void SetState(const TransitGatewayAttachmentState &value)
Definition: TransitGatewayPeeringAttachment.h:199
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayPeeringAttachment::operator=
TransitGatewayPeeringAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayPeeringAttachment::AddTags
TransitGatewayPeeringAttachment & AddTags(const Tag &value)
Definition: TransitGatewayPeeringAttachment.h:284
Aws::EC2::Model::TransitGatewayPeeringAttachment::GetState
const TransitGatewayAttachmentState & GetState() const
Definition: TransitGatewayPeeringAttachment.h:187