AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateProvisioningTemplateRequest.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/ProvisioningHook.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/model/TemplateType.h>
13#include <aws/iot/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateProvisioningTemplate"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
44 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
45 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
46 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
47 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
49 inline CreateProvisioningTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
50 inline CreateProvisioningTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CreateProvisioningTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateProvisioningTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateProvisioningTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
72 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
73 inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
74 inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
75 inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
77 inline CreateProvisioningTemplateRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
78 inline CreateProvisioningTemplateRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
80
82
85 inline bool GetEnabled() const{ return m_enabled; }
86 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
87 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
88 inline CreateProvisioningTemplateRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
90
92
96 inline const Aws::String& GetProvisioningRoleArn() const{ return m_provisioningRoleArn; }
97 inline bool ProvisioningRoleArnHasBeenSet() const { return m_provisioningRoleArnHasBeenSet; }
98 inline void SetProvisioningRoleArn(const Aws::String& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = value; }
99 inline void SetProvisioningRoleArn(Aws::String&& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = std::move(value); }
100 inline void SetProvisioningRoleArn(const char* value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn.assign(value); }
103 inline CreateProvisioningTemplateRequest& WithProvisioningRoleArn(const char* value) { SetProvisioningRoleArn(value); return *this;}
105
107
113 inline const ProvisioningHook& GetPreProvisioningHook() const{ return m_preProvisioningHook; }
114 inline bool PreProvisioningHookHasBeenSet() const { return m_preProvisioningHookHasBeenSet; }
115 inline void SetPreProvisioningHook(const ProvisioningHook& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = value; }
116 inline void SetPreProvisioningHook(ProvisioningHook&& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = std::move(value); }
120
122
129 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
133 inline CreateProvisioningTemplateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
134 inline CreateProvisioningTemplateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
135 inline CreateProvisioningTemplateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
136 inline CreateProvisioningTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
138
140
148 inline const TemplateType& GetType() const{ return m_type; }
149 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
150 inline void SetType(const TemplateType& value) { m_typeHasBeenSet = true; m_type = value; }
151 inline void SetType(TemplateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
152 inline CreateProvisioningTemplateRequest& WithType(const TemplateType& value) { SetType(value); return *this;}
153 inline CreateProvisioningTemplateRequest& WithType(TemplateType&& value) { SetType(std::move(value)); return *this;}
155 private:
156
157 Aws::String m_templateName;
158 bool m_templateNameHasBeenSet = false;
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
163 Aws::String m_templateBody;
164 bool m_templateBodyHasBeenSet = false;
165
166 bool m_enabled;
167 bool m_enabledHasBeenSet = false;
168
169 Aws::String m_provisioningRoleArn;
170 bool m_provisioningRoleArnHasBeenSet = false;
171
172 ProvisioningHook m_preProvisioningHook;
173 bool m_preProvisioningHookHasBeenSet = false;
174
175 Aws::Vector<Tag> m_tags;
176 bool m_tagsHasBeenSet = false;
177
178 TemplateType m_type;
179 bool m_typeHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace IoT
184} // namespace Aws
CreateProvisioningTemplateRequest & WithTags(Aws::Vector< Tag > &&value)
CreateProvisioningTemplateRequest & WithTags(const Aws::Vector< Tag > &value)
CreateProvisioningTemplateRequest & WithProvisioningRoleArn(const char *value)
CreateProvisioningTemplateRequest & WithTemplateName(const char *value)
CreateProvisioningTemplateRequest & WithPreProvisioningHook(const ProvisioningHook &value)
CreateProvisioningTemplateRequest & WithType(const TemplateType &value)
CreateProvisioningTemplateRequest & AddTags(Tag &&value)
CreateProvisioningTemplateRequest & WithDescription(const char *value)
CreateProvisioningTemplateRequest & WithTemplateBody(const Aws::String &value)
CreateProvisioningTemplateRequest & WithTemplateBody(Aws::String &&value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateProvisioningTemplateRequest & WithProvisioningRoleArn(Aws::String &&value)
CreateProvisioningTemplateRequest & WithDescription(const Aws::String &value)
CreateProvisioningTemplateRequest & WithDescription(Aws::String &&value)
CreateProvisioningTemplateRequest & WithEnabled(bool value)
CreateProvisioningTemplateRequest & WithTemplateName(const Aws::String &value)
CreateProvisioningTemplateRequest & WithTemplateBody(const char *value)
CreateProvisioningTemplateRequest & WithType(TemplateType &&value)
CreateProvisioningTemplateRequest & WithTemplateName(Aws::String &&value)
CreateProvisioningTemplateRequest & WithProvisioningRoleArn(const Aws::String &value)
CreateProvisioningTemplateRequest & WithPreProvisioningHook(ProvisioningHook &&value)
CreateProvisioningTemplateRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector