AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ServiceSpecificCredentialMetadata.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 ServiceSpecificCredentialMetadata() = 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
43 inline const Aws::String& GetUserName() const { return m_userName; }
44 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
45 template <typename UserNameT = Aws::String>
46 void SetUserName(UserNameT&& value) {
47 m_userNameHasBeenSet = true;
48 m_userName = std::forward<UserNameT>(value);
49 }
50 template <typename UserNameT = Aws::String>
52 SetUserName(std::forward<UserNameT>(value));
53 return *this;
54 }
56
58
62 inline StatusType GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(StatusType value) {
65 m_statusHasBeenSet = true;
66 m_status = value;
67 }
69 SetStatus(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetServiceUserName() const { return m_serviceUserName; }
79 inline bool ServiceUserNameHasBeenSet() const { return m_serviceUserNameHasBeenSet; }
80 template <typename ServiceUserNameT = Aws::String>
81 void SetServiceUserName(ServiceUserNameT&& value) {
82 m_serviceUserNameHasBeenSet = true;
83 m_serviceUserName = std::forward<ServiceUserNameT>(value);
84 }
85 template <typename ServiceUserNameT = Aws::String>
87 SetServiceUserName(std::forward<ServiceUserNameT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetServiceCredentialAlias() const { return m_serviceCredentialAlias; }
99 inline bool ServiceCredentialAliasHasBeenSet() const { return m_serviceCredentialAliasHasBeenSet; }
100 template <typename ServiceCredentialAliasT = Aws::String>
101 void SetServiceCredentialAlias(ServiceCredentialAliasT&& value) {
102 m_serviceCredentialAliasHasBeenSet = true;
103 m_serviceCredentialAlias = std::forward<ServiceCredentialAliasT>(value);
104 }
105 template <typename ServiceCredentialAliasT = Aws::String>
107 SetServiceCredentialAlias(std::forward<ServiceCredentialAliasT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
118 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
119 template <typename CreateDateT = Aws::Utils::DateTime>
120 void SetCreateDate(CreateDateT&& value) {
121 m_createDateHasBeenSet = true;
122 m_createDate = std::forward<CreateDateT>(value);
123 }
124 template <typename CreateDateT = Aws::Utils::DateTime>
126 SetCreateDate(std::forward<CreateDateT>(value));
127 return *this;
128 }
130
132
137 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
138 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
139 template <typename ExpirationDateT = Aws::Utils::DateTime>
140 void SetExpirationDate(ExpirationDateT&& value) {
141 m_expirationDateHasBeenSet = true;
142 m_expirationDate = std::forward<ExpirationDateT>(value);
143 }
144 template <typename ExpirationDateT = Aws::Utils::DateTime>
146 SetExpirationDate(std::forward<ExpirationDateT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetServiceSpecificCredentialId() const { return m_serviceSpecificCredentialId; }
156 inline bool ServiceSpecificCredentialIdHasBeenSet() const { return m_serviceSpecificCredentialIdHasBeenSet; }
157 template <typename ServiceSpecificCredentialIdT = Aws::String>
158 void SetServiceSpecificCredentialId(ServiceSpecificCredentialIdT&& value) {
159 m_serviceSpecificCredentialIdHasBeenSet = true;
160 m_serviceSpecificCredentialId = std::forward<ServiceSpecificCredentialIdT>(value);
161 }
162 template <typename ServiceSpecificCredentialIdT = Aws::String>
164 SetServiceSpecificCredentialId(std::forward<ServiceSpecificCredentialIdT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetServiceName() const { return m_serviceName; }
174 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
175 template <typename ServiceNameT = Aws::String>
176 void SetServiceName(ServiceNameT&& value) {
177 m_serviceNameHasBeenSet = true;
178 m_serviceName = std::forward<ServiceNameT>(value);
179 }
180 template <typename ServiceNameT = Aws::String>
182 SetServiceName(std::forward<ServiceNameT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_userName;
188
190
191 Aws::String m_serviceUserName;
192
193 Aws::String m_serviceCredentialAlias;
194
195 Aws::Utils::DateTime m_createDate{};
196
197 Aws::Utils::DateTime m_expirationDate{};
198
199 Aws::String m_serviceSpecificCredentialId;
200
201 Aws::String m_serviceName;
202 bool m_userNameHasBeenSet = false;
203 bool m_statusHasBeenSet = false;
204 bool m_serviceUserNameHasBeenSet = false;
205 bool m_serviceCredentialAliasHasBeenSet = false;
206 bool m_createDateHasBeenSet = false;
207 bool m_expirationDateHasBeenSet = false;
208 bool m_serviceSpecificCredentialIdHasBeenSet = false;
209 bool m_serviceNameHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace IAM
214} // namespace Aws
ServiceSpecificCredentialMetadata & WithServiceName(ServiceNameT &&value)
ServiceSpecificCredentialMetadata & WithExpirationDate(ExpirationDateT &&value)
void SetServiceSpecificCredentialId(ServiceSpecificCredentialIdT &&value)
ServiceSpecificCredentialMetadata & WithCreateDate(CreateDateT &&value)
ServiceSpecificCredentialMetadata & WithStatus(StatusType value)
AWS_IAM_API ServiceSpecificCredentialMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceSpecificCredentialMetadata & WithUserName(UserNameT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ServiceSpecificCredentialMetadata & WithServiceSpecificCredentialId(ServiceSpecificCredentialIdT &&value)
ServiceSpecificCredentialMetadata & WithServiceCredentialAlias(ServiceCredentialAliasT &&value)
ServiceSpecificCredentialMetadata & WithServiceUserName(ServiceUserNameT &&value)
AWS_IAM_API ServiceSpecificCredentialMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream