AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
36 {
37 public:
38 AWS_IAM_API SigningCertificate();
39 AWS_IAM_API SigningCertificate(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 SigningCertificate& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
56 inline SigningCertificate& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
57 inline SigningCertificate& WithUserName(const char* value) { SetUserName(value); return *this;}
59
61
64 inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
65 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
66 inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
67 inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
68 inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
69 inline SigningCertificate& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
70 inline SigningCertificate& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
71 inline SigningCertificate& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
73
75
78 inline const Aws::String& GetCertificateBody() const{ return m_certificateBody; }
79 inline bool CertificateBodyHasBeenSet() const { return m_certificateBodyHasBeenSet; }
80 inline void SetCertificateBody(const Aws::String& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = value; }
81 inline void SetCertificateBody(Aws::String&& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = std::move(value); }
82 inline void SetCertificateBody(const char* value) { m_certificateBodyHasBeenSet = true; m_certificateBody.assign(value); }
83 inline SigningCertificate& WithCertificateBody(const Aws::String& value) { SetCertificateBody(value); return *this;}
84 inline SigningCertificate& WithCertificateBody(Aws::String&& value) { SetCertificateBody(std::move(value)); return *this;}
85 inline SigningCertificate& WithCertificateBody(const char* value) { SetCertificateBody(value); return *this;}
87
89
93 inline const StatusType& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline SigningCertificate& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
98 inline SigningCertificate& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetUploadDate() const{ return m_uploadDate; }
106 inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; }
107 inline void SetUploadDate(const Aws::Utils::DateTime& value) { m_uploadDateHasBeenSet = true; m_uploadDate = value; }
108 inline void SetUploadDate(Aws::Utils::DateTime&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = std::move(value); }
109 inline SigningCertificate& WithUploadDate(const Aws::Utils::DateTime& value) { SetUploadDate(value); return *this;}
110 inline SigningCertificate& WithUploadDate(Aws::Utils::DateTime&& value) { SetUploadDate(std::move(value)); return *this;}
112 private:
113
114 Aws::String m_userName;
115 bool m_userNameHasBeenSet = false;
116
117 Aws::String m_certificateId;
118 bool m_certificateIdHasBeenSet = false;
119
120 Aws::String m_certificateBody;
121 bool m_certificateBodyHasBeenSet = false;
122
123 StatusType m_status;
124 bool m_statusHasBeenSet = false;
125
126 Aws::Utils::DateTime m_uploadDate;
127 bool m_uploadDateHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace IAM
132} // namespace Aws
void SetCertificateId(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SigningCertificate & WithCertificateBody(const Aws::String &value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCertificateId(const Aws::String &value)
SigningCertificate & WithUserName(const char *value)
const Aws::String & GetCertificateId() const
AWS_IAM_API SigningCertificate(const Aws::Utils::Xml::XmlNode &xmlNode)
SigningCertificate & WithStatus(const StatusType &value)
SigningCertificate & WithUploadDate(const Aws::Utils::DateTime &value)
SigningCertificate & WithCertificateId(const char *value)
void SetUploadDate(Aws::Utils::DateTime &&value)
void SetUserName(const Aws::String &value)
SigningCertificate & WithCertificateBody(const char *value)
const StatusType & GetStatus() const
void SetCertificateId(const char *value)
void SetCertificateBody(const char *value)
AWS_IAM_API SigningCertificate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCertificateBody() const
SigningCertificate & WithUserName(const Aws::String &value)
SigningCertificate & WithUserName(Aws::String &&value)
const Aws::String & GetUserName() const
SigningCertificate & WithCertificateId(const Aws::String &value)
const Aws::Utils::DateTime & GetUploadDate() const
SigningCertificate & WithCertificateId(Aws::String &&value)
SigningCertificate & WithCertificateBody(Aws::String &&value)
SigningCertificate & WithUploadDate(Aws::Utils::DateTime &&value)
void SetCertificateBody(const Aws::String &value)
void SetUserName(Aws::String &&value)
void SetStatus(const StatusType &value)
void SetCertificateBody(Aws::String &&value)
SigningCertificate & WithStatus(StatusType &&value)
void SetUploadDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream