AWS SDK for C++  1.9.69
AWS SDK for C++
TransitGatewayConnect.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
14 #include <aws/ec2/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
30 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
51 
55  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
56 
60  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
61 
65  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
66 
70  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
71 
75  inline TransitGatewayConnect& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
76 
80  inline TransitGatewayConnect& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
81 
85  inline TransitGatewayConnect& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
86 
87 
91  inline const Aws::String& GetTransportTransitGatewayAttachmentId() const{ return m_transportTransitGatewayAttachmentId; }
92 
96  inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; }
97 
101  inline void SetTransportTransitGatewayAttachmentId(const Aws::String& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = value; }
102 
106  inline void SetTransportTransitGatewayAttachmentId(Aws::String&& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = std::move(value); }
107 
111  inline void SetTransportTransitGatewayAttachmentId(const char* value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId.assign(value); }
112 
116  inline TransitGatewayConnect& WithTransportTransitGatewayAttachmentId(const Aws::String& value) { SetTransportTransitGatewayAttachmentId(value); return *this;}
117 
121  inline TransitGatewayConnect& WithTransportTransitGatewayAttachmentId(Aws::String&& value) { SetTransportTransitGatewayAttachmentId(std::move(value)); return *this;}
122 
126  inline TransitGatewayConnect& WithTransportTransitGatewayAttachmentId(const char* value) { SetTransportTransitGatewayAttachmentId(value); return *this;}
127 
128 
132  inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
133 
137  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
138 
142  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
143 
147  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
148 
152  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
153 
157  inline TransitGatewayConnect& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
158 
162  inline TransitGatewayConnect& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
163 
167  inline TransitGatewayConnect& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
168 
169 
173  inline const TransitGatewayAttachmentState& GetState() const{ return m_state; }
174 
178  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
179 
183  inline void SetState(const TransitGatewayAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
184 
188  inline void SetState(TransitGatewayAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
189 
193  inline TransitGatewayConnect& WithState(const TransitGatewayAttachmentState& value) { SetState(value); return *this;}
194 
198  inline TransitGatewayConnect& WithState(TransitGatewayAttachmentState&& value) { SetState(std::move(value)); return *this;}
199 
200 
204  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
205 
209  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
210 
214  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
215 
219  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
220 
224  inline TransitGatewayConnect& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
225 
229  inline TransitGatewayConnect& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
230 
231 
235  inline const TransitGatewayConnectOptions& GetOptions() const{ return m_options; }
236 
240  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
241 
245  inline void SetOptions(const TransitGatewayConnectOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
246 
250  inline void SetOptions(TransitGatewayConnectOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
251 
255  inline TransitGatewayConnect& WithOptions(const TransitGatewayConnectOptions& value) { SetOptions(value); return *this;}
256 
260  inline TransitGatewayConnect& WithOptions(TransitGatewayConnectOptions&& value) { SetOptions(std::move(value)); return *this;}
261 
262 
266  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
267 
271  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
272 
276  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
277 
281  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
282 
286  inline TransitGatewayConnect& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
287 
291  inline TransitGatewayConnect& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
292 
296  inline TransitGatewayConnect& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
297 
301  inline TransitGatewayConnect& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
302 
303  private:
304 
305  Aws::String m_transitGatewayAttachmentId;
306  bool m_transitGatewayAttachmentIdHasBeenSet;
307 
308  Aws::String m_transportTransitGatewayAttachmentId;
309  bool m_transportTransitGatewayAttachmentIdHasBeenSet;
310 
311  Aws::String m_transitGatewayId;
312  bool m_transitGatewayIdHasBeenSet;
313 
315  bool m_stateHasBeenSet;
316 
317  Aws::Utils::DateTime m_creationTime;
318  bool m_creationTimeHasBeenSet;
319 
321  bool m_optionsHasBeenSet;
322 
323  Aws::Vector<Tag> m_tags;
324  bool m_tagsHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace EC2
329 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::TransitGatewayConnect::WithTransportTransitGatewayAttachmentId
TransitGatewayConnect & WithTransportTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayConnect.h:116
Aws::EC2::Model::TransitGatewayConnect::TransportTransitGatewayAttachmentIdHasBeenSet
bool TransportTransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayConnect.h:96
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::TransitGatewayConnect::WithState
TransitGatewayConnect & WithState(const TransitGatewayAttachmentState &value)
Definition: TransitGatewayConnect.h:193
Aws::EC2::Model::TransitGatewayConnect::GetState
const TransitGatewayAttachmentState & GetState() const
Definition: TransitGatewayConnect.h:173
DateTime.h
Aws::EC2::Model::TransitGatewayConnect::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TransitGatewayConnect.h:276
Aws::EC2::Model::TransitGatewayConnect::WithState
TransitGatewayConnect & WithState(TransitGatewayAttachmentState &&value)
Definition: TransitGatewayConnect.h:198
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayConnect::WithTransitGatewayId
TransitGatewayConnect & WithTransitGatewayId(const Aws::String &value)
Definition: TransitGatewayConnect.h:157
Aws::EC2::Model::TransitGatewayConnect::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: TransitGatewayConnect.h:204
Aws::EC2::Model::TransitGatewayConnect::GetOptions
const TransitGatewayConnectOptions & GetOptions() const
Definition: TransitGatewayConnect.h:235
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::TransitGatewayConnect::SetTransportTransitGatewayAttachmentId
void SetTransportTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayConnect.h:111
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayConnect::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: TransitGatewayConnect.h:137
Aws::EC2::Model::TransitGatewayConnect::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayConnect.h:50
Aws::EC2::Model::TransitGatewayConnect::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: TransitGatewayConnect.h:142
AWSVector.h
Tag.h
Aws::EC2::Model::TransitGatewayConnect
Definition: TransitGatewayConnect.h:37
Aws::EC2::Model::TransitGatewayConnect::WithTags
TransitGatewayConnect & WithTags(Aws::Vector< Tag > &&value)
Definition: TransitGatewayConnect.h:291
Aws::EC2::Model::TransitGatewayConnect::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: TransitGatewayConnect.h:152
Aws::EC2::Model::TransitGatewayConnect::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TransitGatewayConnect.h:271
Aws::EC2::Model::TransitGatewayConnect::WithCreationTime
TransitGatewayConnect & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGatewayConnect.h:224
Aws::EC2::Model::TransitGatewayConnect::SetState
void SetState(const TransitGatewayAttachmentState &value)
Definition: TransitGatewayConnect.h:183
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayConnect::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGatewayConnect.h:214
Aws::EC2::Model::TransitGatewayConnect::WithTransitGatewayId
TransitGatewayConnect & WithTransitGatewayId(const char *value)
Definition: TransitGatewayConnect.h:167
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayConnect::SetOptions
void SetOptions(TransitGatewayConnectOptions &&value)
Definition: TransitGatewayConnect.h:250
Aws::EC2::Model::TransitGatewayConnect::SetState
void SetState(TransitGatewayAttachmentState &&value)
Definition: TransitGatewayConnect.h:188
TransitGatewayConnectOptions.h
Aws::EC2::Model::TransitGatewayConnect::SetTransportTransitGatewayAttachmentId
void SetTransportTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayConnect.h:106
Aws::EC2::Model::TransitGatewayConnect::WithTransitGatewayAttachmentId
TransitGatewayConnect & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayConnect.h:80
Aws::EC2::Model::TransitGatewayConnect::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayConnect.h:65
Aws::EC2::Model::TransitGatewayAttachmentState
TransitGatewayAttachmentState
Definition: TransitGatewayAttachmentState.h:17
AWSString.h
Aws::EC2::Model::TransitGatewayConnect::WithCreationTime
TransitGatewayConnect & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGatewayConnect.h:229
Aws::EC2::Model::TransitGatewayConnect::AddTags
TransitGatewayConnect & AddTags(Tag &&value)
Definition: TransitGatewayConnect.h:301
Aws::EC2::Model::TransitGatewayConnect::GetTransportTransitGatewayAttachmentId
const Aws::String & GetTransportTransitGatewayAttachmentId() const
Definition: TransitGatewayConnect.h:91
Aws::EC2::Model::TransitGatewayConnect::WithOptions
TransitGatewayConnect & WithOptions(TransitGatewayConnectOptions &&value)
Definition: TransitGatewayConnect.h:260
Aws::EC2::Model::TransitGatewayConnect::WithTransportTransitGatewayAttachmentId
TransitGatewayConnect & WithTransportTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayConnect.h:126
Aws::EC2::Model::TransitGatewayConnect::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayConnect::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayConnect.h:178
Aws::EC2::Model::TransitGatewayConnect::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayConnect.h:60
Aws::EC2::Model::TransitGatewayConnect::TransitGatewayConnect
TransitGatewayConnect()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayConnect::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGatewayConnect.h:219
Aws::EC2::Model::TransitGatewayConnect::WithTransitGatewayAttachmentId
TransitGatewayConnect & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayConnect.h:75
Aws::EC2::Model::TransitGatewayConnect::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: TransitGatewayConnect.h:240
Aws::EC2::Model::TransitGatewayConnect::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TransitGatewayConnect.h:281
Aws::EC2::Model::TransitGatewayConnect::SetTransportTransitGatewayAttachmentId
void SetTransportTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayConnect.h:101
Aws::EC2::Model::TransitGatewayConnect::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: TransitGatewayConnect.h:209
Aws::EC2::Model::TransitGatewayConnect::AddTags
TransitGatewayConnect & AddTags(const Tag &value)
Definition: TransitGatewayConnect.h:296
Aws::EC2::Model::TransitGatewayConnect::WithTags
TransitGatewayConnect & WithTags(const Aws::Vector< Tag > &value)
Definition: TransitGatewayConnect.h:286
Aws::EC2::Model::TransitGatewayConnect::WithTransitGatewayId
TransitGatewayConnect & WithTransitGatewayId(Aws::String &&value)
Definition: TransitGatewayConnect.h:162
Aws::EC2::Model::TransitGatewayConnect::WithTransportTransitGatewayAttachmentId
TransitGatewayConnect & WithTransportTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayConnect.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TransitGatewayConnect::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayConnectOptions
Definition: TransitGatewayConnectOptions.h:32
Aws::EC2::Model::TransitGatewayConnect::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TransitGatewayConnect.h:266
index
int index
Definition: cJSON.h:181
TransitGatewayAttachmentState.h
Aws::EC2::Model::TransitGatewayConnect::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayConnect.h:55
Aws::EC2::Model::TransitGatewayConnect::WithOptions
TransitGatewayConnect & WithOptions(const TransitGatewayConnectOptions &value)
Definition: TransitGatewayConnect.h:255
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayConnect::WithTransitGatewayAttachmentId
TransitGatewayConnect & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayConnect.h:85
Aws::EC2::Model::TransitGatewayConnect::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: TransitGatewayConnect.h:132
Aws::EC2::Model::TransitGatewayConnect::TransitGatewayConnect
TransitGatewayConnect(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayConnect::operator=
TransitGatewayConnect & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayConnect::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayConnect.h:70
Aws::EC2::Model::TransitGatewayConnect::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: TransitGatewayConnect.h:147
Aws::EC2::Model::TransitGatewayConnect::SetOptions
void SetOptions(const TransitGatewayConnectOptions &value)
Definition: TransitGatewayConnect.h:245