AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterThingRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOT_API RegisterThingRequest();
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_IOT_API Aws::String SerializePayload() const override;
34
35
37
42 inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
43 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
44 inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
45 inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
46 inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
47 inline RegisterThingRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
48 inline RegisterThingRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
49 inline RegisterThingRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
51
53
58 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
59 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
60 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
61 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
63 inline RegisterThingRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
64 inline RegisterThingRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
65 inline RegisterThingRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
66 inline RegisterThingRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
67 inline RegisterThingRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
68 inline RegisterThingRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
69 inline RegisterThingRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
70 inline RegisterThingRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
72 private:
73
74 Aws::String m_templateBody;
75 bool m_templateBodyHasBeenSet = false;
76
78 bool m_parametersHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace IoT
83} // namespace Aws
RegisterThingRequest & AddParameters(Aws::String &&key, const char *value)
RegisterThingRequest & AddParameters(const Aws::String &key, Aws::String &&value)
RegisterThingRequest & AddParameters(Aws::String &&key, const Aws::String &value)
RegisterThingRequest & WithTemplateBody(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
RegisterThingRequest & AddParameters(Aws::String &&key, Aws::String &&value)
RegisterThingRequest & WithTemplateBody(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
RegisterThingRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
RegisterThingRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetTemplateBody(const Aws::String &value)
RegisterThingRequest & AddParameters(const char *key, Aws::String &&value)
const Aws::String & GetTemplateBody() const
RegisterThingRequest & AddParameters(const Aws::String &key, const Aws::String &value)
RegisterThingRequest & AddParameters(const char *key, const char *value)
RegisterThingRequest & WithTemplateBody(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String