AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
36 {
37 public:
38 AWS_IAM_API SSHPublicKeyMetadata();
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 SSHPublicKeyMetadata& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
56 inline SSHPublicKeyMetadata& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
57 inline SSHPublicKeyMetadata& 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 SSHPublicKeyMetadata& WithSSHPublicKeyId(const Aws::String& value) { SetSSHPublicKeyId(value); return *this;}
70 inline SSHPublicKeyMetadata& WithSSHPublicKeyId(Aws::String&& value) { SetSSHPublicKeyId(std::move(value)); return *this;}
71 inline SSHPublicKeyMetadata& WithSSHPublicKeyId(const char* value) { SetSSHPublicKeyId(value); return *this;}
73
75
80 inline const StatusType& GetStatus() const{ return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
83 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
84 inline SSHPublicKeyMetadata& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
85 inline SSHPublicKeyMetadata& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
87
89
93 inline const Aws::Utils::DateTime& GetUploadDate() const{ return m_uploadDate; }
94 inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; }
95 inline void SetUploadDate(const Aws::Utils::DateTime& value) { m_uploadDateHasBeenSet = true; m_uploadDate = value; }
96 inline void SetUploadDate(Aws::Utils::DateTime&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = std::move(value); }
97 inline SSHPublicKeyMetadata& WithUploadDate(const Aws::Utils::DateTime& value) { SetUploadDate(value); return *this;}
98 inline SSHPublicKeyMetadata& WithUploadDate(Aws::Utils::DateTime&& value) { SetUploadDate(std::move(value)); return *this;}
100 private:
101
102 Aws::String m_userName;
103 bool m_userNameHasBeenSet = false;
104
105 Aws::String m_sSHPublicKeyId;
106 bool m_sSHPublicKeyIdHasBeenSet = false;
107
108 StatusType m_status;
109 bool m_statusHasBeenSet = false;
110
111 Aws::Utils::DateTime m_uploadDate;
112 bool m_uploadDateHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace IAM
117} // namespace Aws
SSHPublicKeyMetadata & WithSSHPublicKeyId(const char *value)
void SetUploadDate(Aws::Utils::DateTime &&value)
SSHPublicKeyMetadata & WithUploadDate(Aws::Utils::DateTime &&value)
void SetUploadDate(const Aws::Utils::DateTime &value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSSHPublicKeyId() const
SSHPublicKeyMetadata & WithStatus(const StatusType &value)
SSHPublicKeyMetadata & WithStatus(StatusType &&value)
AWS_IAM_API SSHPublicKeyMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
SSHPublicKeyMetadata & WithUploadDate(const Aws::Utils::DateTime &value)
const Aws::String & GetUserName() const
SSHPublicKeyMetadata & WithUserName(Aws::String &&value)
SSHPublicKeyMetadata & WithUserName(const Aws::String &value)
SSHPublicKeyMetadata & WithSSHPublicKeyId(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUserName(const Aws::String &value)
void SetSSHPublicKeyId(const Aws::String &value)
void SetSSHPublicKeyId(Aws::String &&value)
SSHPublicKeyMetadata & WithUserName(const char *value)
SSHPublicKeyMetadata & WithSSHPublicKeyId(const Aws::String &value)
const Aws::Utils::DateTime & GetUploadDate() const
AWS_IAM_API SSHPublicKeyMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatus(const StatusType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream