AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateProvisioningTemplateRequest.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 "UpdateProvisioningTemplate"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
40 
44  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
45 
49  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
50 
54  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
55 
59  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
60 
64  inline UpdateProvisioningTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
65 
69  inline UpdateProvisioningTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
70 
74  inline UpdateProvisioningTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
75 
76 
80  inline const Aws::String& GetDescription() const{ return m_description; }
81 
85  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 
90  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 
95  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 
100  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
101 
105  inline UpdateProvisioningTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 
110  inline UpdateProvisioningTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 
115  inline UpdateProvisioningTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
116 
117 
121  inline bool GetEnabled() const{ return m_enabled; }
122 
126  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
127 
131  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
132 
136  inline UpdateProvisioningTemplateRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
137 
138 
142  inline int GetDefaultVersionId() const{ return m_defaultVersionId; }
143 
147  inline bool DefaultVersionIdHasBeenSet() const { return m_defaultVersionIdHasBeenSet; }
148 
152  inline void SetDefaultVersionId(int value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = value; }
153 
157  inline UpdateProvisioningTemplateRequest& WithDefaultVersionId(int value) { SetDefaultVersionId(value); return *this;}
158 
159 
164  inline const Aws::String& GetProvisioningRoleArn() const{ return m_provisioningRoleArn; }
165 
170  inline bool ProvisioningRoleArnHasBeenSet() const { return m_provisioningRoleArnHasBeenSet; }
171 
176  inline void SetProvisioningRoleArn(const Aws::String& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = value; }
177 
182  inline void SetProvisioningRoleArn(Aws::String&& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = std::move(value); }
183 
188  inline void SetProvisioningRoleArn(const char* value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn.assign(value); }
189 
194  inline UpdateProvisioningTemplateRequest& WithProvisioningRoleArn(const Aws::String& value) { SetProvisioningRoleArn(value); return *this;}
195 
200  inline UpdateProvisioningTemplateRequest& WithProvisioningRoleArn(Aws::String&& value) { SetProvisioningRoleArn(std::move(value)); return *this;}
201 
206  inline UpdateProvisioningTemplateRequest& WithProvisioningRoleArn(const char* value) { SetProvisioningRoleArn(value); return *this;}
207 
208 
212  inline const ProvisioningHook& GetPreProvisioningHook() const{ return m_preProvisioningHook; }
213 
217  inline bool PreProvisioningHookHasBeenSet() const { return m_preProvisioningHookHasBeenSet; }
218 
222  inline void SetPreProvisioningHook(const ProvisioningHook& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = value; }
223 
227  inline void SetPreProvisioningHook(ProvisioningHook&& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = std::move(value); }
228 
232  inline UpdateProvisioningTemplateRequest& WithPreProvisioningHook(const ProvisioningHook& value) { SetPreProvisioningHook(value); return *this;}
233 
237  inline UpdateProvisioningTemplateRequest& WithPreProvisioningHook(ProvisioningHook&& value) { SetPreProvisioningHook(std::move(value)); return *this;}
238 
239 
243  inline bool GetRemovePreProvisioningHook() const{ return m_removePreProvisioningHook; }
244 
248  inline bool RemovePreProvisioningHookHasBeenSet() const { return m_removePreProvisioningHookHasBeenSet; }
249 
253  inline void SetRemovePreProvisioningHook(bool value) { m_removePreProvisioningHookHasBeenSet = true; m_removePreProvisioningHook = value; }
254 
258  inline UpdateProvisioningTemplateRequest& WithRemovePreProvisioningHook(bool value) { SetRemovePreProvisioningHook(value); return *this;}
259 
260  private:
261 
262  Aws::String m_templateName;
263  bool m_templateNameHasBeenSet;
264 
265  Aws::String m_description;
266  bool m_descriptionHasBeenSet;
267 
268  bool m_enabled;
269  bool m_enabledHasBeenSet;
270 
271  int m_defaultVersionId;
272  bool m_defaultVersionIdHasBeenSet;
273 
274  Aws::String m_provisioningRoleArn;
275  bool m_provisioningRoleArnHasBeenSet;
276 
277  ProvisioningHook m_preProvisioningHook;
278  bool m_preProvisioningHookHasBeenSet;
279 
280  bool m_removePreProvisioningHook;
281  bool m_removePreProvisioningHookHasBeenSet;
282  };
283 
284 } // namespace Model
285 } // namespace IoT
286 } // namespace Aws
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetProvisioningRoleArn
void SetProvisioningRoleArn(Aws::String &&value)
Definition: UpdateProvisioningTemplateRequest.h:182
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithTemplateName
UpdateProvisioningTemplateRequest & WithTemplateName(Aws::String &&value)
Definition: UpdateProvisioningTemplateRequest.h:69
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithDescription
UpdateProvisioningTemplateRequest & WithDescription(Aws::String &&value)
Definition: UpdateProvisioningTemplateRequest.h:110
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetDefaultVersionId
void SetDefaultVersionId(int value)
Definition: UpdateProvisioningTemplateRequest.h:152
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithRemovePreProvisioningHook
UpdateProvisioningTemplateRequest & WithRemovePreProvisioningHook(bool value)
Definition: UpdateProvisioningTemplateRequest.h:258
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: UpdateProvisioningTemplateRequest.h:54
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithTemplateName
UpdateProvisioningTemplateRequest & WithTemplateName(const Aws::String &value)
Definition: UpdateProvisioningTemplateRequest.h:64
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateProvisioningTemplateRequest.h:100
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithProvisioningRoleArn
UpdateProvisioningTemplateRequest & WithProvisioningRoleArn(const Aws::String &value)
Definition: UpdateProvisioningTemplateRequest.h:194
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: UpdateProvisioningTemplateRequest.h:49
Aws::IoT::Model::UpdateProvisioningTemplateRequest::GetPreProvisioningHook
const ProvisioningHook & GetPreProvisioningHook() const
Definition: UpdateProvisioningTemplateRequest.h:212
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithPreProvisioningHook
UpdateProvisioningTemplateRequest & WithPreProvisioningHook(const ProvisioningHook &value)
Definition: UpdateProvisioningTemplateRequest.h:232
ProvisioningHook.h
Aws::IoT::Model::UpdateProvisioningTemplateRequest::GetProvisioningRoleArn
const Aws::String & GetProvisioningRoleArn() const
Definition: UpdateProvisioningTemplateRequest.h:164
Aws::IoT::Model::UpdateProvisioningTemplateRequest::UpdateProvisioningTemplateRequest
UpdateProvisioningTemplateRequest()
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateProvisioningTemplateRequest.h:90
Aws::IoT::Model::UpdateProvisioningTemplateRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: UpdateProvisioningTemplateRequest.h:44
Aws::IoT::Model::UpdateProvisioningTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateProvisioningTemplateRequest.h:31
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithProvisioningRoleArn
UpdateProvisioningTemplateRequest & WithProvisioningRoleArn(Aws::String &&value)
Definition: UpdateProvisioningTemplateRequest.h:200
Aws::IoT::Model::UpdateProvisioningTemplateRequest::PreProvisioningHookHasBeenSet
bool PreProvisioningHookHasBeenSet() const
Definition: UpdateProvisioningTemplateRequest.h:217
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithPreProvisioningHook
UpdateProvisioningTemplateRequest & WithPreProvisioningHook(ProvisioningHook &&value)
Definition: UpdateProvisioningTemplateRequest.h:237
Aws::IoT::Model::UpdateProvisioningTemplateRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateProvisioningTemplateRequest.h:80
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithProvisioningRoleArn
UpdateProvisioningTemplateRequest & WithProvisioningRoleArn(const char *value)
Definition: UpdateProvisioningTemplateRequest.h:206
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetPreProvisioningHook
void SetPreProvisioningHook(const ProvisioningHook &value)
Definition: UpdateProvisioningTemplateRequest.h:222
Aws::IoT::Model::UpdateProvisioningTemplateRequest::GetRemovePreProvisioningHook
bool GetRemovePreProvisioningHook() const
Definition: UpdateProvisioningTemplateRequest.h:243
Aws::IoT::Model::UpdateProvisioningTemplateRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateProvisioningTemplateRequest.h:85
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithDescription
UpdateProvisioningTemplateRequest & WithDescription(const char *value)
Definition: UpdateProvisioningTemplateRequest.h:115
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateProvisioningTemplateRequest::ProvisioningRoleArnHasBeenSet
bool ProvisioningRoleArnHasBeenSet() const
Definition: UpdateProvisioningTemplateRequest.h:170
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetProvisioningRoleArn
void SetProvisioningRoleArn(const char *value)
Definition: UpdateProvisioningTemplateRequest.h:188
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithDefaultVersionId
UpdateProvisioningTemplateRequest & WithDefaultVersionId(int value)
Definition: UpdateProvisioningTemplateRequest.h:157
Aws::IoT::Model::UpdateProvisioningTemplateRequest
Definition: UpdateProvisioningTemplateRequest.h:23
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithTemplateName
UpdateProvisioningTemplateRequest & WithTemplateName(const char *value)
Definition: UpdateProvisioningTemplateRequest.h:74
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateProvisioningTemplateRequest.h:95
Aws::IoT::Model::UpdateProvisioningTemplateRequest::GetDefaultVersionId
int GetDefaultVersionId() const
Definition: UpdateProvisioningTemplateRequest.h:142
Aws::IoT::Model::UpdateProvisioningTemplateRequest::GetEnabled
bool GetEnabled() const
Definition: UpdateProvisioningTemplateRequest.h:121
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetRemovePreProvisioningHook
void SetRemovePreProvisioningHook(bool value)
Definition: UpdateProvisioningTemplateRequest.h:253
Aws::IoT::Model::UpdateProvisioningTemplateRequest::DefaultVersionIdHasBeenSet
bool DefaultVersionIdHasBeenSet() const
Definition: UpdateProvisioningTemplateRequest.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetPreProvisioningHook
void SetPreProvisioningHook(ProvisioningHook &&value)
Definition: UpdateProvisioningTemplateRequest.h:227
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: UpdateProvisioningTemplateRequest.h:59
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithDescription
UpdateProvisioningTemplateRequest & WithDescription(const Aws::String &value)
Definition: UpdateProvisioningTemplateRequest.h:105
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::ProvisioningHook
Definition: ProvisioningHook.h:33
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetEnabled
void SetEnabled(bool value)
Definition: UpdateProvisioningTemplateRequest.h:131
Aws::IoT::Model::UpdateProvisioningTemplateRequest::RemovePreProvisioningHookHasBeenSet
bool RemovePreProvisioningHookHasBeenSet() const
Definition: UpdateProvisioningTemplateRequest.h:248
IoTRequest.h
Aws::IoT::Model::UpdateProvisioningTemplateRequest::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: UpdateProvisioningTemplateRequest.h:126
Aws::IoT::Model::UpdateProvisioningTemplateRequest::SetProvisioningRoleArn
void SetProvisioningRoleArn(const Aws::String &value)
Definition: UpdateProvisioningTemplateRequest.h:176
Aws::IoT::Model::UpdateProvisioningTemplateRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: UpdateProvisioningTemplateRequest.h:39
Aws::IoT::Model::UpdateProvisioningTemplateRequest::WithEnabled
UpdateProvisioningTemplateRequest & WithEnabled(bool value)
Definition: UpdateProvisioningTemplateRequest.h:136
IoT_EXPORTS.h