AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
36 {
37 public:
38 AWS_IAM_API SSHPublicKey();
39 AWS_IAM_API SSHPublicKey(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_IAM_API SSHPublicKey& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetUserName() const{ return m_userName; }
51 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
52 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
53 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
54 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
55 inline SSHPublicKey& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
56 inline SSHPublicKey& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
57 inline SSHPublicKey& WithUserName(const char* value) { SetUserName(value); return *this;}
59
61
64 inline const Aws::String& GetSSHPublicKeyId() const{ return m_sSHPublicKeyId; }
65 inline bool SSHPublicKeyIdHasBeenSet() const { return m_sSHPublicKeyIdHasBeenSet; }
66 inline void SetSSHPublicKeyId(const Aws::String& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = value; }
67 inline void SetSSHPublicKeyId(Aws::String&& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = std::move(value); }
68 inline void SetSSHPublicKeyId(const char* value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId.assign(value); }
69 inline SSHPublicKey& WithSSHPublicKeyId(const Aws::String& value) { SetSSHPublicKeyId(value); return *this;}
70 inline SSHPublicKey& WithSSHPublicKeyId(Aws::String&& value) { SetSSHPublicKeyId(std::move(value)); return *this;}
71 inline SSHPublicKey& WithSSHPublicKeyId(const char* value) { SetSSHPublicKeyId(value); return *this;}
73
75
78 inline const Aws::String& GetFingerprint() const{ return m_fingerprint; }
79 inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
80 inline void SetFingerprint(const Aws::String& value) { m_fingerprintHasBeenSet = true; m_fingerprint = value; }
81 inline void SetFingerprint(Aws::String&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = std::move(value); }
82 inline void SetFingerprint(const char* value) { m_fingerprintHasBeenSet = true; m_fingerprint.assign(value); }
83 inline SSHPublicKey& WithFingerprint(const Aws::String& value) { SetFingerprint(value); return *this;}
84 inline SSHPublicKey& WithFingerprint(Aws::String&& value) { SetFingerprint(std::move(value)); return *this;}
85 inline SSHPublicKey& WithFingerprint(const char* value) { SetFingerprint(value); return *this;}
87
89
92 inline const Aws::String& GetSSHPublicKeyBody() const{ return m_sSHPublicKeyBody; }
93 inline bool SSHPublicKeyBodyHasBeenSet() const { return m_sSHPublicKeyBodyHasBeenSet; }
94 inline void SetSSHPublicKeyBody(const Aws::String& value) { m_sSHPublicKeyBodyHasBeenSet = true; m_sSHPublicKeyBody = value; }
95 inline void SetSSHPublicKeyBody(Aws::String&& value) { m_sSHPublicKeyBodyHasBeenSet = true; m_sSHPublicKeyBody = std::move(value); }
96 inline void SetSSHPublicKeyBody(const char* value) { m_sSHPublicKeyBodyHasBeenSet = true; m_sSHPublicKeyBody.assign(value); }
97 inline SSHPublicKey& WithSSHPublicKeyBody(const Aws::String& value) { SetSSHPublicKeyBody(value); return *this;}
98 inline SSHPublicKey& WithSSHPublicKeyBody(Aws::String&& value) { SetSSHPublicKeyBody(std::move(value)); return *this;}
99 inline SSHPublicKey& WithSSHPublicKeyBody(const char* value) { SetSSHPublicKeyBody(value); return *this;}
101
103
108 inline const StatusType& GetStatus() const{ return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
111 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
112 inline SSHPublicKey& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
113 inline SSHPublicKey& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
115
117
121 inline const Aws::Utils::DateTime& GetUploadDate() const{ return m_uploadDate; }
122 inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; }
123 inline void SetUploadDate(const Aws::Utils::DateTime& value) { m_uploadDateHasBeenSet = true; m_uploadDate = value; }
124 inline void SetUploadDate(Aws::Utils::DateTime&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = std::move(value); }
125 inline SSHPublicKey& WithUploadDate(const Aws::Utils::DateTime& value) { SetUploadDate(value); return *this;}
126 inline SSHPublicKey& WithUploadDate(Aws::Utils::DateTime&& value) { SetUploadDate(std::move(value)); return *this;}
128 private:
129
130 Aws::String m_userName;
131 bool m_userNameHasBeenSet = false;
132
133 Aws::String m_sSHPublicKeyId;
134 bool m_sSHPublicKeyIdHasBeenSet = false;
135
136 Aws::String m_fingerprint;
137 bool m_fingerprintHasBeenSet = false;
138
139 Aws::String m_sSHPublicKeyBody;
140 bool m_sSHPublicKeyBodyHasBeenSet = false;
141
142 StatusType m_status;
143 bool m_statusHasBeenSet = false;
144
145 Aws::Utils::DateTime m_uploadDate;
146 bool m_uploadDateHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace IAM
151} // namespace Aws
void SetUploadDate(const Aws::Utils::DateTime &value)
const Aws::String & GetFingerprint() const
const StatusType & GetStatus() const
const Aws::String & GetSSHPublicKeyBody() const
void SetUserName(const Aws::String &value)
void SetUserName(const char *value)
const Aws::String & GetUserName() const
SSHPublicKey & WithUserName(const char *value)
void SetFingerprint(const char *value)
SSHPublicKey & WithFingerprint(Aws::String &&value)
void SetFingerprint(Aws::String &&value)
SSHPublicKey & WithFingerprint(const Aws::String &value)
SSHPublicKey & WithStatus(StatusType &&value)
void SetSSHPublicKeyBody(Aws::String &&value)
SSHPublicKey & WithSSHPublicKeyBody(const Aws::String &value)
bool SSHPublicKeyIdHasBeenSet() const
void SetSSHPublicKeyId(Aws::String &&value)
SSHPublicKey & WithUserName(const Aws::String &value)
void SetSSHPublicKeyId(const char *value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUserName(Aws::String &&value)
void SetSSHPublicKeyBody(const Aws::String &value)
void SetSSHPublicKeyId(const Aws::String &value)
SSHPublicKey & WithFingerprint(const char *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
SSHPublicKey & WithSSHPublicKeyBody(const char *value)
SSHPublicKey & WithStatus(const StatusType &value)
void SetFingerprint(const Aws::String &value)
void SetStatus(const StatusType &value)
AWS_IAM_API SSHPublicKey(const Aws::Utils::Xml::XmlNode &xmlNode)
SSHPublicKey & WithUserName(Aws::String &&value)
void SetSSHPublicKeyBody(const char *value)
SSHPublicKey & WithUploadDate(const Aws::Utils::DateTime &value)
SSHPublicKey & WithSSHPublicKeyId(const char *value)
SSHPublicKey & WithSSHPublicKeyId(const Aws::String &value)
const Aws::String & GetSSHPublicKeyId() const
void SetUploadDate(Aws::Utils::DateTime &&value)
SSHPublicKey & WithSSHPublicKeyId(Aws::String &&value)
void SetStatus(StatusType &&value)
SSHPublicKey & WithUploadDate(Aws::Utils::DateTime &&value)
SSHPublicKey & WithSSHPublicKeyBody(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream