AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IpamExternalResourceVerificationToken.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/IpamExternalResourceVerificationTokenState.h>
13#include <aws/ec2/model/Tag.h>
14#include <aws/ec2/model/TokenState.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
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
46
49 inline const Aws::String& GetIpamExternalResourceVerificationTokenId() const { return m_ipamExternalResourceVerificationTokenId; }
50 inline bool IpamExternalResourceVerificationTokenIdHasBeenSet() const { return m_ipamExternalResourceVerificationTokenIdHasBeenSet; }
51 template <typename IpamExternalResourceVerificationTokenIdT = Aws::String>
52 void SetIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT&& value) {
53 m_ipamExternalResourceVerificationTokenIdHasBeenSet = true;
54 m_ipamExternalResourceVerificationTokenId = std::forward<IpamExternalResourceVerificationTokenIdT>(value);
55 }
56 template <typename IpamExternalResourceVerificationTokenIdT = Aws::String>
58 SetIpamExternalResourceVerificationTokenId(std::forward<IpamExternalResourceVerificationTokenIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetIpamExternalResourceVerificationTokenArn() const { return m_ipamExternalResourceVerificationTokenArn; }
68 inline bool IpamExternalResourceVerificationTokenArnHasBeenSet() const { return m_ipamExternalResourceVerificationTokenArnHasBeenSet; }
69 template <typename IpamExternalResourceVerificationTokenArnT = Aws::String>
70 void SetIpamExternalResourceVerificationTokenArn(IpamExternalResourceVerificationTokenArnT&& value) {
71 m_ipamExternalResourceVerificationTokenArnHasBeenSet = true;
72 m_ipamExternalResourceVerificationTokenArn = std::forward<IpamExternalResourceVerificationTokenArnT>(value);
73 }
74 template <typename IpamExternalResourceVerificationTokenArnT = Aws::String>
75 IpamExternalResourceVerificationToken& WithIpamExternalResourceVerificationTokenArn(IpamExternalResourceVerificationTokenArnT&& value) {
76 SetIpamExternalResourceVerificationTokenArn(std::forward<IpamExternalResourceVerificationTokenArnT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetIpamId() const { return m_ipamId; }
86 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
87 template <typename IpamIdT = Aws::String>
88 void SetIpamId(IpamIdT&& value) {
89 m_ipamIdHasBeenSet = true;
90 m_ipamId = std::forward<IpamIdT>(value);
91 }
92 template <typename IpamIdT = Aws::String>
94 SetIpamId(std::forward<IpamIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetIpamArn() const { return m_ipamArn; }
104 inline bool IpamArnHasBeenSet() const { return m_ipamArnHasBeenSet; }
105 template <typename IpamArnT = Aws::String>
106 void SetIpamArn(IpamArnT&& value) {
107 m_ipamArnHasBeenSet = true;
108 m_ipamArn = std::forward<IpamArnT>(value);
109 }
110 template <typename IpamArnT = Aws::String>
112 SetIpamArn(std::forward<IpamArnT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetIpamRegion() const { return m_ipamRegion; }
122 inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; }
123 template <typename IpamRegionT = Aws::String>
124 void SetIpamRegion(IpamRegionT&& value) {
125 m_ipamRegionHasBeenSet = true;
126 m_ipamRegion = std::forward<IpamRegionT>(value);
127 }
128 template <typename IpamRegionT = Aws::String>
130 SetIpamRegion(std::forward<IpamRegionT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetTokenValue() const { return m_tokenValue; }
140 inline bool TokenValueHasBeenSet() const { return m_tokenValueHasBeenSet; }
141 template <typename TokenValueT = Aws::String>
142 void SetTokenValue(TokenValueT&& value) {
143 m_tokenValueHasBeenSet = true;
144 m_tokenValue = std::forward<TokenValueT>(value);
145 }
146 template <typename TokenValueT = Aws::String>
148 SetTokenValue(std::forward<TokenValueT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetTokenName() const { return m_tokenName; }
158 inline bool TokenNameHasBeenSet() const { return m_tokenNameHasBeenSet; }
159 template <typename TokenNameT = Aws::String>
160 void SetTokenName(TokenNameT&& value) {
161 m_tokenNameHasBeenSet = true;
162 m_tokenName = std::forward<TokenNameT>(value);
163 }
164 template <typename TokenNameT = Aws::String>
166 SetTokenName(std::forward<TokenNameT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
176 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
177 template <typename NotAfterT = Aws::Utils::DateTime>
178 void SetNotAfter(NotAfterT&& value) {
179 m_notAfterHasBeenSet = true;
180 m_notAfter = std::forward<NotAfterT>(value);
181 }
182 template <typename NotAfterT = Aws::Utils::DateTime>
184 SetNotAfter(std::forward<NotAfterT>(value));
185 return *this;
186 }
188
190
193 inline TokenState GetStatus() const { return m_status; }
194 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
195 inline void SetStatus(TokenState value) {
196 m_statusHasBeenSet = true;
197 m_status = value;
198 }
200 SetStatus(value);
201 return *this;
202 }
204
206
209 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
210 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 template <typename TagsT = Aws::Vector<Tag>>
212 void SetTags(TagsT&& value) {
213 m_tagsHasBeenSet = true;
214 m_tags = std::forward<TagsT>(value);
215 }
216 template <typename TagsT = Aws::Vector<Tag>>
218 SetTags(std::forward<TagsT>(value));
219 return *this;
220 }
221 template <typename TagsT = Tag>
223 m_tagsHasBeenSet = true;
224 m_tags.emplace_back(std::forward<TagsT>(value));
225 return *this;
226 }
228
230
233 inline IpamExternalResourceVerificationTokenState GetState() const { return m_state; }
234 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
236 m_stateHasBeenSet = true;
237 m_state = value;
238 }
240 SetState(value);
241 return *this;
242 }
244 private:
245 Aws::String m_ipamExternalResourceVerificationTokenId;
246
247 Aws::String m_ipamExternalResourceVerificationTokenArn;
248
249 Aws::String m_ipamId;
250
251 Aws::String m_ipamArn;
252
253 Aws::String m_ipamRegion;
254
255 Aws::String m_tokenValue;
256
257 Aws::String m_tokenName;
258
259 Aws::Utils::DateTime m_notAfter{};
260
262
263 Aws::Vector<Tag> m_tags;
264
266 bool m_ipamExternalResourceVerificationTokenIdHasBeenSet = false;
267 bool m_ipamExternalResourceVerificationTokenArnHasBeenSet = false;
268 bool m_ipamIdHasBeenSet = false;
269 bool m_ipamArnHasBeenSet = false;
270 bool m_ipamRegionHasBeenSet = false;
271 bool m_tokenValueHasBeenSet = false;
272 bool m_tokenNameHasBeenSet = false;
273 bool m_notAfterHasBeenSet = false;
274 bool m_statusHasBeenSet = false;
275 bool m_tagsHasBeenSet = false;
276 bool m_stateHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace EC2
281} // namespace Aws
IpamExternalResourceVerificationToken & WithNotAfter(NotAfterT &&value)
IpamExternalResourceVerificationToken & WithTokenName(TokenNameT &&value)
void SetIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT &&value)
IpamExternalResourceVerificationToken & WithStatus(TokenState value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamExternalResourceVerificationToken & WithIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT &&value)
IpamExternalResourceVerificationToken & WithIpamArn(IpamArnT &&value)
IpamExternalResourceVerificationToken & WithState(IpamExternalResourceVerificationTokenState value)
IpamExternalResourceVerificationToken & WithTokenValue(TokenValueT &&value)
IpamExternalResourceVerificationToken & WithTags(TagsT &&value)
IpamExternalResourceVerificationToken & AddTags(TagsT &&value)
AWS_EC2_API IpamExternalResourceVerificationToken(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamExternalResourceVerificationToken & WithIpamExternalResourceVerificationTokenArn(IpamExternalResourceVerificationTokenArnT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API IpamExternalResourceVerificationToken & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamExternalResourceVerificationToken & WithIpamId(IpamIdT &&value)
IpamExternalResourceVerificationToken & WithIpamRegion(IpamRegionT &&value)
void SetIpamExternalResourceVerificationTokenArn(IpamExternalResourceVerificationTokenArnT &&value)
void SetState(IpamExternalResourceVerificationTokenState 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