AWS SDK for C++  1.9.70
AWS SDK for C++
TransitGateway.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& GetTransitGatewayId() const{ return m_transitGatewayId; }
51 
55  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
56 
60  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
61 
65  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
66 
70  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
71 
75  inline TransitGateway& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
76 
80  inline TransitGateway& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
81 
85  inline TransitGateway& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
86 
87 
91  inline const Aws::String& GetTransitGatewayArn() const{ return m_transitGatewayArn; }
92 
96  inline bool TransitGatewayArnHasBeenSet() const { return m_transitGatewayArnHasBeenSet; }
97 
101  inline void SetTransitGatewayArn(const Aws::String& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = value; }
102 
106  inline void SetTransitGatewayArn(Aws::String&& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = std::move(value); }
107 
111  inline void SetTransitGatewayArn(const char* value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn.assign(value); }
112 
116  inline TransitGateway& WithTransitGatewayArn(const Aws::String& value) { SetTransitGatewayArn(value); return *this;}
117 
121  inline TransitGateway& WithTransitGatewayArn(Aws::String&& value) { SetTransitGatewayArn(std::move(value)); return *this;}
122 
126  inline TransitGateway& WithTransitGatewayArn(const char* value) { SetTransitGatewayArn(value); return *this;}
127 
128 
132  inline const TransitGatewayState& GetState() const{ return m_state; }
133 
137  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
138 
142  inline void SetState(const TransitGatewayState& value) { m_stateHasBeenSet = true; m_state = value; }
143 
147  inline void SetState(TransitGatewayState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
148 
152  inline TransitGateway& WithState(const TransitGatewayState& value) { SetState(value); return *this;}
153 
157  inline TransitGateway& WithState(TransitGatewayState&& value) { SetState(std::move(value)); return *this;}
158 
159 
163  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
164 
168  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
169 
173  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
174 
178  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
179 
183  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
184 
188  inline TransitGateway& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
189 
193  inline TransitGateway& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
194 
198  inline TransitGateway& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
199 
200 
204  inline const Aws::String& GetDescription() const{ return m_description; }
205 
209  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
210 
214  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
215 
219  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
220 
224  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
225 
229  inline TransitGateway& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
230 
234  inline TransitGateway& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
235 
239  inline TransitGateway& WithDescription(const char* value) { SetDescription(value); return *this;}
240 
241 
245  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
246 
250  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
251 
255  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
256 
260  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
261 
265  inline TransitGateway& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
266 
270  inline TransitGateway& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
271 
272 
276  inline const TransitGatewayOptions& GetOptions() const{ return m_options; }
277 
281  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
282 
286  inline void SetOptions(const TransitGatewayOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
287 
291  inline void SetOptions(TransitGatewayOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
292 
296  inline TransitGateway& WithOptions(const TransitGatewayOptions& value) { SetOptions(value); return *this;}
297 
301  inline TransitGateway& WithOptions(TransitGatewayOptions&& value) { SetOptions(std::move(value)); return *this;}
302 
303 
307  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
308 
312  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
313 
317  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
318 
322  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
323 
327  inline TransitGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
328 
332  inline TransitGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
333 
337  inline TransitGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
338 
342  inline TransitGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
343 
344  private:
345 
346  Aws::String m_transitGatewayId;
347  bool m_transitGatewayIdHasBeenSet;
348 
349  Aws::String m_transitGatewayArn;
350  bool m_transitGatewayArnHasBeenSet;
351 
352  TransitGatewayState m_state;
353  bool m_stateHasBeenSet;
354 
355  Aws::String m_ownerId;
356  bool m_ownerIdHasBeenSet;
357 
358  Aws::String m_description;
359  bool m_descriptionHasBeenSet;
360 
361  Aws::Utils::DateTime m_creationTime;
362  bool m_creationTimeHasBeenSet;
363 
364  TransitGatewayOptions m_options;
365  bool m_optionsHasBeenSet;
366 
367  Aws::Vector<Tag> m_tags;
368  bool m_tagsHasBeenSet;
369  };
370 
371 } // namespace Model
372 } // namespace EC2
373 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::TransitGateway::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: TransitGateway.h:65
Aws::EC2::Model::TransitGateway::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TransitGateway.h:312
Aws::EC2::Model::TransitGateway::WithDescription
TransitGateway & WithDescription(Aws::String &&value)
Definition: TransitGateway.h:234
Aws::EC2::Model::TransitGateway::WithState
TransitGateway & WithState(const TransitGatewayState &value)
Definition: TransitGateway.h:152
Aws::EC2::Model::TransitGateway::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: TransitGateway.h:70
Aws::EC2::Model::TransitGateway::AddTags
TransitGateway & AddTags(Tag &&value)
Definition: TransitGateway.h:342
Aws::EC2::Model::TransitGateway::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGateway.h:260
Aws::EC2::Model::TransitGateway::TransitGatewayArnHasBeenSet
bool TransitGatewayArnHasBeenSet() const
Definition: TransitGateway.h:96
Aws::EC2::Model::TransitGateway::WithTags
TransitGateway & WithTags(const Aws::Vector< Tag > &value)
Definition: TransitGateway.h:327
Aws::EC2::Model::TransitGateway::GetDescription
const Aws::String & GetDescription() const
Definition: TransitGateway.h:204
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::TransitGateway::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGateway.h:137
Aws::EC2::Model::TransitGateway::operator=
TransitGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGateway::WithTransitGatewayId
TransitGateway & WithTransitGatewayId(const Aws::String &value)
Definition: TransitGateway.h:75
Aws::EC2::Model::TransitGateway::WithOwnerId
TransitGateway & WithOwnerId(const Aws::String &value)
Definition: TransitGateway.h:188
Aws::EC2::Model::TransitGateway::SetOptions
void SetOptions(const TransitGatewayOptions &value)
Definition: TransitGateway.h:286
Aws::EC2::Model::TransitGateway::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TransitGateway.h:307
Aws::EC2::Model::TransitGateway::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: TransitGateway.h:168
Aws::EC2::Model::TransitGateway::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: TransitGateway.h:55
DateTime.h
Aws::EC2::Model::TransitGateway::WithDescription
TransitGateway & WithDescription(const char *value)
Definition: TransitGateway.h:239
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGateway::WithOptions
TransitGateway & WithOptions(const TransitGatewayOptions &value)
Definition: TransitGateway.h:296
Aws::EC2::Model::TransitGateway::GetState
const TransitGatewayState & GetState() const
Definition: TransitGateway.h:132
Aws::EC2::Model::TransitGateway::WithCreationTime
TransitGateway & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGateway.h:265
Aws::EC2::Model::TransitGateway::WithOwnerId
TransitGateway & WithOwnerId(const char *value)
Definition: TransitGateway.h:198
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::TransitGateway::SetDescription
void SetDescription(const char *value)
Definition: TransitGateway.h:224
AWSStreamFwd.h
Aws::EC2::Model::TransitGateway::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: TransitGateway.h:178
AWSVector.h
Aws::EC2::Model::TransitGateway::WithCreationTime
TransitGateway & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGateway.h:270
Tag.h
Aws::EC2::Model::TransitGateway::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: TransitGateway.h:163
Aws::EC2::Model::TransitGateway::SetTransitGatewayArn
void SetTransitGatewayArn(const char *value)
Definition: TransitGateway.h:111
Aws::EC2::Model::TransitGateway::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: TransitGateway.h:173
Aws::EC2::Model::TransitGateway::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: TransitGateway.h:209
Aws::EC2::Model::TransitGateway::GetTransitGatewayArn
const Aws::String & GetTransitGatewayArn() const
Definition: TransitGateway.h:91
Aws::EC2::Model::TransitGatewayState
TransitGatewayState
Definition: TransitGatewayState.h:17
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGateway::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGateway.h:255
TransitGatewayOptions.h
Aws::EC2::Model::TransitGateway::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: TransitGateway.h:245
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGateway::WithState
TransitGateway & WithState(TransitGatewayState &&value)
Definition: TransitGateway.h:157
Aws::EC2::Model::TransitGateway::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGateway::WithTransitGatewayId
TransitGateway & WithTransitGatewayId(const char *value)
Definition: TransitGateway.h:85
TransitGatewayState.h
Aws::EC2::Model::TransitGateway::WithTransitGatewayArn
TransitGateway & WithTransitGatewayArn(const Aws::String &value)
Definition: TransitGateway.h:116
Aws::EC2::Model::TransitGateway::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TransitGateway.h:317
AWSString.h
Aws::EC2::Model::TransitGateway::WithTags
TransitGateway & WithTags(Aws::Vector< Tag > &&value)
Definition: TransitGateway.h:332
Aws::EC2::Model::TransitGateway::SetState
void SetState(const TransitGatewayState &value)
Definition: TransitGateway.h:142
Aws::EC2::Model::TransitGateway::WithTransitGatewayId
TransitGateway & WithTransitGatewayId(Aws::String &&value)
Definition: TransitGateway.h:80
Aws::EC2::Model::TransitGateway::AddTags
TransitGateway & AddTags(const Tag &value)
Definition: TransitGateway.h:337
Aws::EC2::Model::TransitGateway::SetOptions
void SetOptions(TransitGatewayOptions &&value)
Definition: TransitGateway.h:291
Aws::EC2::Model::TransitGateway::SetTransitGatewayArn
void SetTransitGatewayArn(const Aws::String &value)
Definition: TransitGateway.h:101
Aws::EC2::Model::TransitGateway::WithDescription
TransitGateway & WithDescription(const Aws::String &value)
Definition: TransitGateway.h:229
Aws::EC2::Model::TransitGatewayOptions
Definition: TransitGatewayOptions.h:39
Aws::EC2::Model::TransitGateway::SetDescription
void SetDescription(const Aws::String &value)
Definition: TransitGateway.h:214
Aws::EC2::Model::TransitGateway::SetTransitGatewayArn
void SetTransitGatewayArn(Aws::String &&value)
Definition: TransitGateway.h:106
Aws::EC2::Model::TransitGateway::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGateway::SetOwnerId
void SetOwnerId(const char *value)
Definition: TransitGateway.h:183
Aws::EC2::Model::TransitGateway::TransitGateway
TransitGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TransitGateway::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: TransitGateway.h:60
Aws::EC2::Model::TransitGateway::SetDescription
void SetDescription(Aws::String &&value)
Definition: TransitGateway.h:219
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGateway::WithTransitGatewayArn
TransitGateway & WithTransitGatewayArn(Aws::String &&value)
Definition: TransitGateway.h:121
Aws::EC2::Model::TransitGateway::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: TransitGateway.h:281
Aws::EC2::Model::TransitGateway::WithOptions
TransitGateway & WithOptions(TransitGatewayOptions &&value)
Definition: TransitGateway.h:301
Aws::EC2::Model::TransitGateway::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: TransitGateway.h:250
Aws::EC2::Model::TransitGateway
Definition: TransitGateway.h:37
Aws::EC2::Model::TransitGateway::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: TransitGateway.h:50
Aws::EC2::Model::TransitGateway::GetOptions
const TransitGatewayOptions & GetOptions() const
Definition: TransitGateway.h:276
EC2_EXPORTS.h
Aws::EC2::Model::TransitGateway::TransitGateway
TransitGateway()
Aws::EC2::Model::TransitGateway::SetState
void SetState(TransitGatewayState &&value)
Definition: TransitGateway.h:147
Aws::EC2::Model::TransitGateway::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TransitGateway.h:322
Aws::EC2::Model::TransitGateway::WithTransitGatewayArn
TransitGateway & WithTransitGatewayArn(const char *value)
Definition: TransitGateway.h:126
Aws::EC2::Model::TransitGateway::WithOwnerId
TransitGateway & WithOwnerId(Aws::String &&value)
Definition: TransitGateway.h:193