AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayRouteTableAnnouncement.h
1
6#pragma once
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/TransitGatewayRouteTableAnnouncementDirection.h>
11#include <aws/ec2/model/TransitGatewayRouteTableAnnouncementState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
38 {
39 public:
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetTransitGatewayRouteTableAnnouncementId() const{ return m_transitGatewayRouteTableAnnouncementId; }
53 inline bool TransitGatewayRouteTableAnnouncementIdHasBeenSet() const { return m_transitGatewayRouteTableAnnouncementIdHasBeenSet; }
54 inline void SetTransitGatewayRouteTableAnnouncementId(const Aws::String& value) { m_transitGatewayRouteTableAnnouncementIdHasBeenSet = true; m_transitGatewayRouteTableAnnouncementId = value; }
55 inline void SetTransitGatewayRouteTableAnnouncementId(Aws::String&& value) { m_transitGatewayRouteTableAnnouncementIdHasBeenSet = true; m_transitGatewayRouteTableAnnouncementId = std::move(value); }
56 inline void SetTransitGatewayRouteTableAnnouncementId(const char* value) { m_transitGatewayRouteTableAnnouncementIdHasBeenSet = true; m_transitGatewayRouteTableAnnouncementId.assign(value); }
61
63
66 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
67 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
68 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
69 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
70 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
73 inline TransitGatewayRouteTableAnnouncement& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
75
77
81 inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; }
82 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
83 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
84 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
85 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
87 inline TransitGatewayRouteTableAnnouncement& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
88 inline TransitGatewayRouteTableAnnouncement& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
90
92
95 inline const Aws::String& GetPeerTransitGatewayId() const{ return m_peerTransitGatewayId; }
96 inline bool PeerTransitGatewayIdHasBeenSet() const { return m_peerTransitGatewayIdHasBeenSet; }
97 inline void SetPeerTransitGatewayId(const Aws::String& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = value; }
98 inline void SetPeerTransitGatewayId(Aws::String&& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = std::move(value); }
99 inline void SetPeerTransitGatewayId(const char* value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId.assign(value); }
104
106
109 inline const Aws::String& GetPeerCoreNetworkId() const{ return m_peerCoreNetworkId; }
110 inline bool PeerCoreNetworkIdHasBeenSet() const { return m_peerCoreNetworkIdHasBeenSet; }
111 inline void SetPeerCoreNetworkId(const Aws::String& value) { m_peerCoreNetworkIdHasBeenSet = true; m_peerCoreNetworkId = value; }
112 inline void SetPeerCoreNetworkId(Aws::String&& value) { m_peerCoreNetworkIdHasBeenSet = true; m_peerCoreNetworkId = std::move(value); }
113 inline void SetPeerCoreNetworkId(const char* value) { m_peerCoreNetworkIdHasBeenSet = true; m_peerCoreNetworkId.assign(value); }
116 inline TransitGatewayRouteTableAnnouncement& WithPeerCoreNetworkId(const char* value) { SetPeerCoreNetworkId(value); return *this;}
118
120
123 inline const Aws::String& GetPeeringAttachmentId() const{ return m_peeringAttachmentId; }
124 inline bool PeeringAttachmentIdHasBeenSet() const { return m_peeringAttachmentIdHasBeenSet; }
125 inline void SetPeeringAttachmentId(const Aws::String& value) { m_peeringAttachmentIdHasBeenSet = true; m_peeringAttachmentId = value; }
126 inline void SetPeeringAttachmentId(Aws::String&& value) { m_peeringAttachmentIdHasBeenSet = true; m_peeringAttachmentId = std::move(value); }
127 inline void SetPeeringAttachmentId(const char* value) { m_peeringAttachmentIdHasBeenSet = true; m_peeringAttachmentId.assign(value); }
132
134
137 inline const TransitGatewayRouteTableAnnouncementDirection& GetAnnouncementDirection() const{ return m_announcementDirection; }
138 inline bool AnnouncementDirectionHasBeenSet() const { return m_announcementDirectionHasBeenSet; }
139 inline void SetAnnouncementDirection(const TransitGatewayRouteTableAnnouncementDirection& value) { m_announcementDirectionHasBeenSet = true; m_announcementDirection = value; }
140 inline void SetAnnouncementDirection(TransitGatewayRouteTableAnnouncementDirection&& value) { m_announcementDirectionHasBeenSet = true; m_announcementDirection = std::move(value); }
144
146
149 inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
150 inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
151 inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
152 inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
153 inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
158
160
163 inline const TransitGatewayRouteTableAnnouncementState& GetState() const{ return m_state; }
164 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
165 inline void SetState(const TransitGatewayRouteTableAnnouncementState& value) { m_stateHasBeenSet = true; m_state = value; }
166 inline void SetState(TransitGatewayRouteTableAnnouncementState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
170
172
176 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
177 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
178 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
179 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
183
185
188 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
191 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
192 inline TransitGatewayRouteTableAnnouncement& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
193 inline TransitGatewayRouteTableAnnouncement& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
194 inline TransitGatewayRouteTableAnnouncement& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
195 inline TransitGatewayRouteTableAnnouncement& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
197 private:
198
199 Aws::String m_transitGatewayRouteTableAnnouncementId;
200 bool m_transitGatewayRouteTableAnnouncementIdHasBeenSet = false;
201
202 Aws::String m_transitGatewayId;
203 bool m_transitGatewayIdHasBeenSet = false;
204
205 Aws::String m_coreNetworkId;
206 bool m_coreNetworkIdHasBeenSet = false;
207
208 Aws::String m_peerTransitGatewayId;
209 bool m_peerTransitGatewayIdHasBeenSet = false;
210
211 Aws::String m_peerCoreNetworkId;
212 bool m_peerCoreNetworkIdHasBeenSet = false;
213
214 Aws::String m_peeringAttachmentId;
215 bool m_peeringAttachmentIdHasBeenSet = false;
216
217 TransitGatewayRouteTableAnnouncementDirection m_announcementDirection;
218 bool m_announcementDirectionHasBeenSet = false;
219
220 Aws::String m_transitGatewayRouteTableId;
221 bool m_transitGatewayRouteTableIdHasBeenSet = false;
222
224 bool m_stateHasBeenSet = false;
225
226 Aws::Utils::DateTime m_creationTime;
227 bool m_creationTimeHasBeenSet = false;
228
229 Aws::Vector<Tag> m_tags;
230 bool m_tagsHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace EC2
235} // namespace Aws
TransitGatewayRouteTableAnnouncement & WithPeerCoreNetworkId(Aws::String &&value)
TransitGatewayRouteTableAnnouncement & WithPeerCoreNetworkId(const char *value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayId(const char *value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayId(const Aws::String &value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayRouteTableAnnouncementId(const char *value)
TransitGatewayRouteTableAnnouncement & WithAnnouncementDirection(const TransitGatewayRouteTableAnnouncementDirection &value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayRouteTableId(Aws::String &&value)
TransitGatewayRouteTableAnnouncement & WithCreationTime(Aws::Utils::DateTime &&value)
TransitGatewayRouteTableAnnouncement & WithPeerTransitGatewayId(Aws::String &&value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayRouteTableId(const char *value)
TransitGatewayRouteTableAnnouncement & WithCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayRouteTableAnnouncement & AddTags(const Tag &value)
TransitGatewayRouteTableAnnouncement & WithState(TransitGatewayRouteTableAnnouncementState &&value)
AWS_EC2_API TransitGatewayRouteTableAnnouncement(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRouteTableAnnouncement & WithPeeringAttachmentId(Aws::String &&value)
TransitGatewayRouteTableAnnouncement & WithPeerCoreNetworkId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayRouteTableAnnouncement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayId(Aws::String &&value)
TransitGatewayRouteTableAnnouncement & WithPeerTransitGatewayId(const Aws::String &value)
const TransitGatewayRouteTableAnnouncementDirection & GetAnnouncementDirection() const
TransitGatewayRouteTableAnnouncement & WithTransitGatewayRouteTableAnnouncementId(const Aws::String &value)
void SetState(const TransitGatewayRouteTableAnnouncementState &value)
TransitGatewayRouteTableAnnouncement & WithPeerTransitGatewayId(const char *value)
TransitGatewayRouteTableAnnouncement & WithPeeringAttachmentId(const char *value)
TransitGatewayRouteTableAnnouncement & WithCoreNetworkId(const char *value)
void SetState(TransitGatewayRouteTableAnnouncementState &&value)
TransitGatewayRouteTableAnnouncement & WithState(const TransitGatewayRouteTableAnnouncementState &value)
const TransitGatewayRouteTableAnnouncementState & GetState() const
TransitGatewayRouteTableAnnouncement & WithAnnouncementDirection(TransitGatewayRouteTableAnnouncementDirection &&value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayRouteTableAnnouncementId(Aws::String &&value)
TransitGatewayRouteTableAnnouncement & AddTags(Tag &&value)
void SetAnnouncementDirection(const TransitGatewayRouteTableAnnouncementDirection &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayRouteTableAnnouncement & WithCoreNetworkId(const Aws::String &value)
void SetAnnouncementDirection(TransitGatewayRouteTableAnnouncementDirection &&value)
TransitGatewayRouteTableAnnouncement & WithCoreNetworkId(Aws::String &&value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayRouteTableId(const Aws::String &value)
TransitGatewayRouteTableAnnouncement & WithTags(Aws::Vector< Tag > &&value)
TransitGatewayRouteTableAnnouncement & WithTags(const Aws::Vector< Tag > &value)
TransitGatewayRouteTableAnnouncement & WithPeeringAttachmentId(const Aws::String &value)
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