AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterCertificateRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/CertificateStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace 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_IOT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; }
44 inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
45 inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
46 inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = std::move(value); }
47 inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); }
48 inline RegisterCertificateRequest& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
49 inline RegisterCertificateRequest& WithCertificatePem(Aws::String&& value) { SetCertificatePem(std::move(value)); return *this;}
50 inline RegisterCertificateRequest& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
52
54
57 inline const Aws::String& GetCaCertificatePem() const{ return m_caCertificatePem; }
58 inline bool CaCertificatePemHasBeenSet() const { return m_caCertificatePemHasBeenSet; }
59 inline void SetCaCertificatePem(const Aws::String& value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem = value; }
60 inline void SetCaCertificatePem(Aws::String&& value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem = std::move(value); }
61 inline void SetCaCertificatePem(const char* value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem.assign(value); }
63 inline RegisterCertificateRequest& WithCaCertificatePem(Aws::String&& value) { SetCaCertificatePem(std::move(value)); return *this;}
64 inline RegisterCertificateRequest& WithCaCertificatePem(const char* value) { SetCaCertificatePem(value); return *this;}
66
68
73 inline const CertificateStatus& GetStatus() const{ return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
76 inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
77 inline RegisterCertificateRequest& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;}
78 inline RegisterCertificateRequest& WithStatus(CertificateStatus&& value) { SetStatus(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_certificatePem;
83 bool m_certificatePemHasBeenSet = false;
84
85 Aws::String m_caCertificatePem;
86 bool m_caCertificatePemHasBeenSet = false;
87
88 CertificateStatus m_status;
89 bool m_statusHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace IoT
94} // namespace Aws
RegisterCertificateRequest & WithCaCertificatePem(Aws::String &&value)
AWS_IOT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
RegisterCertificateRequest & WithCaCertificatePem(const char *value)
RegisterCertificateRequest & WithCaCertificatePem(const Aws::String &value)
RegisterCertificateRequest & WithStatus(CertificateStatus &&value)
void SetStatus(const CertificateStatus &value)
RegisterCertificateRequest & WithStatus(const CertificateStatus &value)
RegisterCertificateRequest & WithCertificatePem(Aws::String &&value)
RegisterCertificateRequest & WithCertificatePem(const char *value)
RegisterCertificateRequest & WithCertificatePem(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String