/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT1ClickProjects { namespace Model { /** *

An object representing a device for a placement template (see * PlacementTemplate).

See Also:

AWS * API Reference

*/ class DeviceTemplate { public: AWS_IOT1CLICKPROJECTS_API DeviceTemplate(); AWS_IOT1CLICKPROJECTS_API DeviceTemplate(Aws::Utils::Json::JsonView jsonValue); AWS_IOT1CLICKPROJECTS_API DeviceTemplate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT1CLICKPROJECTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The device type, which currently must be "button".

*/ inline const Aws::String& GetDeviceType() const{ return m_deviceType; } /** *

The device type, which currently must be "button".

*/ inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; } /** *

The device type, which currently must be "button".

*/ inline void SetDeviceType(const Aws::String& value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; } /** *

The device type, which currently must be "button".

*/ inline void SetDeviceType(Aws::String&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::move(value); } /** *

The device type, which currently must be "button".

*/ inline void SetDeviceType(const char* value) { m_deviceTypeHasBeenSet = true; m_deviceType.assign(value); } /** *

The device type, which currently must be "button".

*/ inline DeviceTemplate& WithDeviceType(const Aws::String& value) { SetDeviceType(value); return *this;} /** *

The device type, which currently must be "button".

*/ inline DeviceTemplate& WithDeviceType(Aws::String&& value) { SetDeviceType(std::move(value)); return *this;} /** *

The device type, which currently must be "button".

*/ inline DeviceTemplate& WithDeviceType(const char* value) { SetDeviceType(value); return *this;} /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline const Aws::Map& GetCallbackOverrides() const{ return m_callbackOverrides; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline bool CallbackOverridesHasBeenSet() const { return m_callbackOverridesHasBeenSet; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline void SetCallbackOverrides(const Aws::Map& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides = value; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline void SetCallbackOverrides(Aws::Map&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides = std::move(value); } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& WithCallbackOverrides(const Aws::Map& value) { SetCallbackOverrides(value); return *this;} /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& WithCallbackOverrides(Aws::Map&& value) { SetCallbackOverrides(std::move(value)); return *this;} /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& AddCallbackOverrides(const Aws::String& key, const Aws::String& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, value); return *this; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, const Aws::String& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), value); return *this; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& AddCallbackOverrides(const Aws::String& key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, std::move(value)); return *this; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), std::move(value)); return *this; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& AddCallbackOverrides(const char* key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, std::move(value)); return *this; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, const char* value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), value); return *this; } /** *

An optional Lambda function to invoke instead of the default Lambda function * provided by the placement template.

*/ inline DeviceTemplate& AddCallbackOverrides(const char* key, const char* value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, value); return *this; } private: Aws::String m_deviceType; bool m_deviceTypeHasBeenSet = false; Aws::Map m_callbackOverrides; bool m_callbackOverridesHasBeenSet = false; }; } // namespace Model } // namespace IoT1ClickProjects } // namespace Aws