AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SSHPublicKeyMetadata.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
37 {
38 public:
39 AWS_IAM_API SSHPublicKeyMetadata() = default;
42
43 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetUserName() const { return m_userName; }
52 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
53 template<typename UserNameT = Aws::String>
54 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
55 template<typename UserNameT = Aws::String>
56 SSHPublicKeyMetadata& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetSSHPublicKeyId() const { return m_sSHPublicKeyId; }
64 inline bool SSHPublicKeyIdHasBeenSet() const { return m_sSHPublicKeyIdHasBeenSet; }
65 template<typename SSHPublicKeyIdT = Aws::String>
66 void SetSSHPublicKeyId(SSHPublicKeyIdT&& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = std::forward<SSHPublicKeyIdT>(value); }
67 template<typename SSHPublicKeyIdT = Aws::String>
68 SSHPublicKeyMetadata& WithSSHPublicKeyId(SSHPublicKeyIdT&& value) { SetSSHPublicKeyId(std::forward<SSHPublicKeyIdT>(value)); return *this;}
70
72
77 inline StatusType GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(StatusType value) { m_statusHasBeenSet = true; m_status = value; }
80 inline SSHPublicKeyMetadata& WithStatus(StatusType value) { SetStatus(value); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetUploadDate() const { return m_uploadDate; }
89 inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; }
90 template<typename UploadDateT = Aws::Utils::DateTime>
91 void SetUploadDate(UploadDateT&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = std::forward<UploadDateT>(value); }
92 template<typename UploadDateT = Aws::Utils::DateTime>
93 SSHPublicKeyMetadata& WithUploadDate(UploadDateT&& value) { SetUploadDate(std::forward<UploadDateT>(value)); return *this;}
95 private:
96
97 Aws::String m_userName;
98 bool m_userNameHasBeenSet = false;
99
100 Aws::String m_sSHPublicKeyId;
101 bool m_sSHPublicKeyIdHasBeenSet = false;
102
104 bool m_statusHasBeenSet = false;
105
106 Aws::Utils::DateTime m_uploadDate{};
107 bool m_uploadDateHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IAM
112} // namespace Aws
AWS_IAM_API SSHPublicKeyMetadata()=default
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSSHPublicKeyId() const
AWS_IAM_API SSHPublicKeyMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
SSHPublicKeyMetadata & WithStatus(StatusType value)
SSHPublicKeyMetadata & WithUserName(UserNameT &&value)
SSHPublicKeyMetadata & WithSSHPublicKeyId(SSHPublicKeyIdT &&value)
const Aws::String & GetUserName() const
void SetSSHPublicKeyId(SSHPublicKeyIdT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SSHPublicKeyMetadata & WithUploadDate(UploadDateT &&value)
const Aws::Utils::DateTime & GetUploadDate() const
AWS_IAM_API SSHPublicKeyMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream