AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
52 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
53 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
54 inline ServiceSpecificCredentialMetadata& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
55 inline ServiceSpecificCredentialMetadata& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
56 inline ServiceSpecificCredentialMetadata& WithUserName(const char* value) { SetUserName(value); return *this;}
58
60
64 inline const StatusType& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline ServiceSpecificCredentialMetadata& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
69 inline ServiceSpecificCredentialMetadata& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetServiceUserName() const{ return m_serviceUserName; }
77 inline bool ServiceUserNameHasBeenSet() const { return m_serviceUserNameHasBeenSet; }
78 inline void SetServiceUserName(const Aws::String& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = value; }
79 inline void SetServiceUserName(Aws::String&& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = std::move(value); }
80 inline void SetServiceUserName(const char* value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName.assign(value); }
82 inline ServiceSpecificCredentialMetadata& WithServiceUserName(Aws::String&& value) { SetServiceUserName(std::move(value)); return *this;}
83 inline ServiceSpecificCredentialMetadata& WithServiceUserName(const char* value) { SetServiceUserName(value); return *this;}
85
87
91 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
92 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
93 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
94 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
96 inline ServiceSpecificCredentialMetadata& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetServiceSpecificCredentialId() const{ return m_serviceSpecificCredentialId; }
104 inline bool ServiceSpecificCredentialIdHasBeenSet() const { return m_serviceSpecificCredentialIdHasBeenSet; }
105 inline void SetServiceSpecificCredentialId(const Aws::String& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = value; }
106 inline void SetServiceSpecificCredentialId(Aws::String&& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = std::move(value); }
107 inline void SetServiceSpecificCredentialId(const char* value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId.assign(value); }
112
114
117 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
118 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
119 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
120 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
121 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
123 inline ServiceSpecificCredentialMetadata& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
124 inline ServiceSpecificCredentialMetadata& WithServiceName(const char* value) { SetServiceName(value); return *this;}
126 private:
127
128 Aws::String m_userName;
129 bool m_userNameHasBeenSet = false;
130
131 StatusType m_status;
132 bool m_statusHasBeenSet = false;
133
134 Aws::String m_serviceUserName;
135 bool m_serviceUserNameHasBeenSet = false;
136
137 Aws::Utils::DateTime m_createDate;
138 bool m_createDateHasBeenSet = false;
139
140 Aws::String m_serviceSpecificCredentialId;
141 bool m_serviceSpecificCredentialIdHasBeenSet = false;
142
143 Aws::String m_serviceName;
144 bool m_serviceNameHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace IAM
149} // namespace Aws
ServiceSpecificCredentialMetadata & WithUserName(Aws::String &&value)
ServiceSpecificCredentialMetadata & WithServiceSpecificCredentialId(Aws::String &&value)
ServiceSpecificCredentialMetadata & WithServiceSpecificCredentialId(const Aws::String &value)
ServiceSpecificCredentialMetadata & WithStatus(StatusType &&value)
ServiceSpecificCredentialMetadata & WithServiceUserName(const char *value)
ServiceSpecificCredentialMetadata & WithServiceSpecificCredentialId(const char *value)
ServiceSpecificCredentialMetadata & WithStatus(const StatusType &value)
ServiceSpecificCredentialMetadata & WithUserName(const Aws::String &value)
ServiceSpecificCredentialMetadata & WithCreateDate(Aws::Utils::DateTime &&value)
AWS_IAM_API ServiceSpecificCredentialMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ServiceSpecificCredentialMetadata & WithCreateDate(const Aws::Utils::DateTime &value)
ServiceSpecificCredentialMetadata & WithServiceUserName(Aws::String &&value)
ServiceSpecificCredentialMetadata & WithServiceUserName(const Aws::String &value)
ServiceSpecificCredentialMetadata & WithServiceName(Aws::String &&value)
ServiceSpecificCredentialMetadata & WithServiceName(const Aws::String &value)
ServiceSpecificCredentialMetadata & WithServiceName(const char *value)
AWS_IAM_API ServiceSpecificCredentialMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ServiceSpecificCredentialMetadata & WithUserName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream