/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoT { namespace Model { /** */ class RegisterThingRequest : public IoTRequest { public: AWS_IOT_API RegisterThingRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RegisterThing"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The provisioning template. See Provisioning * Devices That Have Device Certificates for more information.

*/ inline const Aws::String& GetTemplateBody() const{ return m_templateBody; } /** *

The provisioning template. See Provisioning * Devices That Have Device Certificates for more information.

*/ inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; } /** *

The provisioning template. See Provisioning * Devices That Have Device Certificates for more information.

*/ inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; } /** *

The provisioning template. See Provisioning * Devices That Have Device Certificates for more information.

*/ inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); } /** *

The provisioning template. See Provisioning * Devices That Have Device Certificates for more information.

*/ inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); } /** *

The provisioning template. See Provisioning * Devices That Have Device Certificates for more information.

*/ inline RegisterThingRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;} /** *

The provisioning template. See Provisioning * Devices That Have Device Certificates for more information.

*/ inline RegisterThingRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;} /** *

The provisioning template. See Provisioning * Devices That Have Device Certificates for more information.

*/ inline RegisterThingRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;} /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline const Aws::Map& GetParameters() const{ return m_parameters; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

The parameters for provisioning a thing. See Provisioning * Templates for more information.

*/ inline RegisterThingRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } private: Aws::String m_templateBody; bool m_templateBodyHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws