AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ServiceSpecificCredential.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/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/StatusType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace IAM {
22namespace Model {
23
31 public:
32 AWS_IAM_API ServiceSpecificCredential() = default;
35
36 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
45 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
46 template <typename CreateDateT = Aws::Utils::DateTime>
47 void SetCreateDate(CreateDateT&& value) {
48 m_createDateHasBeenSet = true;
49 m_createDate = std::forward<CreateDateT>(value);
50 }
51 template <typename CreateDateT = Aws::Utils::DateTime>
53 SetCreateDate(std::forward<CreateDateT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
65 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
66 template <typename ExpirationDateT = Aws::Utils::DateTime>
67 void SetExpirationDate(ExpirationDateT&& value) {
68 m_expirationDateHasBeenSet = true;
69 m_expirationDate = std::forward<ExpirationDateT>(value);
70 }
71 template <typename ExpirationDateT = Aws::Utils::DateTime>
73 SetExpirationDate(std::forward<ExpirationDateT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetServiceName() const { return m_serviceName; }
83 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
84 template <typename ServiceNameT = Aws::String>
85 void SetServiceName(ServiceNameT&& value) {
86 m_serviceNameHasBeenSet = true;
87 m_serviceName = std::forward<ServiceNameT>(value);
88 }
89 template <typename ServiceNameT = Aws::String>
91 SetServiceName(std::forward<ServiceNameT>(value));
92 return *this;
93 }
95
97
103 inline const Aws::String& GetServiceUserName() const { return m_serviceUserName; }
104 inline bool ServiceUserNameHasBeenSet() const { return m_serviceUserNameHasBeenSet; }
105 template <typename ServiceUserNameT = Aws::String>
106 void SetServiceUserName(ServiceUserNameT&& value) {
107 m_serviceUserNameHasBeenSet = true;
108 m_serviceUserName = std::forward<ServiceUserNameT>(value);
109 }
110 template <typename ServiceUserNameT = Aws::String>
112 SetServiceUserName(std::forward<ServiceUserNameT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetServicePassword() const { return m_servicePassword; }
122 inline bool ServicePasswordHasBeenSet() const { return m_servicePasswordHasBeenSet; }
123 template <typename ServicePasswordT = Aws::String>
124 void SetServicePassword(ServicePasswordT&& value) {
125 m_servicePasswordHasBeenSet = true;
126 m_servicePassword = std::forward<ServicePasswordT>(value);
127 }
128 template <typename ServicePasswordT = Aws::String>
130 SetServicePassword(std::forward<ServicePasswordT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::String& GetServiceCredentialAlias() const { return m_serviceCredentialAlias; }
142 inline bool ServiceCredentialAliasHasBeenSet() const { return m_serviceCredentialAliasHasBeenSet; }
143 template <typename ServiceCredentialAliasT = Aws::String>
144 void SetServiceCredentialAlias(ServiceCredentialAliasT&& value) {
145 m_serviceCredentialAliasHasBeenSet = true;
146 m_serviceCredentialAlias = std::forward<ServiceCredentialAliasT>(value);
147 }
148 template <typename ServiceCredentialAliasT = Aws::String>
149 ServiceSpecificCredential& WithServiceCredentialAlias(ServiceCredentialAliasT&& value) {
150 SetServiceCredentialAlias(std::forward<ServiceCredentialAliasT>(value));
151 return *this;
152 }
154
156
161 inline const Aws::String& GetServiceCredentialSecret() const { return m_serviceCredentialSecret; }
162 inline bool ServiceCredentialSecretHasBeenSet() const { return m_serviceCredentialSecretHasBeenSet; }
163 template <typename ServiceCredentialSecretT = Aws::String>
164 void SetServiceCredentialSecret(ServiceCredentialSecretT&& value) {
165 m_serviceCredentialSecretHasBeenSet = true;
166 m_serviceCredentialSecret = std::forward<ServiceCredentialSecretT>(value);
167 }
168 template <typename ServiceCredentialSecretT = Aws::String>
169 ServiceSpecificCredential& WithServiceCredentialSecret(ServiceCredentialSecretT&& value) {
170 SetServiceCredentialSecret(std::forward<ServiceCredentialSecretT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetServiceSpecificCredentialId() const { return m_serviceSpecificCredentialId; }
180 inline bool ServiceSpecificCredentialIdHasBeenSet() const { return m_serviceSpecificCredentialIdHasBeenSet; }
181 template <typename ServiceSpecificCredentialIdT = Aws::String>
182 void SetServiceSpecificCredentialId(ServiceSpecificCredentialIdT&& value) {
183 m_serviceSpecificCredentialIdHasBeenSet = true;
184 m_serviceSpecificCredentialId = std::forward<ServiceSpecificCredentialIdT>(value);
185 }
186 template <typename ServiceSpecificCredentialIdT = Aws::String>
187 ServiceSpecificCredential& WithServiceSpecificCredentialId(ServiceSpecificCredentialIdT&& value) {
188 SetServiceSpecificCredentialId(std::forward<ServiceSpecificCredentialIdT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetUserName() const { return m_userName; }
198 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
199 template <typename UserNameT = Aws::String>
200 void SetUserName(UserNameT&& value) {
201 m_userNameHasBeenSet = true;
202 m_userName = std::forward<UserNameT>(value);
203 }
204 template <typename UserNameT = Aws::String>
206 SetUserName(std::forward<UserNameT>(value));
207 return *this;
208 }
210
212
216 inline StatusType GetStatus() const { return m_status; }
217 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
218 inline void SetStatus(StatusType value) {
219 m_statusHasBeenSet = true;
220 m_status = value;
221 }
223 SetStatus(value);
224 return *this;
225 }
227 private:
228 Aws::Utils::DateTime m_createDate{};
229
230 Aws::Utils::DateTime m_expirationDate{};
231
232 Aws::String m_serviceName;
233
234 Aws::String m_serviceUserName;
235
236 Aws::String m_servicePassword;
237
238 Aws::String m_serviceCredentialAlias;
239
240 Aws::String m_serviceCredentialSecret;
241
242 Aws::String m_serviceSpecificCredentialId;
243
244 Aws::String m_userName;
245
247 bool m_createDateHasBeenSet = false;
248 bool m_expirationDateHasBeenSet = false;
249 bool m_serviceNameHasBeenSet = false;
250 bool m_serviceUserNameHasBeenSet = false;
251 bool m_servicePasswordHasBeenSet = false;
252 bool m_serviceCredentialAliasHasBeenSet = false;
253 bool m_serviceCredentialSecretHasBeenSet = false;
254 bool m_serviceSpecificCredentialIdHasBeenSet = false;
255 bool m_userNameHasBeenSet = false;
256 bool m_statusHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace IAM
261} // namespace Aws
ServiceSpecificCredential & WithExpirationDate(ExpirationDateT &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
ServiceSpecificCredential & WithServiceCredentialAlias(ServiceCredentialAliasT &&value)
ServiceSpecificCredential & WithServiceName(ServiceNameT &&value)
void SetServiceSpecificCredentialId(ServiceSpecificCredentialIdT &&value)
const Aws::Utils::DateTime & GetCreateDate() const
void SetServiceCredentialAlias(ServiceCredentialAliasT &&value)
ServiceSpecificCredential & WithServiceSpecificCredentialId(ServiceSpecificCredentialIdT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_IAM_API ServiceSpecificCredential(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceSpecificCredential & WithStatus(StatusType value)
ServiceSpecificCredential & WithServiceCredentialSecret(ServiceCredentialSecretT &&value)
ServiceSpecificCredential & WithUserName(UserNameT &&value)
ServiceSpecificCredential & WithServiceUserName(ServiceUserNameT &&value)
void SetServiceCredentialSecret(ServiceCredentialSecretT &&value)
AWS_IAM_API ServiceSpecificCredential & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API ServiceSpecificCredential()=default
ServiceSpecificCredential & WithCreateDate(CreateDateT &&value)
ServiceSpecificCredential & WithServicePassword(ServicePasswordT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream