AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayRouteTable.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/TransitGatewayRouteTableState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
51 inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
52 inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
53 inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
54 inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
59
61
64 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
65 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
66 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
67 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
68 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
70 inline TransitGatewayRouteTable& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
71 inline TransitGatewayRouteTable& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
73
75
78 inline const TransitGatewayRouteTableState& GetState() const{ return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(const TransitGatewayRouteTableState& value) { m_stateHasBeenSet = true; m_state = value; }
81 inline void SetState(TransitGatewayRouteTableState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
82 inline TransitGatewayRouteTable& WithState(const TransitGatewayRouteTableState& value) { SetState(value); return *this;}
83 inline TransitGatewayRouteTable& WithState(TransitGatewayRouteTableState&& value) { SetState(std::move(value)); return *this;}
85
87
91 inline bool GetDefaultAssociationRouteTable() const{ return m_defaultAssociationRouteTable; }
92 inline bool DefaultAssociationRouteTableHasBeenSet() const { return m_defaultAssociationRouteTableHasBeenSet; }
93 inline void SetDefaultAssociationRouteTable(bool value) { m_defaultAssociationRouteTableHasBeenSet = true; m_defaultAssociationRouteTable = value; }
96
98
102 inline bool GetDefaultPropagationRouteTable() const{ return m_defaultPropagationRouteTable; }
103 inline bool DefaultPropagationRouteTableHasBeenSet() const { return m_defaultPropagationRouteTableHasBeenSet; }
104 inline void SetDefaultPropagationRouteTable(bool value) { m_defaultPropagationRouteTableHasBeenSet = true; m_defaultPropagationRouteTable = value; }
107
109
112 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
113 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
114 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
115 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
117 inline TransitGatewayRouteTable& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
119
121
124 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 inline TransitGatewayRouteTable& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
129 inline TransitGatewayRouteTable& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
130 inline TransitGatewayRouteTable& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
131 inline TransitGatewayRouteTable& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
133 private:
134
135 Aws::String m_transitGatewayRouteTableId;
136 bool m_transitGatewayRouteTableIdHasBeenSet = false;
137
138 Aws::String m_transitGatewayId;
139 bool m_transitGatewayIdHasBeenSet = false;
140
142 bool m_stateHasBeenSet = false;
143
144 bool m_defaultAssociationRouteTable;
145 bool m_defaultAssociationRouteTableHasBeenSet = false;
146
147 bool m_defaultPropagationRouteTable;
148 bool m_defaultPropagationRouteTableHasBeenSet = false;
149
150 Aws::Utils::DateTime m_creationTime;
151 bool m_creationTimeHasBeenSet = false;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_tagsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace EC2
159} // namespace Aws
TransitGatewayRouteTable & WithTransitGatewayRouteTableId(const char *value)
TransitGatewayRouteTable & WithCreationTime(Aws::Utils::DateTime &&value)
const Aws::String & GetTransitGatewayRouteTableId() const
TransitGatewayRouteTable & WithTags(const Aws::Vector< Tag > &value)
TransitGatewayRouteTable & WithState(TransitGatewayRouteTableState &&value)
TransitGatewayRouteTable & WithTransitGatewayId(const Aws::String &value)
TransitGatewayRouteTable & AddTags(Tag &&value)
AWS_EC2_API TransitGatewayRouteTable & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRouteTable & AddTags(const Tag &value)
const TransitGatewayRouteTableState & GetState() const
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetTransitGatewayId(const Aws::String &value)
TransitGatewayRouteTable & WithCreationTime(const Aws::Utils::DateTime &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Utils::DateTime & GetCreationTime() const
TransitGatewayRouteTable & WithTransitGatewayRouteTableId(Aws::String &&value)
TransitGatewayRouteTable & WithTransitGatewayId(const char *value)
void SetState(TransitGatewayRouteTableState &&value)
TransitGatewayRouteTable & WithState(const TransitGatewayRouteTableState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCreationTime(Aws::Utils::DateTime &&value)
TransitGatewayRouteTable & WithTransitGatewayRouteTableId(const Aws::String &value)
TransitGatewayRouteTable & WithDefaultAssociationRouteTable(bool value)
AWS_EC2_API TransitGatewayRouteTable(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayRouteTable & WithDefaultPropagationRouteTable(bool value)
TransitGatewayRouteTable & WithTags(Aws::Vector< Tag > &&value)
void SetTransitGatewayRouteTableId(const Aws::String &value)
void SetState(const TransitGatewayRouteTableState &value)
TransitGatewayRouteTable & WithTransitGatewayId(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