AWS SDK for C++  1.9.123
AWS SDK for C++
RegisterCertificateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "RegisterCertificate"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; }
43 
47  inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
48 
52  inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
53 
57  inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = std::move(value); }
58 
62  inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); }
63 
67  inline RegisterCertificateRequest& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
68 
72  inline RegisterCertificateRequest& WithCertificatePem(Aws::String&& value) { SetCertificatePem(std::move(value)); return *this;}
73 
77  inline RegisterCertificateRequest& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
78 
79 
83  inline const Aws::String& GetCaCertificatePem() const{ return m_caCertificatePem; }
84 
88  inline bool CaCertificatePemHasBeenSet() const { return m_caCertificatePemHasBeenSet; }
89 
93  inline void SetCaCertificatePem(const Aws::String& value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem = value; }
94 
98  inline void SetCaCertificatePem(Aws::String&& value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem = std::move(value); }
99 
103  inline void SetCaCertificatePem(const char* value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem.assign(value); }
104 
108  inline RegisterCertificateRequest& WithCaCertificatePem(const Aws::String& value) { SetCaCertificatePem(value); return *this;}
109 
113  inline RegisterCertificateRequest& WithCaCertificatePem(Aws::String&& value) { SetCaCertificatePem(std::move(value)); return *this;}
114 
118  inline RegisterCertificateRequest& WithCaCertificatePem(const char* value) { SetCaCertificatePem(value); return *this;}
119 
120 
124  inline const CertificateStatus& GetStatus() const{ return m_status; }
125 
129  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
130 
134  inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
135 
139  inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
140 
144  inline RegisterCertificateRequest& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;}
145 
149  inline RegisterCertificateRequest& WithStatus(CertificateStatus&& value) { SetStatus(std::move(value)); return *this;}
150 
151  private:
152 
153  Aws::String m_certificatePem;
154  bool m_certificatePemHasBeenSet;
155 
156  Aws::String m_caCertificatePem;
157  bool m_caCertificatePemHasBeenSet;
158 
159  CertificateStatus m_status;
160  bool m_statusHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace IoT
165 } // namespace Aws
Aws::IoT::Model::RegisterCertificateRequest::GetCertificatePem
const Aws::String & GetCertificatePem() const
Definition: RegisterCertificateRequest.h:42
Aws::IoT::Model::RegisterCertificateRequest::SetCaCertificatePem
void SetCaCertificatePem(Aws::String &&value)
Definition: RegisterCertificateRequest.h:98
Aws::IoT::Model::RegisterCertificateRequest::SetStatus
void SetStatus(const CertificateStatus &value)
Definition: RegisterCertificateRequest.h:134
Aws::IoT::Model::RegisterCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::RegisterCertificateRequest::SetCaCertificatePem
void SetCaCertificatePem(const Aws::String &value)
Definition: RegisterCertificateRequest.h:93
Aws::IoT::Model::RegisterCertificateRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: RegisterCertificateRequest.h:129
CertificateStatus.h
Aws::IoT::Model::RegisterCertificateRequest::RegisterCertificateRequest
RegisterCertificateRequest()
Aws::IoT::Model::RegisterCertificateRequest::WithCaCertificatePem
RegisterCertificateRequest & WithCaCertificatePem(const char *value)
Definition: RegisterCertificateRequest.h:118
Aws::IoT::Model::CertificateStatus
CertificateStatus
Definition: CertificateStatus.h:17
Aws::IoT::Model::RegisterCertificateRequest::SetCertificatePem
void SetCertificatePem(Aws::String &&value)
Definition: RegisterCertificateRequest.h:57
Aws::IoT::Model::RegisterCertificateRequest::SetCertificatePem
void SetCertificatePem(const Aws::String &value)
Definition: RegisterCertificateRequest.h:52
Aws::IoT::Model::RegisterCertificateRequest::CertificatePemHasBeenSet
bool CertificatePemHasBeenSet() const
Definition: RegisterCertificateRequest.h:47
Aws::IoT::Model::RegisterCertificateRequest::WithCertificatePem
RegisterCertificateRequest & WithCertificatePem(Aws::String &&value)
Definition: RegisterCertificateRequest.h:72
Aws::IoT::Model::RegisterCertificateRequest::GetCaCertificatePem
const Aws::String & GetCaCertificatePem() const
Definition: RegisterCertificateRequest.h:83
Aws::IoT::Model::RegisterCertificateRequest::SetCaCertificatePem
void SetCaCertificatePem(const char *value)
Definition: RegisterCertificateRequest.h:103
AWSString.h
Aws::IoT::Model::RegisterCertificateRequest::WithCertificatePem
RegisterCertificateRequest & WithCertificatePem(const Aws::String &value)
Definition: RegisterCertificateRequest.h:67
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::RegisterCertificateRequest::GetStatus
const CertificateStatus & GetStatus() const
Definition: RegisterCertificateRequest.h:124
Aws::IoT::Model::RegisterCertificateRequest::WithCertificatePem
RegisterCertificateRequest & WithCertificatePem(const char *value)
Definition: RegisterCertificateRequest.h:77
Aws::IoT::Model::RegisterCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterCertificateRequest.h:34
Aws::IoT::Model::RegisterCertificateRequest::WithStatus
RegisterCertificateRequest & WithStatus(const CertificateStatus &value)
Definition: RegisterCertificateRequest.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::RegisterCertificateRequest::WithCaCertificatePem
RegisterCertificateRequest & WithCaCertificatePem(const Aws::String &value)
Definition: RegisterCertificateRequest.h:108
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::RegisterCertificateRequest::CaCertificatePemHasBeenSet
bool CaCertificatePemHasBeenSet() const
Definition: RegisterCertificateRequest.h:88
IoTRequest.h
Aws::IoT::Model::RegisterCertificateRequest
Definition: RegisterCertificateRequest.h:26
Aws::IoT::Model::RegisterCertificateRequest::SetCertificatePem
void SetCertificatePem(const char *value)
Definition: RegisterCertificateRequest.h:62
Aws::IoT::Model::RegisterCertificateRequest::WithCaCertificatePem
RegisterCertificateRequest & WithCaCertificatePem(Aws::String &&value)
Definition: RegisterCertificateRequest.h:113
Aws::IoT::Model::RegisterCertificateRequest::SetStatus
void SetStatus(CertificateStatus &&value)
Definition: RegisterCertificateRequest.h:139
IoT_EXPORTS.h
Aws::IoT::Model::RegisterCertificateRequest::WithStatus
RegisterCertificateRequest & WithStatus(CertificateStatus &&value)
Definition: RegisterCertificateRequest.h:149