AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LocalGatewayRouteTable.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/LocalGatewayRouteTableMode.h>
12#include <aws/ec2/model/StateReason.h>
13#include <aws/ec2/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
25
32 public:
33 AWS_EC2_API LocalGatewayRouteTable() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
45 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
46 template <typename LocalGatewayRouteTableIdT = Aws::String>
47 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
48 m_localGatewayRouteTableIdHasBeenSet = true;
49 m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value);
50 }
51 template <typename LocalGatewayRouteTableIdT = Aws::String>
52 LocalGatewayRouteTable& WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
53 SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetLocalGatewayRouteTableArn() const { return m_localGatewayRouteTableArn; }
63 inline bool LocalGatewayRouteTableArnHasBeenSet() const { return m_localGatewayRouteTableArnHasBeenSet; }
64 template <typename LocalGatewayRouteTableArnT = Aws::String>
65 void SetLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT&& value) {
66 m_localGatewayRouteTableArnHasBeenSet = true;
67 m_localGatewayRouteTableArn = std::forward<LocalGatewayRouteTableArnT>(value);
68 }
69 template <typename LocalGatewayRouteTableArnT = Aws::String>
70 LocalGatewayRouteTable& WithLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT&& value) {
71 SetLocalGatewayRouteTableArn(std::forward<LocalGatewayRouteTableArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
81 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
82 template <typename LocalGatewayIdT = Aws::String>
83 void SetLocalGatewayId(LocalGatewayIdT&& value) {
84 m_localGatewayIdHasBeenSet = true;
85 m_localGatewayId = std::forward<LocalGatewayIdT>(value);
86 }
87 template <typename LocalGatewayIdT = Aws::String>
88 LocalGatewayRouteTable& WithLocalGatewayId(LocalGatewayIdT&& value) {
89 SetLocalGatewayId(std::forward<LocalGatewayIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
99 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
100 template <typename OutpostArnT = Aws::String>
101 void SetOutpostArn(OutpostArnT&& value) {
102 m_outpostArnHasBeenSet = true;
103 m_outpostArn = std::forward<OutpostArnT>(value);
104 }
105 template <typename OutpostArnT = Aws::String>
107 SetOutpostArn(std::forward<OutpostArnT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
118 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
119 template <typename OwnerIdT = Aws::String>
120 void SetOwnerId(OwnerIdT&& value) {
121 m_ownerIdHasBeenSet = true;
122 m_ownerId = std::forward<OwnerIdT>(value);
123 }
124 template <typename OwnerIdT = Aws::String>
126 SetOwnerId(std::forward<OwnerIdT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetState() const { return m_state; }
136 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
137 template <typename StateT = Aws::String>
138 void SetState(StateT&& value) {
139 m_stateHasBeenSet = true;
140 m_state = std::forward<StateT>(value);
141 }
142 template <typename StateT = Aws::String>
144 SetState(std::forward<StateT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
154 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
155 template <typename TagsT = Aws::Vector<Tag>>
156 void SetTags(TagsT&& value) {
157 m_tagsHasBeenSet = true;
158 m_tags = std::forward<TagsT>(value);
159 }
160 template <typename TagsT = Aws::Vector<Tag>>
162 SetTags(std::forward<TagsT>(value));
163 return *this;
164 }
165 template <typename TagsT = Tag>
167 m_tagsHasBeenSet = true;
168 m_tags.emplace_back(std::forward<TagsT>(value));
169 return *this;
170 }
172
174
177 inline LocalGatewayRouteTableMode GetMode() const { return m_mode; }
178 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
180 m_modeHasBeenSet = true;
181 m_mode = value;
182 }
184 SetMode(value);
185 return *this;
186 }
188
190
193 inline const StateReason& GetStateReason() const { return m_stateReason; }
194 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
195 template <typename StateReasonT = StateReason>
196 void SetStateReason(StateReasonT&& value) {
197 m_stateReasonHasBeenSet = true;
198 m_stateReason = std::forward<StateReasonT>(value);
199 }
200 template <typename StateReasonT = StateReason>
202 SetStateReason(std::forward<StateReasonT>(value));
203 return *this;
204 }
206 private:
207 Aws::String m_localGatewayRouteTableId;
208
209 Aws::String m_localGatewayRouteTableArn;
210
211 Aws::String m_localGatewayId;
212
213 Aws::String m_outpostArn;
214
215 Aws::String m_ownerId;
216
217 Aws::String m_state;
218
219 Aws::Vector<Tag> m_tags;
220
222
223 StateReason m_stateReason;
224 bool m_localGatewayRouteTableIdHasBeenSet = false;
225 bool m_localGatewayRouteTableArnHasBeenSet = false;
226 bool m_localGatewayIdHasBeenSet = false;
227 bool m_outpostArnHasBeenSet = false;
228 bool m_ownerIdHasBeenSet = false;
229 bool m_stateHasBeenSet = false;
230 bool m_tagsHasBeenSet = false;
231 bool m_modeHasBeenSet = false;
232 bool m_stateReasonHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace EC2
237} // namespace Aws
LocalGatewayRouteTable & WithLocalGatewayId(LocalGatewayIdT &&value)
LocalGatewayRouteTable & AddTags(TagsT &&value)
LocalGatewayRouteTableMode GetMode() const
const Aws::Vector< Tag > & GetTags() const
LocalGatewayRouteTable & WithMode(LocalGatewayRouteTableMode value)
LocalGatewayRouteTable & WithOutpostArn(OutpostArnT &&value)
void SetLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT &&value)
LocalGatewayRouteTable & WithTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMode(LocalGatewayRouteTableMode value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API LocalGatewayRouteTable()=default
LocalGatewayRouteTable & WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
LocalGatewayRouteTable & WithState(StateT &&value)
const Aws::String & GetLocalGatewayRouteTableArn() const
const Aws::String & GetLocalGatewayRouteTableId() const
LocalGatewayRouteTable & WithStateReason(StateReasonT &&value)
AWS_EC2_API LocalGatewayRouteTable(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLocalGatewayId(LocalGatewayIdT &&value)
LocalGatewayRouteTable & WithOwnerId(OwnerIdT &&value)
LocalGatewayRouteTable & WithLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT &&value)
AWS_EC2_API LocalGatewayRouteTable & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&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