AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateProvisioningTemplateRequest.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 <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace 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_IOT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
41 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
42 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
43 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
44 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
46 inline UpdateProvisioningTemplateRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
47 inline UpdateProvisioningTemplateRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
49
51
54 inline const Aws::String& GetDescription() const{ return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
58 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
59 inline UpdateProvisioningTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
60 inline UpdateProvisioningTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
61 inline UpdateProvisioningTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
63
65
68 inline bool GetEnabled() const{ return m_enabled; }
69 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
70 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
71 inline UpdateProvisioningTemplateRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
73
75
78 inline int GetDefaultVersionId() const{ return m_defaultVersionId; }
79 inline bool DefaultVersionIdHasBeenSet() const { return m_defaultVersionIdHasBeenSet; }
80 inline void SetDefaultVersionId(int value) { m_defaultVersionIdHasBeenSet = true; m_defaultVersionId = value; }
83
85
89 inline const Aws::String& GetProvisioningRoleArn() const{ return m_provisioningRoleArn; }
90 inline bool ProvisioningRoleArnHasBeenSet() const { return m_provisioningRoleArnHasBeenSet; }
91 inline void SetProvisioningRoleArn(const Aws::String& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = value; }
92 inline void SetProvisioningRoleArn(Aws::String&& value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn = std::move(value); }
93 inline void SetProvisioningRoleArn(const char* value) { m_provisioningRoleArnHasBeenSet = true; m_provisioningRoleArn.assign(value); }
96 inline UpdateProvisioningTemplateRequest& WithProvisioningRoleArn(const char* value) { SetProvisioningRoleArn(value); return *this;}
98
100
106 inline const ProvisioningHook& GetPreProvisioningHook() const{ return m_preProvisioningHook; }
107 inline bool PreProvisioningHookHasBeenSet() const { return m_preProvisioningHookHasBeenSet; }
108 inline void SetPreProvisioningHook(const ProvisioningHook& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = value; }
109 inline void SetPreProvisioningHook(ProvisioningHook&& value) { m_preProvisioningHookHasBeenSet = true; m_preProvisioningHook = std::move(value); }
113
115
118 inline bool GetRemovePreProvisioningHook() const{ return m_removePreProvisioningHook; }
119 inline bool RemovePreProvisioningHookHasBeenSet() const { return m_removePreProvisioningHookHasBeenSet; }
120 inline void SetRemovePreProvisioningHook(bool value) { m_removePreProvisioningHookHasBeenSet = true; m_removePreProvisioningHook = value; }
123 private:
124
125 Aws::String m_templateName;
126 bool m_templateNameHasBeenSet = false;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 bool m_enabled;
132 bool m_enabledHasBeenSet = false;
133
134 int m_defaultVersionId;
135 bool m_defaultVersionIdHasBeenSet = false;
136
137 Aws::String m_provisioningRoleArn;
138 bool m_provisioningRoleArnHasBeenSet = false;
139
140 ProvisioningHook m_preProvisioningHook;
141 bool m_preProvisioningHookHasBeenSet = false;
142
143 bool m_removePreProvisioningHook;
144 bool m_removePreProvisioningHookHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace IoT
149} // namespace Aws
UpdateProvisioningTemplateRequest & WithPreProvisioningHook(const ProvisioningHook &value)
UpdateProvisioningTemplateRequest & WithDefaultVersionId(int value)
UpdateProvisioningTemplateRequest & WithEnabled(bool value)
UpdateProvisioningTemplateRequest & WithDescription(const char *value)
UpdateProvisioningTemplateRequest & WithProvisioningRoleArn(const Aws::String &value)
UpdateProvisioningTemplateRequest & WithTemplateName(const Aws::String &value)
UpdateProvisioningTemplateRequest & WithProvisioningRoleArn(const char *value)
UpdateProvisioningTemplateRequest & WithProvisioningRoleArn(Aws::String &&value)
UpdateProvisioningTemplateRequest & WithRemovePreProvisioningHook(bool value)
UpdateProvisioningTemplateRequest & WithDescription(Aws::String &&value)
UpdateProvisioningTemplateRequest & WithPreProvisioningHook(ProvisioningHook &&value)
UpdateProvisioningTemplateRequest & WithTemplateName(Aws::String &&value)
UpdateProvisioningTemplateRequest & WithDescription(const Aws::String &value)
UpdateProvisioningTemplateRequest & WithTemplateName(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String