AWS SDK for C++  1.9.124
AWS SDK for C++
CreateProvisioningTemplateRequest.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 IoT
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateProvisioningTemplate"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
42 
46  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
47 
51  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
52 
56  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
57 
61  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
62 
66  inline CreateProvisioningTemplateRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
67 
71  inline CreateProvisioningTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
72 
76  inline CreateProvisioningTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
77 
78 
82  inline const Aws::String& GetDescription() const{ return m_description; }
83 
87  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 
92  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 
102  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 
107  inline CreateProvisioningTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
112  inline CreateProvisioningTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 
117  inline CreateProvisioningTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118 
119 
123  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
124 
128  inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
129 
133  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
134 
138  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
139 
143  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
144 
148  inline CreateProvisioningTemplateRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
149 
153  inline CreateProvisioningTemplateRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
154 
158  inline CreateProvisioningTemplateRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
159 
160 
164  inline bool GetEnabled() const{ return m_enabled; }
165 
169  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
170 
174  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
175 
179  inline CreateProvisioningTemplateRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
180 
181 
186  inline const Aws::String& GetProvisioningRoleArn() const{ return m_provisioningRoleArn; }
187 
192  inline bool ProvisioningRoleArnHasBeenSet() const { return m_provisioningRoleArnHasBeenSet; }
193 
198  inline void SetProvisioningRoleArn(const Aws::String& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = value; }
199 
204  inline void SetProvisioningRoleArn(Aws::String&& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = std::move(value); }
205 
210  inline void SetProvisioningRoleArn(const char* value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn.assign(value); }
211 
216  inline CreateProvisioningTemplateRequest& WithProvisioningRoleArn(const Aws::String& value) { SetProvisioningRoleArn(value); return *this;}
217 
222  inline CreateProvisioningTemplateRequest& WithProvisioningRoleArn(Aws::String&& value) { SetProvisioningRoleArn(std::move(value)); return *this;}
223 
228  inline CreateProvisioningTemplateRequest& WithProvisioningRoleArn(const char* value) { SetProvisioningRoleArn(value); return *this;}
229 
230 
234  inline const ProvisioningHook& GetPreProvisioningHook() const{ return m_preProvisioningHook; }
235 
239  inline bool PreProvisioningHookHasBeenSet() const { return m_preProvisioningHookHasBeenSet; }
240 
244  inline void SetPreProvisioningHook(const ProvisioningHook& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = value; }
245 
249  inline void SetPreProvisioningHook(ProvisioningHook&& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = std::move(value); }
250 
254  inline CreateProvisioningTemplateRequest& WithPreProvisioningHook(const ProvisioningHook& value) { SetPreProvisioningHook(value); return *this;}
255 
259  inline CreateProvisioningTemplateRequest& WithPreProvisioningHook(ProvisioningHook&& value) { SetPreProvisioningHook(std::move(value)); return *this;}
260 
261 
270  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
271 
280  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
281 
290  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
291 
300  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
301 
310  inline CreateProvisioningTemplateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
311 
320  inline CreateProvisioningTemplateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
321 
330  inline CreateProvisioningTemplateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
331 
340  inline CreateProvisioningTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
341 
342  private:
343 
344  Aws::String m_templateName;
345  bool m_templateNameHasBeenSet;
346 
347  Aws::String m_description;
348  bool m_descriptionHasBeenSet;
349 
350  Aws::String m_templateBody;
351  bool m_templateBodyHasBeenSet;
352 
353  bool m_enabled;
354  bool m_enabledHasBeenSet;
355 
356  Aws::String m_provisioningRoleArn;
357  bool m_provisioningRoleArnHasBeenSet;
358 
359  ProvisioningHook m_preProvisioningHook;
360  bool m_preProvisioningHookHasBeenSet;
361 
362  Aws::Vector<Tag> m_tags;
363  bool m_tagsHasBeenSet;
364  };
365 
366 } // namespace Model
367 } // namespace IoT
368 } // namespace Aws
Aws::IoT::Model::CreateProvisioningTemplateRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateProvisioningTemplateRequest.h:270
Aws::IoT::Model::CreateProvisioningTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateProvisioningTemplateRequest::AddTags
CreateProvisioningTemplateRequest & AddTags(Tag &&value)
Definition: CreateProvisioningTemplateRequest.h:340
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateProvisioningTemplateRequest.h:290
Aws::IoT::Model::CreateProvisioningTemplateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateProvisioningTemplateRequest.h:280
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetProvisioningRoleArn
void SetProvisioningRoleArn(Aws::String &&value)
Definition: CreateProvisioningTemplateRequest.h:204
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithTemplateBody
CreateProvisioningTemplateRequest & WithTemplateBody(const char *value)
Definition: CreateProvisioningTemplateRequest.h:158
Aws::IoT::Model::CreateProvisioningTemplateRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateProvisioningTemplateRequest.h:87
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetEnabled
void SetEnabled(bool value)
Definition: CreateProvisioningTemplateRequest.h:174
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithPreProvisioningHook
CreateProvisioningTemplateRequest & WithPreProvisioningHook(const ProvisioningHook &value)
Definition: CreateProvisioningTemplateRequest.h:254
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetProvisioningRoleArn
void SetProvisioningRoleArn(const char *value)
Definition: CreateProvisioningTemplateRequest.h:210
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetPreProvisioningHook
void SetPreProvisioningHook(const ProvisioningHook &value)
Definition: CreateProvisioningTemplateRequest.h:244
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithDescription
CreateProvisioningTemplateRequest & WithDescription(Aws::String &&value)
Definition: CreateProvisioningTemplateRequest.h:112
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithTemplateBody
CreateProvisioningTemplateRequest & WithTemplateBody(const Aws::String &value)
Definition: CreateProvisioningTemplateRequest.h:148
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithTemplateBody
CreateProvisioningTemplateRequest & WithTemplateBody(Aws::String &&value)
Definition: CreateProvisioningTemplateRequest.h:153
ProvisioningHook.h
Aws::IoT::Model::CreateProvisioningTemplateRequest::ProvisioningRoleArnHasBeenSet
bool ProvisioningRoleArnHasBeenSet() const
Definition: CreateProvisioningTemplateRequest.h:192
Aws::IoT::Model::CreateProvisioningTemplateRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateProvisioningTemplateRequest.h:82
Aws::IoT::Model::CreateProvisioningTemplateRequest::CreateProvisioningTemplateRequest
CreateProvisioningTemplateRequest()
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetProvisioningRoleArn
void SetProvisioningRoleArn(const Aws::String &value)
Definition: CreateProvisioningTemplateRequest.h:198
Aws::IoT::Model::CreateProvisioningTemplateRequest::AddTags
CreateProvisioningTemplateRequest & AddTags(const Tag &value)
Definition: CreateProvisioningTemplateRequest.h:330
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateProvisioningTemplateRequest::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: CreateProvisioningTemplateRequest.h:169
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithTemplateName
CreateProvisioningTemplateRequest & WithTemplateName(const Aws::String &value)
Definition: CreateProvisioningTemplateRequest.h:66
AWSVector.h
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetTemplateBody
void SetTemplateBody(const Aws::String &value)
Definition: CreateProvisioningTemplateRequest.h:133
Aws::IoT::Model::CreateProvisioningTemplateRequest::GetProvisioningRoleArn
const Aws::String & GetProvisioningRoleArn() const
Definition: CreateProvisioningTemplateRequest.h:186
Aws::IoT::Model::CreateProvisioningTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateProvisioningTemplateRequest.h:33
Aws::IoT::Model::CreateProvisioningTemplateRequest::GetTemplateBody
const Aws::String & GetTemplateBody() const
Definition: CreateProvisioningTemplateRequest.h:123
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithDescription
CreateProvisioningTemplateRequest & WithDescription(const char *value)
Definition: CreateProvisioningTemplateRequest.h:117
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithTags
CreateProvisioningTemplateRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateProvisioningTemplateRequest.h:320
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithPreProvisioningHook
CreateProvisioningTemplateRequest & WithPreProvisioningHook(ProvisioningHook &&value)
Definition: CreateProvisioningTemplateRequest.h:259
Aws::IoT::Model::CreateProvisioningTemplateRequest
Definition: CreateProvisioningTemplateRequest.h:25
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetTemplateBody
void SetTemplateBody(const char *value)
Definition: CreateProvisioningTemplateRequest.h:143
Aws::IoT::Model::CreateProvisioningTemplateRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: CreateProvisioningTemplateRequest.h:41
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateProvisioningTemplateRequest.h:92
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: CreateProvisioningTemplateRequest.h:56
Aws::IoT::Model::CreateProvisioningTemplateRequest::GetEnabled
bool GetEnabled() const
Definition: CreateProvisioningTemplateRequest.h:164
Aws::IoT::Model::CreateProvisioningTemplateRequest::TemplateBodyHasBeenSet
bool TemplateBodyHasBeenSet() const
Definition: CreateProvisioningTemplateRequest.h:128
AWSString.h
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateProvisioningTemplateRequest.h:102
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateProvisioningTemplateRequest::PreProvisioningHookHasBeenSet
bool PreProvisioningHookHasBeenSet() const
Definition: CreateProvisioningTemplateRequest.h:239
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithTemplateName
CreateProvisioningTemplateRequest & WithTemplateName(Aws::String &&value)
Definition: CreateProvisioningTemplateRequest.h:71
Aws::IoT::Model::CreateProvisioningTemplateRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: CreateProvisioningTemplateRequest.h:46
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateProvisioningTemplateRequest.h:97
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateProvisioningTemplateRequest.h:300
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithTemplateName
CreateProvisioningTemplateRequest & WithTemplateName(const char *value)
Definition: CreateProvisioningTemplateRequest.h:76
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithProvisioningRoleArn
CreateProvisioningTemplateRequest & WithProvisioningRoleArn(const char *value)
Definition: CreateProvisioningTemplateRequest.h:228
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithProvisioningRoleArn
CreateProvisioningTemplateRequest & WithProvisioningRoleArn(Aws::String &&value)
Definition: CreateProvisioningTemplateRequest.h:222
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::CreateProvisioningTemplateRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: CreateProvisioningTemplateRequest.h:51
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: CreateProvisioningTemplateRequest.h:61
Aws::IoT::Model::ProvisioningHook
Definition: ProvisioningHook.h:33
IoTRequest.h
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithDescription
CreateProvisioningTemplateRequest & WithDescription(const Aws::String &value)
Definition: CreateProvisioningTemplateRequest.h:107
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithProvisioningRoleArn
CreateProvisioningTemplateRequest & WithProvisioningRoleArn(const Aws::String &value)
Definition: CreateProvisioningTemplateRequest.h:216
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithEnabled
CreateProvisioningTemplateRequest & WithEnabled(bool value)
Definition: CreateProvisioningTemplateRequest.h:179
Aws::IoT::Model::CreateProvisioningTemplateRequest::WithTags
CreateProvisioningTemplateRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateProvisioningTemplateRequest.h:310
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetTemplateBody
void SetTemplateBody(Aws::String &&value)
Definition: CreateProvisioningTemplateRequest.h:138
Tag.h
Aws::IoT::Model::CreateProvisioningTemplateRequest::SetPreProvisioningHook
void SetPreProvisioningHook(ProvisioningHook &&value)
Definition: CreateProvisioningTemplateRequest.h:249
IoT_EXPORTS.h
Aws::IoT::Model::CreateProvisioningTemplateRequest::GetPreProvisioningHook
const ProvisioningHook & GetPreProvisioningHook() const
Definition: CreateProvisioningTemplateRequest.h:234