AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterCACertificateRequest.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/RegistrationConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/model/CertificateMode.h>
13#include <aws/iot/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace IoT
23{
24namespace Model
25{
26
34 {
35 public:
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "RegisterCACertificate"; }
43
44 AWS_IOT_API Aws::String SerializePayload() const override;
45
46 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
47
48
50
53 inline const Aws::String& GetCaCertificate() const{ return m_caCertificate; }
54 inline bool CaCertificateHasBeenSet() const { return m_caCertificateHasBeenSet; }
55 inline void SetCaCertificate(const Aws::String& value) { m_caCertificateHasBeenSet = true; m_caCertificate = value; }
56 inline void SetCaCertificate(Aws::String&& value) { m_caCertificateHasBeenSet = true; m_caCertificate = std::move(value); }
57 inline void SetCaCertificate(const char* value) { m_caCertificateHasBeenSet = true; m_caCertificate.assign(value); }
58 inline RegisterCACertificateRequest& WithCaCertificate(const Aws::String& value) { SetCaCertificate(value); return *this;}
59 inline RegisterCACertificateRequest& WithCaCertificate(Aws::String&& value) { SetCaCertificate(std::move(value)); return *this;}
60 inline RegisterCACertificateRequest& WithCaCertificate(const char* value) { SetCaCertificate(value); return *this;}
62
64
70 inline const Aws::String& GetVerificationCertificate() const{ return m_verificationCertificate; }
71 inline bool VerificationCertificateHasBeenSet() const { return m_verificationCertificateHasBeenSet; }
72 inline void SetVerificationCertificate(const Aws::String& value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate = value; }
73 inline void SetVerificationCertificate(Aws::String&& value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate = std::move(value); }
74 inline void SetVerificationCertificate(const char* value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate.assign(value); }
79
81
85 inline bool GetSetAsActive() const{ return m_setAsActive; }
86 inline bool SetAsActiveHasBeenSet() const { return m_setAsActiveHasBeenSet; }
87 inline void SetSetAsActive(bool value) { m_setAsActiveHasBeenSet = true; m_setAsActive = value; }
88 inline RegisterCACertificateRequest& WithSetAsActive(bool value) { SetSetAsActive(value); return *this;}
90
92
96 inline bool GetAllowAutoRegistration() const{ return m_allowAutoRegistration; }
97 inline bool AllowAutoRegistrationHasBeenSet() const { return m_allowAutoRegistrationHasBeenSet; }
98 inline void SetAllowAutoRegistration(bool value) { m_allowAutoRegistrationHasBeenSet = true; m_allowAutoRegistration = value; }
101
103
106 inline const RegistrationConfig& GetRegistrationConfig() const{ return m_registrationConfig; }
107 inline bool RegistrationConfigHasBeenSet() const { return m_registrationConfigHasBeenSet; }
108 inline void SetRegistrationConfig(const RegistrationConfig& value) { m_registrationConfigHasBeenSet = true; m_registrationConfig = value; }
109 inline void SetRegistrationConfig(RegistrationConfig&& value) { m_registrationConfigHasBeenSet = true; m_registrationConfig = std::move(value); }
113
115
122 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
125 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
126 inline RegisterCACertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
127 inline RegisterCACertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
128 inline RegisterCACertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
129 inline RegisterCACertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
131
133
146 inline const CertificateMode& GetCertificateMode() const{ return m_certificateMode; }
147 inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
148 inline void SetCertificateMode(const CertificateMode& value) { m_certificateModeHasBeenSet = true; m_certificateMode = value; }
149 inline void SetCertificateMode(CertificateMode&& value) { m_certificateModeHasBeenSet = true; m_certificateMode = std::move(value); }
151 inline RegisterCACertificateRequest& WithCertificateMode(CertificateMode&& value) { SetCertificateMode(std::move(value)); return *this;}
153 private:
154
155 Aws::String m_caCertificate;
156 bool m_caCertificateHasBeenSet = false;
157
158 Aws::String m_verificationCertificate;
159 bool m_verificationCertificateHasBeenSet = false;
160
161 bool m_setAsActive;
162 bool m_setAsActiveHasBeenSet = false;
163
164 bool m_allowAutoRegistration;
165 bool m_allowAutoRegistrationHasBeenSet = false;
166
167 RegistrationConfig m_registrationConfig;
168 bool m_registrationConfigHasBeenSet = false;
169
170 Aws::Vector<Tag> m_tags;
171 bool m_tagsHasBeenSet = false;
172
173 CertificateMode m_certificateMode;
174 bool m_certificateModeHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace IoT
179} // namespace Aws
RegisterCACertificateRequest & WithVerificationCertificate(const char *value)
RegisterCACertificateRequest & WithRegistrationConfig(const RegistrationConfig &value)
virtual const char * GetServiceRequestName() const override
RegisterCACertificateRequest & WithVerificationCertificate(Aws::String &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetRegistrationConfig(const RegistrationConfig &value)
RegisterCACertificateRequest & AddTags(const Tag &value)
RegisterCACertificateRequest & WithSetAsActive(bool value)
RegisterCACertificateRequest & WithRegistrationConfig(RegistrationConfig &&value)
RegisterCACertificateRequest & WithVerificationCertificate(const Aws::String &value)
RegisterCACertificateRequest & WithTags(const Aws::Vector< Tag > &value)
RegisterCACertificateRequest & WithCaCertificate(const Aws::String &value)
RegisterCACertificateRequest & WithTags(Aws::Vector< Tag > &&value)
RegisterCACertificateRequest & WithCertificateMode(const CertificateMode &value)
AWS_IOT_API Aws::String SerializePayload() const override
RegisterCACertificateRequest & AddTags(Tag &&value)
RegisterCACertificateRequest & WithCaCertificate(Aws::String &&value)
RegisterCACertificateRequest & WithCaCertificate(const char *value)
RegisterCACertificateRequest & WithCertificateMode(CertificateMode &&value)
RegisterCACertificateRequest & WithAllowAutoRegistration(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector