173 lines
6.9 KiB
C
173 lines
6.9 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace IoT1ClickProjects
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An object representing a device for a placement template (see
|
|||
|
|
* <a>PlacementTemplate</a>).</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeviceTemplate">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_IOT1CLICKPROJECTS_API DeviceTemplate
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
DeviceTemplate();
|
|||
|
|
DeviceTemplate(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
DeviceTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The device type, which currently must be <code>"button"</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDeviceType() const{ return m_deviceType; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The device type, which currently must be <code>"button"</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The device type, which currently must be <code>"button"</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDeviceType(const Aws::String& value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The device type, which currently must be <code>"button"</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDeviceType(Aws::String&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The device type, which currently must be <code>"button"</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDeviceType(const char* value) { m_deviceTypeHasBeenSet = true; m_deviceType.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The device type, which currently must be <code>"button"</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& WithDeviceType(const Aws::String& value) { SetDeviceType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The device type, which currently must be <code>"button"</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& WithDeviceType(Aws::String&& value) { SetDeviceType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The device type, which currently must be <code>"button"</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& WithDeviceType(const char* value) { SetDeviceType(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetCallbackOverrides() const{ return m_callbackOverrides; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CallbackOverridesHasBeenSet() const { return m_callbackOverridesHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCallbackOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCallbackOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& WithCallbackOverrides(const Aws::Map<Aws::String, Aws::String>& value) { SetCallbackOverrides(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& WithCallbackOverrides(Aws::Map<Aws::String, Aws::String>&& value) { SetCallbackOverrides(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& AddCallbackOverrides(const Aws::String& key, const Aws::String& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, const Aws::String& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& AddCallbackOverrides(const Aws::String& key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& AddCallbackOverrides(const char* key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, const char* value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional Lambda function to invoke instead of the default Lambda function
|
|||
|
|
* provided by the placement template.</p>
|
|||
|
|
*/
|
|||
|
|
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;
|
|||
|
|
|
|||
|
|
Aws::Map<Aws::String, Aws::String> m_callbackOverrides;
|
|||
|
|
bool m_callbackOverridesHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IoT1ClickProjects
|
|||
|
|
} // namespace Aws
|