AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateProvisioningTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/ProvisioningHook.h>
12#include <aws/iot/model/Tag.h>
13#include <aws/iot/model/TemplateType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoT {
19namespace Model {
20
24 public:
25 AWS_IOT_API CreateProvisioningTemplateRequest() = default;
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 "CreateProvisioningTemplate"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetTemplateName() const { return m_templateName; }
40 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
41 template <typename TemplateNameT = Aws::String>
42 void SetTemplateName(TemplateNameT&& value) {
43 m_templateNameHasBeenSet = true;
44 m_templateName = std::forward<TemplateNameT>(value);
45 }
46 template <typename TemplateNameT = Aws::String>
48 SetTemplateName(std::forward<TemplateNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
76 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
77 template <typename TemplateBodyT = Aws::String>
78 void SetTemplateBody(TemplateBodyT&& value) {
79 m_templateBodyHasBeenSet = true;
80 m_templateBody = std::forward<TemplateBodyT>(value);
81 }
82 template <typename TemplateBodyT = Aws::String>
84 SetTemplateBody(std::forward<TemplateBodyT>(value));
85 return *this;
86 }
88
90
93 inline bool GetEnabled() const { return m_enabled; }
94 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
95 inline void SetEnabled(bool value) {
96 m_enabledHasBeenSet = true;
97 m_enabled = value;
98 }
100 SetEnabled(value);
101 return *this;
102 }
104
106
110 inline const Aws::String& GetProvisioningRoleArn() const { return m_provisioningRoleArn; }
111 inline bool ProvisioningRoleArnHasBeenSet() const { return m_provisioningRoleArnHasBeenSet; }
112 template <typename ProvisioningRoleArnT = Aws::String>
113 void SetProvisioningRoleArn(ProvisioningRoleArnT&& value) {
114 m_provisioningRoleArnHasBeenSet = true;
115 m_provisioningRoleArn = std::forward<ProvisioningRoleArnT>(value);
116 }
117 template <typename ProvisioningRoleArnT = Aws::String>
119 SetProvisioningRoleArn(std::forward<ProvisioningRoleArnT>(value));
120 return *this;
121 }
123
125
131 inline const ProvisioningHook& GetPreProvisioningHook() const { return m_preProvisioningHook; }
132 inline bool PreProvisioningHookHasBeenSet() const { return m_preProvisioningHookHasBeenSet; }
133 template <typename PreProvisioningHookT = ProvisioningHook>
134 void SetPreProvisioningHook(PreProvisioningHookT&& value) {
135 m_preProvisioningHookHasBeenSet = true;
136 m_preProvisioningHook = std::forward<PreProvisioningHookT>(value);
137 }
138 template <typename PreProvisioningHookT = ProvisioningHook>
140 SetPreProvisioningHook(std::forward<PreProvisioningHookT>(value));
141 return *this;
142 }
144
146
153 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
154 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
155 template <typename TagsT = Aws::Vector<Tag>>
156 void SetTags(TagsT&& value) {
157 m_tagsHasBeenSet = true;
158 m_tags = std::forward<TagsT>(value);
159 }
160 template <typename TagsT = Aws::Vector<Tag>>
162 SetTags(std::forward<TagsT>(value));
163 return *this;
164 }
165 template <typename TagsT = Tag>
167 m_tagsHasBeenSet = true;
168 m_tags.emplace_back(std::forward<TagsT>(value));
169 return *this;
170 }
172
174
182 inline TemplateType GetType() const { return m_type; }
183 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
184 inline void SetType(TemplateType value) {
185 m_typeHasBeenSet = true;
186 m_type = value;
187 }
189 SetType(value);
190 return *this;
191 }
193 private:
194 Aws::String m_templateName;
195
196 Aws::String m_description;
197
198 Aws::String m_templateBody;
199
200 bool m_enabled{false};
201
202 Aws::String m_provisioningRoleArn;
203
204 ProvisioningHook m_preProvisioningHook;
205
206 Aws::Vector<Tag> m_tags;
207
209 bool m_templateNameHasBeenSet = false;
210 bool m_descriptionHasBeenSet = false;
211 bool m_templateBodyHasBeenSet = false;
212 bool m_enabledHasBeenSet = false;
213 bool m_provisioningRoleArnHasBeenSet = false;
214 bool m_preProvisioningHookHasBeenSet = false;
215 bool m_tagsHasBeenSet = false;
216 bool m_typeHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace IoT
221} // namespace Aws
CreateProvisioningTemplateRequest & WithPreProvisioningHook(PreProvisioningHookT &&value)
CreateProvisioningTemplateRequest & WithTags(TagsT &&value)
CreateProvisioningTemplateRequest & AddTags(TagsT &&value)
CreateProvisioningTemplateRequest & WithProvisioningRoleArn(ProvisioningRoleArnT &&value)
CreateProvisioningTemplateRequest & WithDescription(DescriptionT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateProvisioningTemplateRequest & WithType(TemplateType value)
CreateProvisioningTemplateRequest & WithEnabled(bool value)
CreateProvisioningTemplateRequest & WithTemplateName(TemplateNameT &&value)
CreateProvisioningTemplateRequest & WithTemplateBody(TemplateBodyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector