AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SigningCertificate.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 SigningCertificate() = default;
37 AWS_IAM_API SigningCertificate(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 SigningCertificate& WithUserName(UserNameT&& value) {
56 SetUserName(std::forward<UserNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetCertificateId() const { return m_certificateId; }
66 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
67 template <typename CertificateIdT = Aws::String>
68 void SetCertificateId(CertificateIdT&& value) {
69 m_certificateIdHasBeenSet = true;
70 m_certificateId = std::forward<CertificateIdT>(value);
71 }
72 template <typename CertificateIdT = Aws::String>
73 SigningCertificate& WithCertificateId(CertificateIdT&& value) {
74 SetCertificateId(std::forward<CertificateIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetCertificateBody() const { return m_certificateBody; }
84 inline bool CertificateBodyHasBeenSet() const { return m_certificateBodyHasBeenSet; }
85 template <typename CertificateBodyT = Aws::String>
86 void SetCertificateBody(CertificateBodyT&& value) {
87 m_certificateBodyHasBeenSet = true;
88 m_certificateBody = std::forward<CertificateBodyT>(value);
89 }
90 template <typename CertificateBodyT = Aws::String>
91 SigningCertificate& WithCertificateBody(CertificateBodyT&& value) {
92 SetCertificateBody(std::forward<CertificateBodyT>(value));
93 return *this;
94 }
96
98
102 inline StatusType GetStatus() const { return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 inline void SetStatus(StatusType value) {
105 m_statusHasBeenSet = true;
106 m_status = value;
107 }
109 SetStatus(value);
110 return *this;
111 }
113
115
118 inline const Aws::Utils::DateTime& GetUploadDate() const { return m_uploadDate; }
119 inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; }
120 template <typename UploadDateT = Aws::Utils::DateTime>
121 void SetUploadDate(UploadDateT&& value) {
122 m_uploadDateHasBeenSet = true;
123 m_uploadDate = std::forward<UploadDateT>(value);
124 }
125 template <typename UploadDateT = Aws::Utils::DateTime>
126 SigningCertificate& WithUploadDate(UploadDateT&& value) {
127 SetUploadDate(std::forward<UploadDateT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_userName;
133
134 Aws::String m_certificateId;
135
136 Aws::String m_certificateBody;
137
139
140 Aws::Utils::DateTime m_uploadDate{};
141 bool m_userNameHasBeenSet = false;
142 bool m_certificateIdHasBeenSet = false;
143 bool m_certificateBodyHasBeenSet = false;
144 bool m_statusHasBeenSet = false;
145 bool m_uploadDateHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace IAM
150} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SigningCertificate & WithCertificateId(CertificateIdT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_IAM_API SigningCertificate()=default
const Aws::String & GetCertificateId() const
AWS_IAM_API SigningCertificate(const Aws::Utils::Xml::XmlNode &xmlNode)
SigningCertificate & WithUploadDate(UploadDateT &&value)
SigningCertificate & WithCertificateBody(CertificateBodyT &&value)
void SetCertificateId(CertificateIdT &&value)
AWS_IAM_API SigningCertificate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCertificateBody() const
void SetCertificateBody(CertificateBodyT &&value)
const Aws::String & GetUserName() const
const Aws::Utils::DateTime & GetUploadDate() const
void SetUploadDate(UploadDateT &&value)
SigningCertificate & WithUserName(UserNameT &&value)
SigningCertificate & WithStatus(StatusType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream