AWS SDK for C++  1.9.123
AWS SDK for C++
RegisterCACertificateRequest.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>
12 #include <aws/iot/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Http
18 {
19  class URI;
20 } //namespace Http
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
36 
37  // Service request name is the Operation name which will send this request out,
38  // each operation should has unique request name, so that we can get operation's name from this request.
39  // Note: this is not true for response, multiple operations may have the same response name,
40  // so we can not get operation's name from response.
41  inline virtual const char* GetServiceRequestName() const override { return "RegisterCACertificate"; }
42 
43  Aws::String SerializePayload() const override;
44 
45  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46 
47 
51  inline const Aws::String& GetCaCertificate() const{ return m_caCertificate; }
52 
56  inline bool CaCertificateHasBeenSet() const { return m_caCertificateHasBeenSet; }
57 
61  inline void SetCaCertificate(const Aws::String& value) { m_caCertificateHasBeenSet = true; m_caCertificate = value; }
62 
66  inline void SetCaCertificate(Aws::String&& value) { m_caCertificateHasBeenSet = true; m_caCertificate = std::move(value); }
67 
71  inline void SetCaCertificate(const char* value) { m_caCertificateHasBeenSet = true; m_caCertificate.assign(value); }
72 
76  inline RegisterCACertificateRequest& WithCaCertificate(const Aws::String& value) { SetCaCertificate(value); return *this;}
77 
81  inline RegisterCACertificateRequest& WithCaCertificate(Aws::String&& value) { SetCaCertificate(std::move(value)); return *this;}
82 
86  inline RegisterCACertificateRequest& WithCaCertificate(const char* value) { SetCaCertificate(value); return *this;}
87 
88 
92  inline const Aws::String& GetVerificationCertificate() const{ return m_verificationCertificate; }
93 
97  inline bool VerificationCertificateHasBeenSet() const { return m_verificationCertificateHasBeenSet; }
98 
102  inline void SetVerificationCertificate(const Aws::String& value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate = value; }
103 
107  inline void SetVerificationCertificate(Aws::String&& value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate = std::move(value); }
108 
112  inline void SetVerificationCertificate(const char* value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate.assign(value); }
113 
117  inline RegisterCACertificateRequest& WithVerificationCertificate(const Aws::String& value) { SetVerificationCertificate(value); return *this;}
118 
122  inline RegisterCACertificateRequest& WithVerificationCertificate(Aws::String&& value) { SetVerificationCertificate(std::move(value)); return *this;}
123 
127  inline RegisterCACertificateRequest& WithVerificationCertificate(const char* value) { SetVerificationCertificate(value); return *this;}
128 
129 
133  inline bool GetSetAsActive() const{ return m_setAsActive; }
134 
138  inline bool SetAsActiveHasBeenSet() const { return m_setAsActiveHasBeenSet; }
139 
143  inline void SetSetAsActive(bool value) { m_setAsActiveHasBeenSet = true; m_setAsActive = value; }
144 
148  inline RegisterCACertificateRequest& WithSetAsActive(bool value) { SetSetAsActive(value); return *this;}
149 
150 
155  inline bool GetAllowAutoRegistration() const{ return m_allowAutoRegistration; }
156 
161  inline bool AllowAutoRegistrationHasBeenSet() const { return m_allowAutoRegistrationHasBeenSet; }
162 
167  inline void SetAllowAutoRegistration(bool value) { m_allowAutoRegistrationHasBeenSet = true; m_allowAutoRegistration = value; }
168 
173  inline RegisterCACertificateRequest& WithAllowAutoRegistration(bool value) { SetAllowAutoRegistration(value); return *this;}
174 
175 
179  inline const RegistrationConfig& GetRegistrationConfig() const{ return m_registrationConfig; }
180 
184  inline bool RegistrationConfigHasBeenSet() const { return m_registrationConfigHasBeenSet; }
185 
189  inline void SetRegistrationConfig(const RegistrationConfig& value) { m_registrationConfigHasBeenSet = true; m_registrationConfig = value; }
190 
194  inline void SetRegistrationConfig(RegistrationConfig&& value) { m_registrationConfigHasBeenSet = true; m_registrationConfig = std::move(value); }
195 
199  inline RegisterCACertificateRequest& WithRegistrationConfig(const RegistrationConfig& value) { SetRegistrationConfig(value); return *this;}
200 
204  inline RegisterCACertificateRequest& WithRegistrationConfig(RegistrationConfig&& value) { SetRegistrationConfig(std::move(value)); return *this;}
205 
206 
214  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
215 
223  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
224 
232  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
233 
241  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
242 
250  inline RegisterCACertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
251 
259  inline RegisterCACertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
260 
268  inline RegisterCACertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
269 
277  inline RegisterCACertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
278 
279  private:
280 
281  Aws::String m_caCertificate;
282  bool m_caCertificateHasBeenSet;
283 
284  Aws::String m_verificationCertificate;
285  bool m_verificationCertificateHasBeenSet;
286 
287  bool m_setAsActive;
288  bool m_setAsActiveHasBeenSet;
289 
290  bool m_allowAutoRegistration;
291  bool m_allowAutoRegistrationHasBeenSet;
292 
293  RegistrationConfig m_registrationConfig;
294  bool m_registrationConfigHasBeenSet;
295 
296  Aws::Vector<Tag> m_tags;
297  bool m_tagsHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace IoT
302 } // namespace Aws
Aws::IoT::Model::RegisterCACertificateRequest::VerificationCertificateHasBeenSet
bool VerificationCertificateHasBeenSet() const
Definition: RegisterCACertificateRequest.h:97
Aws::IoT::Model::RegisterCACertificateRequest::AllowAutoRegistrationHasBeenSet
bool AllowAutoRegistrationHasBeenSet() const
Definition: RegisterCACertificateRequest.h:161
Aws::IoT::Model::RegisterCACertificateRequest::WithVerificationCertificate
RegisterCACertificateRequest & WithVerificationCertificate(Aws::String &&value)
Definition: RegisterCACertificateRequest.h:122
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::RegisterCACertificateRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::RegisterCACertificateRequest::SetAsActiveHasBeenSet
bool SetAsActiveHasBeenSet() const
Definition: RegisterCACertificateRequest.h:138
Aws::IoT::Model::RegisterCACertificateRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: RegisterCACertificateRequest.h:232
Aws::IoT::Model::RegisterCACertificateRequest::WithSetAsActive
RegisterCACertificateRequest & WithSetAsActive(bool value)
Definition: RegisterCACertificateRequest.h:148
Aws::IoT::Model::RegisterCACertificateRequest::SetVerificationCertificate
void SetVerificationCertificate(const Aws::String &value)
Definition: RegisterCACertificateRequest.h:102
Aws::IoT::Model::RegisterCACertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::RegisterCACertificateRequest::WithTags
RegisterCACertificateRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: RegisterCACertificateRequest.h:259
Aws::IoT::Model::RegisterCACertificateRequest::WithCaCertificate
RegisterCACertificateRequest & WithCaCertificate(const char *value)
Definition: RegisterCACertificateRequest.h:86
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::RegisterCACertificateRequest::RegisterCACertificateRequest
RegisterCACertificateRequest()
AWSVector.h
Aws::IoT::Model::RegisterCACertificateRequest::SetRegistrationConfig
void SetRegistrationConfig(RegistrationConfig &&value)
Definition: RegisterCACertificateRequest.h:194
Aws::IoT::Model::RegisterCACertificateRequest::SetCaCertificate
void SetCaCertificate(const Aws::String &value)
Definition: RegisterCACertificateRequest.h:61
Aws::IoT::Model::RegisterCACertificateRequest::WithVerificationCertificate
RegisterCACertificateRequest & WithVerificationCertificate(const char *value)
Definition: RegisterCACertificateRequest.h:127
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::RegisterCACertificateRequest::CaCertificateHasBeenSet
bool CaCertificateHasBeenSet() const
Definition: RegisterCACertificateRequest.h:56
Aws::IoT::Model::RegisterCACertificateRequest::WithTags
RegisterCACertificateRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: RegisterCACertificateRequest.h:250
Aws::IoT::Model::RegisterCACertificateRequest::SetAllowAutoRegistration
void SetAllowAutoRegistration(bool value)
Definition: RegisterCACertificateRequest.h:167
Aws::IoT::Model::RegisterCACertificateRequest::WithRegistrationConfig
RegisterCACertificateRequest & WithRegistrationConfig(RegistrationConfig &&value)
Definition: RegisterCACertificateRequest.h:204
Aws::IoT::Model::RegisterCACertificateRequest::AddTags
RegisterCACertificateRequest & AddTags(Tag &&value)
Definition: RegisterCACertificateRequest.h:277
Aws::IoT::Model::RegisterCACertificateRequest::SetCaCertificate
void SetCaCertificate(const char *value)
Definition: RegisterCACertificateRequest.h:71
Aws::IoT::Model::RegisterCACertificateRequest::GetAllowAutoRegistration
bool GetAllowAutoRegistration() const
Definition: RegisterCACertificateRequest.h:155
Aws::IoT::Model::RegisterCACertificateRequest::WithCaCertificate
RegisterCACertificateRequest & WithCaCertificate(Aws::String &&value)
Definition: RegisterCACertificateRequest.h:81
AWSString.h
Aws::IoT::Model::RegisterCACertificateRequest::WithCaCertificate
RegisterCACertificateRequest & WithCaCertificate(const Aws::String &value)
Definition: RegisterCACertificateRequest.h:76
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::RegisterCACertificateRequest::SetCaCertificate
void SetCaCertificate(Aws::String &&value)
Definition: RegisterCACertificateRequest.h:66
Aws::IoT::Model::RegisterCACertificateRequest::GetVerificationCertificate
const Aws::String & GetVerificationCertificate() const
Definition: RegisterCACertificateRequest.h:92
Aws::IoT::Model::RegisterCACertificateRequest::GetCaCertificate
const Aws::String & GetCaCertificate() const
Definition: RegisterCACertificateRequest.h:51
Aws::IoT::Model::RegisterCACertificateRequest::SetSetAsActive
void SetSetAsActive(bool value)
Definition: RegisterCACertificateRequest.h:143
Aws::IoT::Model::RegisterCACertificateRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: RegisterCACertificateRequest.h:214
Aws::IoT::Model::RegisterCACertificateRequest::GetSetAsActive
bool GetSetAsActive() const
Definition: RegisterCACertificateRequest.h:133
Aws::IoT::Model::RegistrationConfig
Definition: RegistrationConfig.h:32
Aws::IoT::Model::RegisterCACertificateRequest::SetRegistrationConfig
void SetRegistrationConfig(const RegistrationConfig &value)
Definition: RegisterCACertificateRequest.h:189
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::RegisterCACertificateRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: RegisterCACertificateRequest.h:241
Aws::IoT::Model::RegisterCACertificateRequest::SetVerificationCertificate
void SetVerificationCertificate(Aws::String &&value)
Definition: RegisterCACertificateRequest.h:107
Aws::IoT::Model::RegisterCACertificateRequest
Definition: RegisterCACertificateRequest.h:33
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::RegisterCACertificateRequest::WithAllowAutoRegistration
RegisterCACertificateRequest & WithAllowAutoRegistration(bool value)
Definition: RegisterCACertificateRequest.h:173
RegistrationConfig.h
Aws::IoT::Model::RegisterCACertificateRequest::WithRegistrationConfig
RegisterCACertificateRequest & WithRegistrationConfig(const RegistrationConfig &value)
Definition: RegisterCACertificateRequest.h:199
Aws::IoT::Model::RegisterCACertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterCACertificateRequest.h:41
IoTRequest.h
Aws::IoT::Model::RegisterCACertificateRequest::RegistrationConfigHasBeenSet
bool RegistrationConfigHasBeenSet() const
Definition: RegisterCACertificateRequest.h:184
Aws::IoT::Model::RegisterCACertificateRequest::GetRegistrationConfig
const RegistrationConfig & GetRegistrationConfig() const
Definition: RegisterCACertificateRequest.h:179
Aws::IoT::Model::RegisterCACertificateRequest::SetVerificationCertificate
void SetVerificationCertificate(const char *value)
Definition: RegisterCACertificateRequest.h:112
Aws::IoT::Model::RegisterCACertificateRequest::AddTags
RegisterCACertificateRequest & AddTags(const Tag &value)
Definition: RegisterCACertificateRequest.h:268
Aws::IoT::Model::RegisterCACertificateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: RegisterCACertificateRequest.h:223
Aws::IoT::Model::RegisterCACertificateRequest::WithVerificationCertificate
RegisterCACertificateRequest & WithVerificationCertificate(const Aws::String &value)
Definition: RegisterCACertificateRequest.h:117
Tag.h
IoT_EXPORTS.h