AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceSpecificCredential.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iam/model/StatusType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace IAM
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IAM_API ServiceSpecificCredential() = default;
40
41 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
51 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
52 template<typename CreateDateT = Aws::Utils::DateTime>
53 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
54 template<typename CreateDateT = Aws::Utils::DateTime>
55 ServiceSpecificCredential& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
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) { m_expirationDateHasBeenSet = true; m_expirationDate = std::forward<ExpirationDateT>(value); }
68 template<typename ExpirationDateT = Aws::Utils::DateTime>
69 ServiceSpecificCredential& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
71
73
76 inline const Aws::String& GetServiceName() const { return m_serviceName; }
77 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
78 template<typename ServiceNameT = Aws::String>
79 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
80 template<typename ServiceNameT = Aws::String>
81 ServiceSpecificCredential& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
83
85
91 inline const Aws::String& GetServiceUserName() const { return m_serviceUserName; }
92 inline bool ServiceUserNameHasBeenSet() const { return m_serviceUserNameHasBeenSet; }
93 template<typename ServiceUserNameT = Aws::String>
94 void SetServiceUserName(ServiceUserNameT&& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = std::forward<ServiceUserNameT>(value); }
95 template<typename ServiceUserNameT = Aws::String>
96 ServiceSpecificCredential& WithServiceUserName(ServiceUserNameT&& value) { SetServiceUserName(std::forward<ServiceUserNameT>(value)); return *this;}
98
100
103 inline const Aws::String& GetServicePassword() const { return m_servicePassword; }
104 inline bool ServicePasswordHasBeenSet() const { return m_servicePasswordHasBeenSet; }
105 template<typename ServicePasswordT = Aws::String>
106 void SetServicePassword(ServicePasswordT&& value) { m_servicePasswordHasBeenSet = true; m_servicePassword = std::forward<ServicePasswordT>(value); }
107 template<typename ServicePasswordT = Aws::String>
108 ServiceSpecificCredential& WithServicePassword(ServicePasswordT&& value) { SetServicePassword(std::forward<ServicePasswordT>(value)); return *this;}
110
112
117 inline const Aws::String& GetServiceCredentialAlias() const { return m_serviceCredentialAlias; }
118 inline bool ServiceCredentialAliasHasBeenSet() const { return m_serviceCredentialAliasHasBeenSet; }
119 template<typename ServiceCredentialAliasT = Aws::String>
120 void SetServiceCredentialAlias(ServiceCredentialAliasT&& value) { m_serviceCredentialAliasHasBeenSet = true; m_serviceCredentialAlias = std::forward<ServiceCredentialAliasT>(value); }
121 template<typename ServiceCredentialAliasT = Aws::String>
122 ServiceSpecificCredential& WithServiceCredentialAlias(ServiceCredentialAliasT&& value) { SetServiceCredentialAlias(std::forward<ServiceCredentialAliasT>(value)); return *this;}
124
126
131 inline const Aws::String& GetServiceCredentialSecret() const { return m_serviceCredentialSecret; }
132 inline bool ServiceCredentialSecretHasBeenSet() const { return m_serviceCredentialSecretHasBeenSet; }
133 template<typename ServiceCredentialSecretT = Aws::String>
134 void SetServiceCredentialSecret(ServiceCredentialSecretT&& value) { m_serviceCredentialSecretHasBeenSet = true; m_serviceCredentialSecret = std::forward<ServiceCredentialSecretT>(value); }
135 template<typename ServiceCredentialSecretT = Aws::String>
136 ServiceSpecificCredential& WithServiceCredentialSecret(ServiceCredentialSecretT&& value) { SetServiceCredentialSecret(std::forward<ServiceCredentialSecretT>(value)); return *this;}
138
140
143 inline const Aws::String& GetServiceSpecificCredentialId() const { return m_serviceSpecificCredentialId; }
144 inline bool ServiceSpecificCredentialIdHasBeenSet() const { return m_serviceSpecificCredentialIdHasBeenSet; }
145 template<typename ServiceSpecificCredentialIdT = Aws::String>
146 void SetServiceSpecificCredentialId(ServiceSpecificCredentialIdT&& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = std::forward<ServiceSpecificCredentialIdT>(value); }
147 template<typename ServiceSpecificCredentialIdT = Aws::String>
148 ServiceSpecificCredential& WithServiceSpecificCredentialId(ServiceSpecificCredentialIdT&& value) { SetServiceSpecificCredentialId(std::forward<ServiceSpecificCredentialIdT>(value)); return *this;}
150
152
155 inline const Aws::String& GetUserName() const { return m_userName; }
156 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
157 template<typename UserNameT = Aws::String>
158 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
159 template<typename UserNameT = Aws::String>
160 ServiceSpecificCredential& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
162
164
168 inline StatusType GetStatus() const { return m_status; }
169 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
170 inline void SetStatus(StatusType value) { m_statusHasBeenSet = true; m_status = value; }
171 inline ServiceSpecificCredential& WithStatus(StatusType value) { SetStatus(value); return *this;}
173 private:
174
175 Aws::Utils::DateTime m_createDate{};
176 bool m_createDateHasBeenSet = false;
177
178 Aws::Utils::DateTime m_expirationDate{};
179 bool m_expirationDateHasBeenSet = false;
180
181 Aws::String m_serviceName;
182 bool m_serviceNameHasBeenSet = false;
183
184 Aws::String m_serviceUserName;
185 bool m_serviceUserNameHasBeenSet = false;
186
187 Aws::String m_servicePassword;
188 bool m_servicePasswordHasBeenSet = false;
189
190 Aws::String m_serviceCredentialAlias;
191 bool m_serviceCredentialAliasHasBeenSet = false;
192
193 Aws::String m_serviceCredentialSecret;
194 bool m_serviceCredentialSecretHasBeenSet = false;
195
196 Aws::String m_serviceSpecificCredentialId;
197 bool m_serviceSpecificCredentialIdHasBeenSet = false;
198
199 Aws::String m_userName;
200 bool m_userNameHasBeenSet = false;
201
203 bool m_statusHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace IAM
208} // 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