AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateProvisioningTemplateVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateProvisioningTemplateVersion"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
34 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetTemplateName() const { return m_templateName; }
41 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
42 template <typename TemplateNameT = Aws::String>
43 void SetTemplateName(TemplateNameT&& value) {
44 m_templateNameHasBeenSet = true;
45 m_templateName = std::forward<TemplateNameT>(value);
46 }
47 template <typename TemplateNameT = Aws::String>
49 SetTemplateName(std::forward<TemplateNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
59 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
60 template <typename TemplateBodyT = Aws::String>
61 void SetTemplateBody(TemplateBodyT&& value) {
62 m_templateBodyHasBeenSet = true;
63 m_templateBody = std::forward<TemplateBodyT>(value);
64 }
65 template <typename TemplateBodyT = Aws::String>
67 SetTemplateBody(std::forward<TemplateBodyT>(value));
68 return *this;
69 }
71
73
76 inline bool GetSetAsDefault() const { return m_setAsDefault; }
77 inline bool SetAsDefaultHasBeenSet() const { return m_setAsDefaultHasBeenSet; }
78 inline void SetSetAsDefault(bool value) {
79 m_setAsDefaultHasBeenSet = true;
80 m_setAsDefault = value;
81 }
83 SetSetAsDefault(value);
84 return *this;
85 }
87 private:
88 Aws::String m_templateName;
89 bool m_templateNameHasBeenSet = false;
90
91 Aws::String m_templateBody;
92 bool m_templateBodyHasBeenSet = false;
93
94 bool m_setAsDefault{false};
95 bool m_setAsDefaultHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace IoT
100} // namespace Aws
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateProvisioningTemplateVersionRequest & WithTemplateBody(TemplateBodyT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateProvisioningTemplateVersionRequest & WithSetAsDefault(bool value)
CreateProvisioningTemplateVersionRequest & WithTemplateName(TemplateNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String