AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceSpecificCredentialMetadata.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/memory/stl/AWSString.h>
10#include <aws/iam/model/StatusType.h>
11#include <aws/core/utils/DateTime.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 ServiceSpecificCredentialMetadata() = 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
49 inline const Aws::String& GetUserName() const { return m_userName; }
50 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
51 template<typename UserNameT = Aws::String>
52 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
53 template<typename UserNameT = Aws::String>
54 ServiceSpecificCredentialMetadata& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
56
58
62 inline StatusType GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(StatusType value) { m_statusHasBeenSet = true; m_status = value; }
65 inline ServiceSpecificCredentialMetadata& WithStatus(StatusType value) { SetStatus(value); return *this;}
67
69
72 inline const Aws::String& GetServiceUserName() const { return m_serviceUserName; }
73 inline bool ServiceUserNameHasBeenSet() const { return m_serviceUserNameHasBeenSet; }
74 template<typename ServiceUserNameT = Aws::String>
75 void SetServiceUserName(ServiceUserNameT&& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = std::forward<ServiceUserNameT>(value); }
76 template<typename ServiceUserNameT = Aws::String>
77 ServiceSpecificCredentialMetadata& WithServiceUserName(ServiceUserNameT&& value) { SetServiceUserName(std::forward<ServiceUserNameT>(value)); return *this;}
79
81
86 inline const Aws::String& GetServiceCredentialAlias() const { return m_serviceCredentialAlias; }
87 inline bool ServiceCredentialAliasHasBeenSet() const { return m_serviceCredentialAliasHasBeenSet; }
88 template<typename ServiceCredentialAliasT = Aws::String>
89 void SetServiceCredentialAlias(ServiceCredentialAliasT&& value) { m_serviceCredentialAliasHasBeenSet = true; m_serviceCredentialAlias = std::forward<ServiceCredentialAliasT>(value); }
90 template<typename ServiceCredentialAliasT = Aws::String>
91 ServiceSpecificCredentialMetadata& WithServiceCredentialAlias(ServiceCredentialAliasT&& value) { SetServiceCredentialAlias(std::forward<ServiceCredentialAliasT>(value)); return *this;}
93
95
99 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
100 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
101 template<typename CreateDateT = Aws::Utils::DateTime>
102 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
103 template<typename CreateDateT = Aws::Utils::DateTime>
104 ServiceSpecificCredentialMetadata& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
106
108
113 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
114 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
115 template<typename ExpirationDateT = Aws::Utils::DateTime>
116 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::forward<ExpirationDateT>(value); }
117 template<typename ExpirationDateT = Aws::Utils::DateTime>
118 ServiceSpecificCredentialMetadata& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
120
122
125 inline const Aws::String& GetServiceSpecificCredentialId() const { return m_serviceSpecificCredentialId; }
126 inline bool ServiceSpecificCredentialIdHasBeenSet() const { return m_serviceSpecificCredentialIdHasBeenSet; }
127 template<typename ServiceSpecificCredentialIdT = Aws::String>
128 void SetServiceSpecificCredentialId(ServiceSpecificCredentialIdT&& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = std::forward<ServiceSpecificCredentialIdT>(value); }
129 template<typename ServiceSpecificCredentialIdT = Aws::String>
130 ServiceSpecificCredentialMetadata& WithServiceSpecificCredentialId(ServiceSpecificCredentialIdT&& value) { SetServiceSpecificCredentialId(std::forward<ServiceSpecificCredentialIdT>(value)); return *this;}
132
134
137 inline const Aws::String& GetServiceName() const { return m_serviceName; }
138 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
139 template<typename ServiceNameT = Aws::String>
140 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
141 template<typename ServiceNameT = Aws::String>
142 ServiceSpecificCredentialMetadata& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
144 private:
145
146 Aws::String m_userName;
147 bool m_userNameHasBeenSet = false;
148
150 bool m_statusHasBeenSet = false;
151
152 Aws::String m_serviceUserName;
153 bool m_serviceUserNameHasBeenSet = false;
154
155 Aws::String m_serviceCredentialAlias;
156 bool m_serviceCredentialAliasHasBeenSet = false;
157
158 Aws::Utils::DateTime m_createDate{};
159 bool m_createDateHasBeenSet = false;
160
161 Aws::Utils::DateTime m_expirationDate{};
162 bool m_expirationDateHasBeenSet = false;
163
164 Aws::String m_serviceSpecificCredentialId;
165 bool m_serviceSpecificCredentialIdHasBeenSet = false;
166
167 Aws::String m_serviceName;
168 bool m_serviceNameHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace IAM
173} // 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