AWS SDK for C++  1.9.132
AWS SDK for C++
RegisterThingRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace 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 "RegisterThing"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
41  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
42 
48  inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
49 
55  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
56 
62  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
63 
69  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
70 
76  inline RegisterThingRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
77 
83  inline RegisterThingRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
84 
90  inline RegisterThingRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
91 
92 
98  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
99 
105  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
106 
112  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
113 
119  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
120 
126  inline RegisterThingRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
127 
133  inline RegisterThingRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
134 
140  inline RegisterThingRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
141 
147  inline RegisterThingRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
148 
154  inline RegisterThingRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
155 
161  inline RegisterThingRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
162 
168  inline RegisterThingRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
169 
175  inline RegisterThingRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
176 
182  inline RegisterThingRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
183 
184  private:
185 
186  Aws::String m_templateBody;
187  bool m_templateBodyHasBeenSet;
188 
190  bool m_parametersHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace IoT
195 } // namespace Aws
Aws::IoT::Model::RegisterThingRequest::AddParameters
RegisterThingRequest & AddParameters(const Aws::String &key, Aws::String &&value)
Definition: RegisterThingRequest.h:154
Aws::IoT::Model::RegisterThingRequest::AddParameters
RegisterThingRequest & AddParameters(const char *key, const char *value)
Definition: RegisterThingRequest.h:182
Aws::IoT::Model::RegisterThingRequest::GetParameters
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition: RegisterThingRequest.h:98
Aws::IoT::Model::RegisterThingRequest::SetParameters
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: RegisterThingRequest.h:112
Aws::IoT::Model::RegisterThingRequest::WithParameters
RegisterThingRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: RegisterThingRequest.h:133
Aws::IoT::Model::RegisterThingRequest::AddParameters
RegisterThingRequest & AddParameters(Aws::String &&key, const char *value)
Definition: RegisterThingRequest.h:175
Aws::IoT::Model::RegisterThingRequest
Definition: RegisterThingRequest.h:23
Aws::IoT::Model::RegisterThingRequest::WithTemplateBody
RegisterThingRequest & WithTemplateBody(Aws::String &&value)
Definition: RegisterThingRequest.h:83
Aws::IoT::Model::RegisterThingRequest::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: RegisterThingRequest.h:105
Aws::IoT::Model::RegisterThingRequest::AddParameters
RegisterThingRequest & AddParameters(const Aws::String &key, const Aws::String &value)
Definition: RegisterThingRequest.h:140
Aws::IoT::Model::RegisterThingRequest::SetParameters
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: RegisterThingRequest.h:119
Aws::IoT::Model::RegisterThingRequest::TemplateBodyHasBeenSet
bool TemplateBodyHasBeenSet() const
Definition: RegisterThingRequest.h:48
Aws::IoT::Model::RegisterThingRequest::SetTemplateBody
void SetTemplateBody(Aws::String &&value)
Definition: RegisterThingRequest.h:62
Aws::IoT::Model::RegisterThingRequest::WithTemplateBody
RegisterThingRequest & WithTemplateBody(const Aws::String &value)
Definition: RegisterThingRequest.h:76
Aws::IoT::Model::RegisterThingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterThingRequest.h:31
Aws::IoT::Model::RegisterThingRequest::RegisterThingRequest
RegisterThingRequest()
AWSString.h
Aws::IoT::Model::RegisterThingRequest::AddParameters
RegisterThingRequest & AddParameters(Aws::String &&key, Aws::String &&value)
Definition: RegisterThingRequest.h:161
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::RegisterThingRequest::WithTemplateBody
RegisterThingRequest & WithTemplateBody(const char *value)
Definition: RegisterThingRequest.h:90
Aws::IoT::Model::RegisterThingRequest::GetTemplateBody
const Aws::String & GetTemplateBody() const
Definition: RegisterThingRequest.h:41
Aws::IoT::Model::RegisterThingRequest::WithParameters
RegisterThingRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: RegisterThingRequest.h:126
Aws::IoT::Model::RegisterThingRequest::SetTemplateBody
void SetTemplateBody(const Aws::String &value)
Definition: RegisterThingRequest.h:55
Aws::IoT::Model::RegisterThingRequest::AddParameters
RegisterThingRequest & AddParameters(Aws::String &&key, const Aws::String &value)
Definition: RegisterThingRequest.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::RegisterThingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::RegisterThingRequest::AddParameters
RegisterThingRequest & AddParameters(const char *key, Aws::String &&value)
Definition: RegisterThingRequest.h:168
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
IoTRequest.h
Aws::IoT::Model::RegisterThingRequest::SetTemplateBody
void SetTemplateBody(const char *value)
Definition: RegisterThingRequest.h:69
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
IoT_EXPORTS.h