AWS SDK for C++  1.9.129
AWS SDK for C++
RegisterCertificateWithoutCARequest.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 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "RegisterCertificateWithoutCA"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; }
40 
44  inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
45 
49  inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
50 
54  inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = std::move(value); }
55 
59  inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); }
60 
64  inline RegisterCertificateWithoutCARequest& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
65 
69  inline RegisterCertificateWithoutCARequest& WithCertificatePem(Aws::String&& value) { SetCertificatePem(std::move(value)); return *this;}
70 
74  inline RegisterCertificateWithoutCARequest& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
75 
76 
80  inline const CertificateStatus& GetStatus() const{ return m_status; }
81 
85  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 
90  inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
91 
95  inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 
100  inline RegisterCertificateWithoutCARequest& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;}
101 
105  inline RegisterCertificateWithoutCARequest& WithStatus(CertificateStatus&& value) { SetStatus(std::move(value)); return *this;}
106 
107  private:
108 
109  Aws::String m_certificatePem;
110  bool m_certificatePemHasBeenSet;
111 
112  CertificateStatus m_status;
113  bool m_statusHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace IoT
118 } // namespace Aws
Aws::IoT::Model::RegisterCertificateWithoutCARequest::CertificatePemHasBeenSet
bool CertificatePemHasBeenSet() const
Definition: RegisterCertificateWithoutCARequest.h:44
CertificateStatus.h
Aws::IoT::Model::CertificateStatus
CertificateStatus
Definition: CertificateStatus.h:17
Aws::IoT::Model::RegisterCertificateWithoutCARequest::SetCertificatePem
void SetCertificatePem(const char *value)
Definition: RegisterCertificateWithoutCARequest.h:59
Aws::IoT::Model::RegisterCertificateWithoutCARequest::SetCertificatePem
void SetCertificatePem(const Aws::String &value)
Definition: RegisterCertificateWithoutCARequest.h:49
Aws::IoT::Model::RegisterCertificateWithoutCARequest::GetCertificatePem
const Aws::String & GetCertificatePem() const
Definition: RegisterCertificateWithoutCARequest.h:39
Aws::IoT::Model::RegisterCertificateWithoutCARequest::SetStatus
void SetStatus(const CertificateStatus &value)
Definition: RegisterCertificateWithoutCARequest.h:90
Aws::IoT::Model::RegisterCertificateWithoutCARequest
Definition: RegisterCertificateWithoutCARequest.h:23
Aws::IoT::Model::RegisterCertificateWithoutCARequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterCertificateWithoutCARequest.h:31
Aws::IoT::Model::RegisterCertificateWithoutCARequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::RegisterCertificateWithoutCARequest::WithStatus
RegisterCertificateWithoutCARequest & WithStatus(CertificateStatus &&value)
Definition: RegisterCertificateWithoutCARequest.h:105
Aws::IoT::Model::RegisterCertificateWithoutCARequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: RegisterCertificateWithoutCARequest.h:85
Aws::IoT::Model::RegisterCertificateWithoutCARequest::WithCertificatePem
RegisterCertificateWithoutCARequest & WithCertificatePem(const Aws::String &value)
Definition: RegisterCertificateWithoutCARequest.h:64
Aws::IoT::Model::RegisterCertificateWithoutCARequest::WithStatus
RegisterCertificateWithoutCARequest & WithStatus(const CertificateStatus &value)
Definition: RegisterCertificateWithoutCARequest.h:100
AWSString.h
Aws::IoT::Model::RegisterCertificateWithoutCARequest::GetStatus
const CertificateStatus & GetStatus() const
Definition: RegisterCertificateWithoutCARequest.h:80
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::RegisterCertificateWithoutCARequest::SetStatus
void SetStatus(CertificateStatus &&value)
Definition: RegisterCertificateWithoutCARequest.h:95
Aws::IoT::Model::RegisterCertificateWithoutCARequest::WithCertificatePem
RegisterCertificateWithoutCARequest & WithCertificatePem(const char *value)
Definition: RegisterCertificateWithoutCARequest.h:74
Aws::IoT::Model::RegisterCertificateWithoutCARequest::RegisterCertificateWithoutCARequest
RegisterCertificateWithoutCARequest()
Aws::IoT::Model::RegisterCertificateWithoutCARequest::WithCertificatePem
RegisterCertificateWithoutCARequest & WithCertificatePem(Aws::String &&value)
Definition: RegisterCertificateWithoutCARequest.h:69
Aws
Definition: AccessManagementClient.h:15
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::RegisterCertificateWithoutCARequest::SetCertificatePem
void SetCertificatePem(Aws::String &&value)
Definition: RegisterCertificateWithoutCARequest.h:54
IoTRequest.h
IoT_EXPORTS.h