AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IpamExternalResourceVerificationToken.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/core/utils/DateTime.h>
11#include <aws/ec2/model/TokenState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/IpamExternalResourceVerificationTokenState.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
41 {
42 public:
46
47 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
55 inline const Aws::String& GetIpamExternalResourceVerificationTokenId() const { return m_ipamExternalResourceVerificationTokenId; }
56 inline bool IpamExternalResourceVerificationTokenIdHasBeenSet() const { return m_ipamExternalResourceVerificationTokenIdHasBeenSet; }
57 template<typename IpamExternalResourceVerificationTokenIdT = Aws::String>
58 void SetIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT&& value) { m_ipamExternalResourceVerificationTokenIdHasBeenSet = true; m_ipamExternalResourceVerificationTokenId = std::forward<IpamExternalResourceVerificationTokenIdT>(value); }
59 template<typename IpamExternalResourceVerificationTokenIdT = Aws::String>
60 IpamExternalResourceVerificationToken& WithIpamExternalResourceVerificationTokenId(IpamExternalResourceVerificationTokenIdT&& value) { SetIpamExternalResourceVerificationTokenId(std::forward<IpamExternalResourceVerificationTokenIdT>(value)); return *this;}
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) { m_ipamExternalResourceVerificationTokenArnHasBeenSet = true; m_ipamExternalResourceVerificationTokenArn = std::forward<IpamExternalResourceVerificationTokenArnT>(value); }
71 template<typename IpamExternalResourceVerificationTokenArnT = Aws::String>
72 IpamExternalResourceVerificationToken& WithIpamExternalResourceVerificationTokenArn(IpamExternalResourceVerificationTokenArnT&& value) { SetIpamExternalResourceVerificationTokenArn(std::forward<IpamExternalResourceVerificationTokenArnT>(value)); return *this;}
74
76
79 inline const Aws::String& GetIpamId() const { return m_ipamId; }
80 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
81 template<typename IpamIdT = Aws::String>
82 void SetIpamId(IpamIdT&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::forward<IpamIdT>(value); }
83 template<typename IpamIdT = Aws::String>
84 IpamExternalResourceVerificationToken& WithIpamId(IpamIdT&& value) { SetIpamId(std::forward<IpamIdT>(value)); return *this;}
86
88
91 inline const Aws::String& GetIpamArn() const { return m_ipamArn; }
92 inline bool IpamArnHasBeenSet() const { return m_ipamArnHasBeenSet; }
93 template<typename IpamArnT = Aws::String>
94 void SetIpamArn(IpamArnT&& value) { m_ipamArnHasBeenSet = true; m_ipamArn = std::forward<IpamArnT>(value); }
95 template<typename IpamArnT = Aws::String>
96 IpamExternalResourceVerificationToken& WithIpamArn(IpamArnT&& value) { SetIpamArn(std::forward<IpamArnT>(value)); return *this;}
98
100
103 inline const Aws::String& GetIpamRegion() const { return m_ipamRegion; }
104 inline bool IpamRegionHasBeenSet() const { return m_ipamRegionHasBeenSet; }
105 template<typename IpamRegionT = Aws::String>
106 void SetIpamRegion(IpamRegionT&& value) { m_ipamRegionHasBeenSet = true; m_ipamRegion = std::forward<IpamRegionT>(value); }
107 template<typename IpamRegionT = Aws::String>
108 IpamExternalResourceVerificationToken& WithIpamRegion(IpamRegionT&& value) { SetIpamRegion(std::forward<IpamRegionT>(value)); return *this;}
110
112
115 inline const Aws::String& GetTokenValue() const { return m_tokenValue; }
116 inline bool TokenValueHasBeenSet() const { return m_tokenValueHasBeenSet; }
117 template<typename TokenValueT = Aws::String>
118 void SetTokenValue(TokenValueT&& value) { m_tokenValueHasBeenSet = true; m_tokenValue = std::forward<TokenValueT>(value); }
119 template<typename TokenValueT = Aws::String>
120 IpamExternalResourceVerificationToken& WithTokenValue(TokenValueT&& value) { SetTokenValue(std::forward<TokenValueT>(value)); return *this;}
122
124
127 inline const Aws::String& GetTokenName() const { return m_tokenName; }
128 inline bool TokenNameHasBeenSet() const { return m_tokenNameHasBeenSet; }
129 template<typename TokenNameT = Aws::String>
130 void SetTokenName(TokenNameT&& value) { m_tokenNameHasBeenSet = true; m_tokenName = std::forward<TokenNameT>(value); }
131 template<typename TokenNameT = Aws::String>
132 IpamExternalResourceVerificationToken& WithTokenName(TokenNameT&& value) { SetTokenName(std::forward<TokenNameT>(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
140 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
141 template<typename NotAfterT = Aws::Utils::DateTime>
142 void SetNotAfter(NotAfterT&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::forward<NotAfterT>(value); }
143 template<typename NotAfterT = Aws::Utils::DateTime>
144 IpamExternalResourceVerificationToken& WithNotAfter(NotAfterT&& value) { SetNotAfter(std::forward<NotAfterT>(value)); return *this;}
146
148
151 inline TokenState GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 inline void SetStatus(TokenState value) { m_statusHasBeenSet = true; m_status = value; }
156
158
161 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Vector<Tag>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Vector<Tag>>
166 IpamExternalResourceVerificationToken& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsT = Tag>
168 IpamExternalResourceVerificationToken& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
170
172
175 inline IpamExternalResourceVerificationTokenState GetState() const { return m_state; }
176 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
177 inline void SetState(IpamExternalResourceVerificationTokenState value) { m_stateHasBeenSet = true; m_state = value; }
180 private:
181
182 Aws::String m_ipamExternalResourceVerificationTokenId;
183 bool m_ipamExternalResourceVerificationTokenIdHasBeenSet = false;
184
185 Aws::String m_ipamExternalResourceVerificationTokenArn;
186 bool m_ipamExternalResourceVerificationTokenArnHasBeenSet = false;
187
188 Aws::String m_ipamId;
189 bool m_ipamIdHasBeenSet = false;
190
191 Aws::String m_ipamArn;
192 bool m_ipamArnHasBeenSet = false;
193
194 Aws::String m_ipamRegion;
195 bool m_ipamRegionHasBeenSet = false;
196
197 Aws::String m_tokenValue;
198 bool m_tokenValueHasBeenSet = false;
199
200 Aws::String m_tokenName;
201 bool m_tokenNameHasBeenSet = false;
202
203 Aws::Utils::DateTime m_notAfter{};
204 bool m_notAfterHasBeenSet = false;
205
207 bool m_statusHasBeenSet = false;
208
209 Aws::Vector<Tag> m_tags;
210 bool m_tagsHasBeenSet = false;
211
213 bool m_stateHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace EC2
218} // 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