AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
53 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
54 inline ServiceSpecificCredential& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
55 inline ServiceSpecificCredential& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
63 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
64 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
65 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
66 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
67 inline ServiceSpecificCredential& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
68 inline ServiceSpecificCredential& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
69 inline ServiceSpecificCredential& WithServiceName(const char* value) { SetServiceName(value); return *this;}
71
73
79 inline const Aws::String& GetServiceUserName() const{ return m_serviceUserName; }
80 inline bool ServiceUserNameHasBeenSet() const { return m_serviceUserNameHasBeenSet; }
81 inline void SetServiceUserName(const Aws::String& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = value; }
82 inline void SetServiceUserName(Aws::String&& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = std::move(value); }
83 inline void SetServiceUserName(const char* value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName.assign(value); }
84 inline ServiceSpecificCredential& WithServiceUserName(const Aws::String& value) { SetServiceUserName(value); return *this;}
85 inline ServiceSpecificCredential& WithServiceUserName(Aws::String&& value) { SetServiceUserName(std::move(value)); return *this;}
86 inline ServiceSpecificCredential& WithServiceUserName(const char* value) { SetServiceUserName(value); return *this;}
88
90
93 inline const Aws::String& GetServicePassword() const{ return m_servicePassword; }
94 inline bool ServicePasswordHasBeenSet() const { return m_servicePasswordHasBeenSet; }
95 inline void SetServicePassword(const Aws::String& value) { m_servicePasswordHasBeenSet = true; m_servicePassword = value; }
96 inline void SetServicePassword(Aws::String&& value) { m_servicePasswordHasBeenSet = true; m_servicePassword = std::move(value); }
97 inline void SetServicePassword(const char* value) { m_servicePasswordHasBeenSet = true; m_servicePassword.assign(value); }
98 inline ServiceSpecificCredential& WithServicePassword(const Aws::String& value) { SetServicePassword(value); return *this;}
99 inline ServiceSpecificCredential& WithServicePassword(Aws::String&& value) { SetServicePassword(std::move(value)); return *this;}
100 inline ServiceSpecificCredential& WithServicePassword(const char* value) { SetServicePassword(value); return *this;}
102
104
107 inline const Aws::String& GetServiceSpecificCredentialId() const{ return m_serviceSpecificCredentialId; }
108 inline bool ServiceSpecificCredentialIdHasBeenSet() const { return m_serviceSpecificCredentialIdHasBeenSet; }
109 inline void SetServiceSpecificCredentialId(const Aws::String& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = value; }
110 inline void SetServiceSpecificCredentialId(Aws::String&& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = std::move(value); }
111 inline void SetServiceSpecificCredentialId(const char* value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId.assign(value); }
116
118
121 inline const Aws::String& GetUserName() const{ return m_userName; }
122 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
123 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
124 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
125 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
126 inline ServiceSpecificCredential& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
127 inline ServiceSpecificCredential& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
128 inline ServiceSpecificCredential& WithUserName(const char* value) { SetUserName(value); return *this;}
130
132
136 inline const StatusType& GetStatus() const{ return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
139 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
140 inline ServiceSpecificCredential& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
141 inline ServiceSpecificCredential& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
143 private:
144
145 Aws::Utils::DateTime m_createDate;
146 bool m_createDateHasBeenSet = false;
147
148 Aws::String m_serviceName;
149 bool m_serviceNameHasBeenSet = false;
150
151 Aws::String m_serviceUserName;
152 bool m_serviceUserNameHasBeenSet = false;
153
154 Aws::String m_servicePassword;
155 bool m_servicePasswordHasBeenSet = false;
156
157 Aws::String m_serviceSpecificCredentialId;
158 bool m_serviceSpecificCredentialIdHasBeenSet = false;
159
160 Aws::String m_userName;
161 bool m_userNameHasBeenSet = false;
162
163 StatusType m_status;
164 bool m_statusHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace IAM
169} // namespace Aws
ServiceSpecificCredential & WithServiceUserName(const char *value)
ServiceSpecificCredential & WithServiceSpecificCredentialId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateDate() const
ServiceSpecificCredential & WithCreateDate(Aws::Utils::DateTime &&value)
ServiceSpecificCredential & WithUserName(const char *value)
ServiceSpecificCredential & WithServicePassword(const Aws::String &value)
ServiceSpecificCredential & WithServicePassword(Aws::String &&value)
ServiceSpecificCredential & WithServiceUserName(Aws::String &&value)
void SetServiceSpecificCredentialId(const Aws::String &value)
ServiceSpecificCredential & WithStatus(StatusType &&value)
void SetCreateDate(Aws::Utils::DateTime &&value)
ServiceSpecificCredential & WithStatus(const StatusType &value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ServiceSpecificCredential & WithServiceName(const Aws::String &value)
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 & WithCreateDate(const Aws::Utils::DateTime &value)
ServiceSpecificCredential & WithServicePassword(const char *value)
ServiceSpecificCredential & WithServiceSpecificCredentialId(const char *value)
void SetCreateDate(const Aws::Utils::DateTime &value)
ServiceSpecificCredential & WithServiceName(Aws::String &&value)
ServiceSpecificCredential & WithServiceUserName(const Aws::String &value)
ServiceSpecificCredential & WithServiceName(const char *value)
ServiceSpecificCredential & WithUserName(const Aws::String &value)
ServiceSpecificCredential & WithServiceSpecificCredentialId(Aws::String &&value)
AWS_IAM_API ServiceSpecificCredential & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceSpecificCredential & WithUserName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream