AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayRouteTableAnnouncement.h
1
6#pragma once
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/Tag.h>
13#include <aws/ec2/model/TransitGatewayRouteTableAnnouncementDirection.h>
14#include <aws/ec2/model/TransitGatewayRouteTableAnnouncementState.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
34 public:
35 AWS_EC2_API TransitGatewayRouteTableAnnouncement() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetTransitGatewayRouteTableAnnouncementId() const { return m_transitGatewayRouteTableAnnouncementId; }
47 inline bool TransitGatewayRouteTableAnnouncementIdHasBeenSet() const { return m_transitGatewayRouteTableAnnouncementIdHasBeenSet; }
48 template <typename TransitGatewayRouteTableAnnouncementIdT = Aws::String>
49 void SetTransitGatewayRouteTableAnnouncementId(TransitGatewayRouteTableAnnouncementIdT&& value) {
50 m_transitGatewayRouteTableAnnouncementIdHasBeenSet = true;
51 m_transitGatewayRouteTableAnnouncementId = std::forward<TransitGatewayRouteTableAnnouncementIdT>(value);
52 }
53 template <typename TransitGatewayRouteTableAnnouncementIdT = Aws::String>
54 TransitGatewayRouteTableAnnouncement& WithTransitGatewayRouteTableAnnouncementId(TransitGatewayRouteTableAnnouncementIdT&& value) {
55 SetTransitGatewayRouteTableAnnouncementId(std::forward<TransitGatewayRouteTableAnnouncementIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
65 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
66 template <typename TransitGatewayIdT = Aws::String>
67 void SetTransitGatewayId(TransitGatewayIdT&& value) {
68 m_transitGatewayIdHasBeenSet = true;
69 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
70 }
71 template <typename TransitGatewayIdT = Aws::String>
73 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
84 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
85 template <typename CoreNetworkIdT = Aws::String>
86 void SetCoreNetworkId(CoreNetworkIdT&& value) {
87 m_coreNetworkIdHasBeenSet = true;
88 m_coreNetworkId = std::forward<CoreNetworkIdT>(value);
89 }
90 template <typename CoreNetworkIdT = Aws::String>
92 SetCoreNetworkId(std::forward<CoreNetworkIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetPeerTransitGatewayId() const { return m_peerTransitGatewayId; }
102 inline bool PeerTransitGatewayIdHasBeenSet() const { return m_peerTransitGatewayIdHasBeenSet; }
103 template <typename PeerTransitGatewayIdT = Aws::String>
104 void SetPeerTransitGatewayId(PeerTransitGatewayIdT&& value) {
105 m_peerTransitGatewayIdHasBeenSet = true;
106 m_peerTransitGatewayId = std::forward<PeerTransitGatewayIdT>(value);
107 }
108 template <typename PeerTransitGatewayIdT = Aws::String>
110 SetPeerTransitGatewayId(std::forward<PeerTransitGatewayIdT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetPeerCoreNetworkId() const { return m_peerCoreNetworkId; }
120 inline bool PeerCoreNetworkIdHasBeenSet() const { return m_peerCoreNetworkIdHasBeenSet; }
121 template <typename PeerCoreNetworkIdT = Aws::String>
122 void SetPeerCoreNetworkId(PeerCoreNetworkIdT&& value) {
123 m_peerCoreNetworkIdHasBeenSet = true;
124 m_peerCoreNetworkId = std::forward<PeerCoreNetworkIdT>(value);
125 }
126 template <typename PeerCoreNetworkIdT = Aws::String>
128 SetPeerCoreNetworkId(std::forward<PeerCoreNetworkIdT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetPeeringAttachmentId() const { return m_peeringAttachmentId; }
138 inline bool PeeringAttachmentIdHasBeenSet() const { return m_peeringAttachmentIdHasBeenSet; }
139 template <typename PeeringAttachmentIdT = Aws::String>
140 void SetPeeringAttachmentId(PeeringAttachmentIdT&& value) {
141 m_peeringAttachmentIdHasBeenSet = true;
142 m_peeringAttachmentId = std::forward<PeeringAttachmentIdT>(value);
143 }
144 template <typename PeeringAttachmentIdT = Aws::String>
146 SetPeeringAttachmentId(std::forward<PeeringAttachmentIdT>(value));
147 return *this;
148 }
150
152
155 inline TransitGatewayRouteTableAnnouncementDirection GetAnnouncementDirection() const { return m_announcementDirection; }
156 inline bool AnnouncementDirectionHasBeenSet() const { return m_announcementDirectionHasBeenSet; }
158 m_announcementDirectionHasBeenSet = true;
159 m_announcementDirection = value;
160 }
163 return *this;
164 }
166
168
171 inline const Aws::String& GetTransitGatewayRouteTableId() const { return m_transitGatewayRouteTableId; }
172 inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
173 template <typename TransitGatewayRouteTableIdT = Aws::String>
174 void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT&& value) {
175 m_transitGatewayRouteTableIdHasBeenSet = true;
176 m_transitGatewayRouteTableId = std::forward<TransitGatewayRouteTableIdT>(value);
177 }
178 template <typename TransitGatewayRouteTableIdT = Aws::String>
180 SetTransitGatewayRouteTableId(std::forward<TransitGatewayRouteTableIdT>(value));
181 return *this;
182 }
184
186
189 inline TransitGatewayRouteTableAnnouncementState GetState() const { return m_state; }
190 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
192 m_stateHasBeenSet = true;
193 m_state = value;
194 }
196 SetState(value);
197 return *this;
198 }
200
202
206 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
207 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
208 template <typename CreationTimeT = Aws::Utils::DateTime>
209 void SetCreationTime(CreationTimeT&& value) {
210 m_creationTimeHasBeenSet = true;
211 m_creationTime = std::forward<CreationTimeT>(value);
212 }
213 template <typename CreationTimeT = Aws::Utils::DateTime>
215 SetCreationTime(std::forward<CreationTimeT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
225 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
226 template <typename TagsT = Aws::Vector<Tag>>
227 void SetTags(TagsT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags = std::forward<TagsT>(value);
230 }
231 template <typename TagsT = Aws::Vector<Tag>>
233 SetTags(std::forward<TagsT>(value));
234 return *this;
235 }
236 template <typename TagsT = Tag>
238 m_tagsHasBeenSet = true;
239 m_tags.emplace_back(std::forward<TagsT>(value));
240 return *this;
241 }
243 private:
244 Aws::String m_transitGatewayRouteTableAnnouncementId;
245
246 Aws::String m_transitGatewayId;
247
248 Aws::String m_coreNetworkId;
249
250 Aws::String m_peerTransitGatewayId;
251
252 Aws::String m_peerCoreNetworkId;
253
254 Aws::String m_peeringAttachmentId;
255
257
258 Aws::String m_transitGatewayRouteTableId;
259
261
262 Aws::Utils::DateTime m_creationTime{};
263
264 Aws::Vector<Tag> m_tags;
265 bool m_transitGatewayRouteTableAnnouncementIdHasBeenSet = false;
266 bool m_transitGatewayIdHasBeenSet = false;
267 bool m_coreNetworkIdHasBeenSet = false;
268 bool m_peerTransitGatewayIdHasBeenSet = false;
269 bool m_peerCoreNetworkIdHasBeenSet = false;
270 bool m_peeringAttachmentIdHasBeenSet = false;
271 bool m_announcementDirectionHasBeenSet = false;
272 bool m_transitGatewayRouteTableIdHasBeenSet = false;
273 bool m_stateHasBeenSet = false;
274 bool m_creationTimeHasBeenSet = false;
275 bool m_tagsHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace EC2
280} // namespace Aws
TransitGatewayRouteTableAnnouncementDirection GetAnnouncementDirection() const
TransitGatewayRouteTableAnnouncement & WithPeerTransitGatewayId(PeerTransitGatewayIdT &&value)
void SetAnnouncementDirection(TransitGatewayRouteTableAnnouncementDirection value)
TransitGatewayRouteTableAnnouncement & WithCoreNetworkId(CoreNetworkIdT &&value)
TransitGatewayRouteTableAnnouncement & WithPeerCoreNetworkId(PeerCoreNetworkIdT &&value)
AWS_EC2_API TransitGatewayRouteTableAnnouncement(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTransitGatewayRouteTableAnnouncementId(TransitGatewayRouteTableAnnouncementIdT &&value)
TransitGatewayRouteTableAnnouncement & AddTags(TagsT &&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 & WithCreationTime(CreationTimeT &&value)
TransitGatewayRouteTableAnnouncement & WithTags(TagsT &&value)
void SetState(TransitGatewayRouteTableAnnouncementState value)
TransitGatewayRouteTableAnnouncement & WithState(TransitGatewayRouteTableAnnouncementState value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayRouteTableAnnouncementId(TransitGatewayRouteTableAnnouncementIdT &&value)
TransitGatewayRouteTableAnnouncement & WithPeeringAttachmentId(PeeringAttachmentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayRouteTableAnnouncement & WithTransitGatewayId(TransitGatewayIdT &&value)
TransitGatewayRouteTableAnnouncement & WithTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
TransitGatewayRouteTableAnnouncement & WithAnnouncementDirection(TransitGatewayRouteTableAnnouncementDirection 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