AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SSHPublicKey.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
35 public:
36 AWS_IAM_API SSHPublicKey() = default;
37 AWS_IAM_API SSHPublicKey(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_IAM_API SSHPublicKey& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline const Aws::String& GetUserName() const { return m_userName; }
48 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
49 template <typename UserNameT = Aws::String>
50 void SetUserName(UserNameT&& value) {
51 m_userNameHasBeenSet = true;
52 m_userName = std::forward<UserNameT>(value);
53 }
54 template <typename UserNameT = Aws::String>
55 SSHPublicKey& WithUserName(UserNameT&& value) {
56 SetUserName(std::forward<UserNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetSSHPublicKeyId() const { return m_sSHPublicKeyId; }
66 inline bool SSHPublicKeyIdHasBeenSet() const { return m_sSHPublicKeyIdHasBeenSet; }
67 template <typename SSHPublicKeyIdT = Aws::String>
68 void SetSSHPublicKeyId(SSHPublicKeyIdT&& value) {
69 m_sSHPublicKeyIdHasBeenSet = true;
70 m_sSHPublicKeyId = std::forward<SSHPublicKeyIdT>(value);
71 }
72 template <typename SSHPublicKeyIdT = Aws::String>
73 SSHPublicKey& WithSSHPublicKeyId(SSHPublicKeyIdT&& value) {
74 SetSSHPublicKeyId(std::forward<SSHPublicKeyIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetFingerprint() const { return m_fingerprint; }
84 inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
85 template <typename FingerprintT = Aws::String>
86 void SetFingerprint(FingerprintT&& value) {
87 m_fingerprintHasBeenSet = true;
88 m_fingerprint = std::forward<FingerprintT>(value);
89 }
90 template <typename FingerprintT = Aws::String>
91 SSHPublicKey& WithFingerprint(FingerprintT&& value) {
92 SetFingerprint(std::forward<FingerprintT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetSSHPublicKeyBody() const { return m_sSHPublicKeyBody; }
102 inline bool SSHPublicKeyBodyHasBeenSet() const { return m_sSHPublicKeyBodyHasBeenSet; }
103 template <typename SSHPublicKeyBodyT = Aws::String>
104 void SetSSHPublicKeyBody(SSHPublicKeyBodyT&& value) {
105 m_sSHPublicKeyBodyHasBeenSet = true;
106 m_sSHPublicKeyBody = std::forward<SSHPublicKeyBodyT>(value);
107 }
108 template <typename SSHPublicKeyBodyT = Aws::String>
109 SSHPublicKey& WithSSHPublicKeyBody(SSHPublicKeyBodyT&& value) {
110 SetSSHPublicKeyBody(std::forward<SSHPublicKeyBodyT>(value));
111 return *this;
112 }
114
116
121 inline StatusType GetStatus() const { return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(StatusType value) {
124 m_statusHasBeenSet = true;
125 m_status = value;
126 }
128 SetStatus(value);
129 return *this;
130 }
132
134
138 inline const Aws::Utils::DateTime& GetUploadDate() const { return m_uploadDate; }
139 inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; }
140 template <typename UploadDateT = Aws::Utils::DateTime>
141 void SetUploadDate(UploadDateT&& value) {
142 m_uploadDateHasBeenSet = true;
143 m_uploadDate = std::forward<UploadDateT>(value);
144 }
145 template <typename UploadDateT = Aws::Utils::DateTime>
146 SSHPublicKey& WithUploadDate(UploadDateT&& value) {
147 SetUploadDate(std::forward<UploadDateT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_userName;
153
154 Aws::String m_sSHPublicKeyId;
155
156 Aws::String m_fingerprint;
157
158 Aws::String m_sSHPublicKeyBody;
159
161
162 Aws::Utils::DateTime m_uploadDate{};
163 bool m_userNameHasBeenSet = false;
164 bool m_sSHPublicKeyIdHasBeenSet = false;
165 bool m_fingerprintHasBeenSet = false;
166 bool m_sSHPublicKeyBodyHasBeenSet = false;
167 bool m_statusHasBeenSet = false;
168 bool m_uploadDateHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace IAM
173} // namespace Aws
const Aws::String & GetFingerprint() const
const Aws::String & GetSSHPublicKeyBody() const
void SetUploadDate(UploadDateT &&value)
SSHPublicKey & WithSSHPublicKeyId(SSHPublicKeyIdT &&value)
const Aws::String & GetUserName() const
SSHPublicKey & WithUserName(UserNameT &&value)
void SetUserName(UserNameT &&value)
void SetSSHPublicKeyId(SSHPublicKeyIdT &&value)
SSHPublicKey & WithStatus(StatusType value)
StatusType GetStatus() const
bool SSHPublicKeyIdHasBeenSet() const
AWS_IAM_API SSHPublicKey()=default
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SSHPublicKey & WithFingerprint(FingerprintT &&value)
const Aws::Utils::DateTime & GetUploadDate() const
AWS_IAM_API SSHPublicKey & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool SSHPublicKeyBodyHasBeenSet() const
AWS_IAM_API SSHPublicKey(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSSHPublicKeyBody(SSHPublicKeyBodyT &&value)
void SetStatus(StatusType value)
const Aws::String & GetSSHPublicKeyId() const
SSHPublicKey & WithSSHPublicKeyBody(SSHPublicKeyBodyT &&value)
void SetFingerprint(FingerprintT &&value)
SSHPublicKey & WithUploadDate(UploadDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream