AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateCACertificateRequest.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>
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 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "UpdateCACertificate"; }
41 
42  Aws::String SerializePayload() const override;
43 
44  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
45 
46 
50  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
51 
55  inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
56 
60  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
61 
65  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
66 
70  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
71 
75  inline UpdateCACertificateRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
76 
80  inline UpdateCACertificateRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
81 
85  inline UpdateCACertificateRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
86 
87 
92  inline const CACertificateStatus& GetNewStatus() const{ return m_newStatus; }
93 
98  inline bool NewStatusHasBeenSet() const { return m_newStatusHasBeenSet; }
99 
104  inline void SetNewStatus(const CACertificateStatus& value) { m_newStatusHasBeenSet = true; m_newStatus = value; }
105 
110  inline void SetNewStatus(CACertificateStatus&& value) { m_newStatusHasBeenSet = true; m_newStatus = std::move(value); }
111 
116  inline UpdateCACertificateRequest& WithNewStatus(const CACertificateStatus& value) { SetNewStatus(value); return *this;}
117 
122  inline UpdateCACertificateRequest& WithNewStatus(CACertificateStatus&& value) { SetNewStatus(std::move(value)); return *this;}
123 
124 
129  inline const AutoRegistrationStatus& GetNewAutoRegistrationStatus() const{ return m_newAutoRegistrationStatus; }
130 
135  inline bool NewAutoRegistrationStatusHasBeenSet() const { return m_newAutoRegistrationStatusHasBeenSet; }
136 
141  inline void SetNewAutoRegistrationStatus(const AutoRegistrationStatus& value) { m_newAutoRegistrationStatusHasBeenSet = true; m_newAutoRegistrationStatus = value; }
142 
147  inline void SetNewAutoRegistrationStatus(AutoRegistrationStatus&& value) { m_newAutoRegistrationStatusHasBeenSet = true; m_newAutoRegistrationStatus = std::move(value); }
148 
153  inline UpdateCACertificateRequest& WithNewAutoRegistrationStatus(const AutoRegistrationStatus& value) { SetNewAutoRegistrationStatus(value); return *this;}
154 
159  inline UpdateCACertificateRequest& WithNewAutoRegistrationStatus(AutoRegistrationStatus&& value) { SetNewAutoRegistrationStatus(std::move(value)); return *this;}
160 
161 
165  inline const RegistrationConfig& GetRegistrationConfig() const{ return m_registrationConfig; }
166 
170  inline bool RegistrationConfigHasBeenSet() const { return m_registrationConfigHasBeenSet; }
171 
175  inline void SetRegistrationConfig(const RegistrationConfig& value) { m_registrationConfigHasBeenSet = true; m_registrationConfig = value; }
176 
180  inline void SetRegistrationConfig(RegistrationConfig&& value) { m_registrationConfigHasBeenSet = true; m_registrationConfig = std::move(value); }
181 
185  inline UpdateCACertificateRequest& WithRegistrationConfig(const RegistrationConfig& value) { SetRegistrationConfig(value); return *this;}
186 
190  inline UpdateCACertificateRequest& WithRegistrationConfig(RegistrationConfig&& value) { SetRegistrationConfig(std::move(value)); return *this;}
191 
192 
196  inline bool GetRemoveAutoRegistration() const{ return m_removeAutoRegistration; }
197 
201  inline bool RemoveAutoRegistrationHasBeenSet() const { return m_removeAutoRegistrationHasBeenSet; }
202 
206  inline void SetRemoveAutoRegistration(bool value) { m_removeAutoRegistrationHasBeenSet = true; m_removeAutoRegistration = value; }
207 
211  inline UpdateCACertificateRequest& WithRemoveAutoRegistration(bool value) { SetRemoveAutoRegistration(value); return *this;}
212 
213  private:
214 
215  Aws::String m_certificateId;
216  bool m_certificateIdHasBeenSet;
217 
218  CACertificateStatus m_newStatus;
219  bool m_newStatusHasBeenSet;
220 
221  AutoRegistrationStatus m_newAutoRegistrationStatus;
222  bool m_newAutoRegistrationStatusHasBeenSet;
223 
224  RegistrationConfig m_registrationConfig;
225  bool m_registrationConfigHasBeenSet;
226 
227  bool m_removeAutoRegistration;
228  bool m_removeAutoRegistrationHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace IoT
233 } // namespace Aws
void SetNewAutoRegistrationStatus(AutoRegistrationStatus &&value)
const AutoRegistrationStatus & GetNewAutoRegistrationStatus() const
void SetNewAutoRegistrationStatus(const AutoRegistrationStatus &value)
UpdateCACertificateRequest & WithRegistrationConfig(const RegistrationConfig &value)
UpdateCACertificateRequest & WithCertificateId(Aws::String &&value)
UpdateCACertificateRequest & WithCertificateId(const Aws::String &value)
const CACertificateStatus & GetNewStatus() const
void SetRegistrationConfig(const RegistrationConfig &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
UpdateCACertificateRequest & WithNewStatus(CACertificateStatus &&value)
UpdateCACertificateRequest & WithNewAutoRegistrationStatus(AutoRegistrationStatus &&value)
UpdateCACertificateRequest & WithCertificateId(const char *value)
UpdateCACertificateRequest & WithNewStatus(const CACertificateStatus &value)
void SetNewStatus(const CACertificateStatus &value)
UpdateCACertificateRequest & WithRemoveAutoRegistration(bool value)
UpdateCACertificateRequest & WithRegistrationConfig(RegistrationConfig &&value)
const RegistrationConfig & GetRegistrationConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRegistrationConfig(RegistrationConfig &&value)
virtual const char * GetServiceRequestName() const override
UpdateCACertificateRequest & WithNewAutoRegistrationStatus(const AutoRegistrationStatus &value)