AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SigningCertificate.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 SigningCertificate() = default;
42 AWS_IAM_API SigningCertificate(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 SigningCertificate& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
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) { m_certificateIdHasBeenSet = true; m_certificateId = std::forward<CertificateIdT>(value); }
69 template<typename CertificateIdT = Aws::String>
70 SigningCertificate& WithCertificateId(CertificateIdT&& value) { SetCertificateId(std::forward<CertificateIdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetCertificateBody() const { return m_certificateBody; }
78 inline bool CertificateBodyHasBeenSet() const { return m_certificateBodyHasBeenSet; }
79 template<typename CertificateBodyT = Aws::String>
80 void SetCertificateBody(CertificateBodyT&& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = std::forward<CertificateBodyT>(value); }
81 template<typename CertificateBodyT = Aws::String>
82 SigningCertificate& WithCertificateBody(CertificateBodyT&& value) { SetCertificateBody(std::forward<CertificateBodyT>(value)); return *this;}
84
86
90 inline StatusType GetStatus() const { return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(StatusType value) { m_statusHasBeenSet = true; m_status = value; }
93 inline SigningCertificate& WithStatus(StatusType value) { SetStatus(value); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetUploadDate() const { return m_uploadDate; }
101 inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; }
102 template<typename UploadDateT = Aws::Utils::DateTime>
103 void SetUploadDate(UploadDateT&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = std::forward<UploadDateT>(value); }
104 template<typename UploadDateT = Aws::Utils::DateTime>
105 SigningCertificate& WithUploadDate(UploadDateT&& value) { SetUploadDate(std::forward<UploadDateT>(value)); return *this;}
107 private:
108
109 Aws::String m_userName;
110 bool m_userNameHasBeenSet = false;
111
112 Aws::String m_certificateId;
113 bool m_certificateIdHasBeenSet = false;
114
115 Aws::String m_certificateBody;
116 bool m_certificateBodyHasBeenSet = false;
117
119 bool m_statusHasBeenSet = false;
120
121 Aws::Utils::DateTime m_uploadDate{};
122 bool m_uploadDateHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace IAM
127} // 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