AWS SDK for C++  1.9.71
AWS SDK for C++
TransitGatewayRouteTable.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <aws/ec2/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
29 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
50 
54  inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
55 
59  inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
60 
64  inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
65 
69  inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
70 
74  inline TransitGatewayRouteTable& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
75 
79  inline TransitGatewayRouteTable& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
80 
84  inline TransitGatewayRouteTable& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
85 
86 
90  inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
91 
95  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
96 
100  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
101 
105  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
106 
110  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
111 
115  inline TransitGatewayRouteTable& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
116 
120  inline TransitGatewayRouteTable& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
121 
125  inline TransitGatewayRouteTable& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
126 
127 
131  inline const TransitGatewayRouteTableState& GetState() const{ return m_state; }
132 
136  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
137 
141  inline void SetState(const TransitGatewayRouteTableState& value) { m_stateHasBeenSet = true; m_state = value; }
142 
146  inline void SetState(TransitGatewayRouteTableState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
147 
151  inline TransitGatewayRouteTable& WithState(const TransitGatewayRouteTableState& value) { SetState(value); return *this;}
152 
156  inline TransitGatewayRouteTable& WithState(TransitGatewayRouteTableState&& value) { SetState(std::move(value)); return *this;}
157 
158 
163  inline bool GetDefaultAssociationRouteTable() const{ return m_defaultAssociationRouteTable; }
164 
169  inline bool DefaultAssociationRouteTableHasBeenSet() const { return m_defaultAssociationRouteTableHasBeenSet; }
170 
175  inline void SetDefaultAssociationRouteTable(bool value) { m_defaultAssociationRouteTableHasBeenSet = true; m_defaultAssociationRouteTable = value; }
176 
181  inline TransitGatewayRouteTable& WithDefaultAssociationRouteTable(bool value) { SetDefaultAssociationRouteTable(value); return *this;}
182 
183 
188  inline bool GetDefaultPropagationRouteTable() const{ return m_defaultPropagationRouteTable; }
189 
194  inline bool DefaultPropagationRouteTableHasBeenSet() const { return m_defaultPropagationRouteTableHasBeenSet; }
195 
200  inline void SetDefaultPropagationRouteTable(bool value) { m_defaultPropagationRouteTableHasBeenSet = true; m_defaultPropagationRouteTable = value; }
201 
206  inline TransitGatewayRouteTable& WithDefaultPropagationRouteTable(bool value) { SetDefaultPropagationRouteTable(value); return *this;}
207 
208 
212  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
213 
217  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
218 
222  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
223 
227  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
228 
232  inline TransitGatewayRouteTable& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
233 
237  inline TransitGatewayRouteTable& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
238 
239 
243  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
244 
248  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
249 
253  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
254 
258  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
259 
263  inline TransitGatewayRouteTable& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
264 
268  inline TransitGatewayRouteTable& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
269 
273  inline TransitGatewayRouteTable& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
274 
278  inline TransitGatewayRouteTable& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
279 
280  private:
281 
282  Aws::String m_transitGatewayRouteTableId;
283  bool m_transitGatewayRouteTableIdHasBeenSet;
284 
285  Aws::String m_transitGatewayId;
286  bool m_transitGatewayIdHasBeenSet;
287 
289  bool m_stateHasBeenSet;
290 
291  bool m_defaultAssociationRouteTable;
292  bool m_defaultAssociationRouteTableHasBeenSet;
293 
294  bool m_defaultPropagationRouteTable;
295  bool m_defaultPropagationRouteTableHasBeenSet;
296 
297  Aws::Utils::DateTime m_creationTime;
298  bool m_creationTimeHasBeenSet;
299 
300  Aws::Vector<Tag> m_tags;
301  bool m_tagsHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace EC2
306 } // namespace Aws
Aws::EC2::Model::TransitGatewayRouteTable::WithTransitGatewayRouteTableId
TransitGatewayRouteTable & WithTransitGatewayRouteTableId(const char *value)
Definition: TransitGatewayRouteTable.h:84
Aws::EC2::Model::TransitGatewayRouteTable::WithTransitGatewayId
TransitGatewayRouteTable & WithTransitGatewayId(const char *value)
Definition: TransitGatewayRouteTable.h:125
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::TransitGatewayRouteTable::WithTransitGatewayRouteTableId
TransitGatewayRouteTable & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: TransitGatewayRouteTable.h:79
Aws::EC2::Model::TransitGatewayRouteTable::TransitGatewayRouteTable
TransitGatewayRouteTable(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRouteTable::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TransitGatewayRouteTable.h:243
Aws::EC2::Model::TransitGatewayRouteTable::WithCreationTime
TransitGatewayRouteTable & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGatewayRouteTable.h:232
Aws::EC2::Model::TransitGatewayRouteTable::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: TransitGatewayRouteTable.h:54
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::TransitGatewayRouteTable::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: TransitGatewayRouteTable.h:217
Aws::EC2::Model::TransitGatewayRouteTable::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGatewayRouteTable.h:222
Aws::EC2::Model::TransitGatewayRouteTable::SetDefaultAssociationRouteTable
void SetDefaultAssociationRouteTable(bool value)
Definition: TransitGatewayRouteTable.h:175
Aws::EC2::Model::TransitGatewayRouteTableState
TransitGatewayRouteTableState
Definition: TransitGatewayRouteTableState.h:17
Aws::EC2::Model::TransitGatewayRouteTable::WithTransitGatewayRouteTableId
TransitGatewayRouteTable & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: TransitGatewayRouteTable.h:74
DateTime.h
Aws::EC2::Model::TransitGatewayRouteTable::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: TransitGatewayRouteTable.h:59
TransitGatewayRouteTableState.h
Aws::EC2::Model::TransitGatewayRouteTable::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayRouteTable::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: TransitGatewayRouteTable.h:64
Aws::EC2::Model::TransitGatewayRouteTable::WithTransitGatewayId
TransitGatewayRouteTable & WithTransitGatewayId(const Aws::String &value)
Definition: TransitGatewayRouteTable.h:115
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayRouteTable::SetDefaultPropagationRouteTable
void SetDefaultPropagationRouteTable(bool value)
Definition: TransitGatewayRouteTable.h:200
Aws::EC2::Model::TransitGatewayRouteTable
Definition: TransitGatewayRouteTable.h:36
AWSVector.h
Tag.h
Aws::EC2::Model::TransitGatewayRouteTable::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TransitGatewayRouteTable.h:258
Aws::EC2::Model::TransitGatewayRouteTable::GetDefaultAssociationRouteTable
bool GetDefaultAssociationRouteTable() const
Definition: TransitGatewayRouteTable.h:163
Aws::EC2::Model::TransitGatewayRouteTable::WithCreationTime
TransitGatewayRouteTable & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGatewayRouteTable.h:237
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayRouteTable::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayRouteTable.h:136
Aws::EC2::Model::TransitGatewayRouteTable::operator=
TransitGatewayRouteTable & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRouteTable::AddTags
TransitGatewayRouteTable & AddTags(Tag &&value)
Definition: TransitGatewayRouteTable.h:278
Aws::EC2::Model::TransitGatewayRouteTable::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: TransitGatewayRouteTable.h:90
Aws::EC2::Model::TransitGatewayRouteTable::WithState
TransitGatewayRouteTable & WithState(const TransitGatewayRouteTableState &value)
Definition: TransitGatewayRouteTable.h:151
AWSString.h
Aws::EC2::Model::TransitGatewayRouteTable::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: TransitGatewayRouteTable.h:110
Aws::EC2::Model::TransitGatewayRouteTable::WithTransitGatewayId
TransitGatewayRouteTable & WithTransitGatewayId(Aws::String &&value)
Definition: TransitGatewayRouteTable.h:120
Aws::EC2::Model::TransitGatewayRouteTable::SetState
void SetState(TransitGatewayRouteTableState &&value)
Definition: TransitGatewayRouteTable.h:146
Aws::EC2::Model::TransitGatewayRouteTable::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TransitGatewayRouteTable.h:253
Aws::EC2::Model::TransitGatewayRouteTable::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGatewayRouteTable.h:227
Aws::EC2::Model::TransitGatewayRouteTable::GetState
const TransitGatewayRouteTableState & GetState() const
Definition: TransitGatewayRouteTable.h:131
Aws::EC2::Model::TransitGatewayRouteTable::TransitGatewayRouteTable
TransitGatewayRouteTable()
Aws::EC2::Model::TransitGatewayRouteTable::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TransitGatewayRouteTable.h:248
Aws::EC2::Model::TransitGatewayRouteTable::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: TransitGatewayRouteTable.h:49
Aws::EC2::Model::TransitGatewayRouteTable::WithState
TransitGatewayRouteTable & WithState(TransitGatewayRouteTableState &&value)
Definition: TransitGatewayRouteTable.h:156
Aws::EC2::Model::TransitGatewayRouteTable::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: TransitGatewayRouteTable.h:105
Aws::EC2::Model::TransitGatewayRouteTable::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayRouteTable::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: TransitGatewayRouteTable.h:100
Aws::EC2::Model::TransitGatewayRouteTable::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: TransitGatewayRouteTable.h:95
Aws::EC2::Model::TransitGatewayRouteTable::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: TransitGatewayRouteTable.h:69
Aws::EC2::Model::TransitGatewayRouteTable::SetState
void SetState(const TransitGatewayRouteTableState &value)
Definition: TransitGatewayRouteTable.h:141
Aws::EC2::Model::TransitGatewayRouteTable::AddTags
TransitGatewayRouteTable & AddTags(const Tag &value)
Definition: TransitGatewayRouteTable.h:273
Aws::EC2::Model::TransitGatewayRouteTable::WithDefaultPropagationRouteTable
TransitGatewayRouteTable & WithDefaultPropagationRouteTable(bool value)
Definition: TransitGatewayRouteTable.h:206
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayRouteTable::WithTags
TransitGatewayRouteTable & WithTags(Aws::Vector< Tag > &&value)
Definition: TransitGatewayRouteTable.h:268
Aws::EC2::Model::TransitGatewayRouteTable::WithTags
TransitGatewayRouteTable & WithTags(const Aws::Vector< Tag > &value)
Definition: TransitGatewayRouteTable.h:263
Aws::EC2::Model::TransitGatewayRouteTable::DefaultPropagationRouteTableHasBeenSet
bool DefaultPropagationRouteTableHasBeenSet() const
Definition: TransitGatewayRouteTable.h:194
Aws::EC2::Model::TransitGatewayRouteTable::WithDefaultAssociationRouteTable
TransitGatewayRouteTable & WithDefaultAssociationRouteTable(bool value)
Definition: TransitGatewayRouteTable.h:181
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayRouteTable::DefaultAssociationRouteTableHasBeenSet
bool DefaultAssociationRouteTableHasBeenSet() const
Definition: TransitGatewayRouteTable.h:169
Aws::EC2::Model::TransitGatewayRouteTable::GetDefaultPropagationRouteTable
bool GetDefaultPropagationRouteTable() const
Definition: TransitGatewayRouteTable.h:188
Aws::EC2::Model::TransitGatewayRouteTable::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: TransitGatewayRouteTable.h:212