AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SSHPublicKey.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
39 {
40 public:
41 AWS_IAM_API SSHPublicKey() = default;
42 AWS_IAM_API SSHPublicKey(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_IAM_API SSHPublicKey& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetUserName() const { return m_userName; }
54 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
55 template<typename UserNameT = Aws::String>
56 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
57 template<typename UserNameT = Aws::String>
58 SSHPublicKey& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
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) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = std::forward<SSHPublicKeyIdT>(value); }
69 template<typename SSHPublicKeyIdT = Aws::String>
70 SSHPublicKey& WithSSHPublicKeyId(SSHPublicKeyIdT&& value) { SetSSHPublicKeyId(std::forward<SSHPublicKeyIdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetFingerprint() const { return m_fingerprint; }
78 inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
79 template<typename FingerprintT = Aws::String>
80 void SetFingerprint(FingerprintT&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = std::forward<FingerprintT>(value); }
81 template<typename FingerprintT = Aws::String>
82 SSHPublicKey& WithFingerprint(FingerprintT&& value) { SetFingerprint(std::forward<FingerprintT>(value)); return *this;}
84
86
89 inline const Aws::String& GetSSHPublicKeyBody() const { return m_sSHPublicKeyBody; }
90 inline bool SSHPublicKeyBodyHasBeenSet() const { return m_sSHPublicKeyBodyHasBeenSet; }
91 template<typename SSHPublicKeyBodyT = Aws::String>
92 void SetSSHPublicKeyBody(SSHPublicKeyBodyT&& value) { m_sSHPublicKeyBodyHasBeenSet = true; m_sSHPublicKeyBody = std::forward<SSHPublicKeyBodyT>(value); }
93 template<typename SSHPublicKeyBodyT = Aws::String>
94 SSHPublicKey& WithSSHPublicKeyBody(SSHPublicKeyBodyT&& value) { SetSSHPublicKeyBody(std::forward<SSHPublicKeyBodyT>(value)); return *this;}
96
98
103 inline StatusType GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(StatusType value) { m_statusHasBeenSet = true; m_status = value; }
106 inline SSHPublicKey& WithStatus(StatusType value) { SetStatus(value); return *this;}
108
110
114 inline const Aws::Utils::DateTime& GetUploadDate() const { return m_uploadDate; }
115 inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; }
116 template<typename UploadDateT = Aws::Utils::DateTime>
117 void SetUploadDate(UploadDateT&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = std::forward<UploadDateT>(value); }
118 template<typename UploadDateT = Aws::Utils::DateTime>
119 SSHPublicKey& WithUploadDate(UploadDateT&& value) { SetUploadDate(std::forward<UploadDateT>(value)); return *this;}
121 private:
122
123 Aws::String m_userName;
124 bool m_userNameHasBeenSet = false;
125
126 Aws::String m_sSHPublicKeyId;
127 bool m_sSHPublicKeyIdHasBeenSet = false;
128
129 Aws::String m_fingerprint;
130 bool m_fingerprintHasBeenSet = false;
131
132 Aws::String m_sSHPublicKeyBody;
133 bool m_sSHPublicKeyBodyHasBeenSet = false;
134
136 bool m_statusHasBeenSet = false;
137
138 Aws::Utils::DateTime m_uploadDate{};
139 bool m_uploadDateHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace IAM
144} // 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