AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeviceTemplate.h
1
6#pragma once
7#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT1ClickProjects
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT1CLICKPROJECTS_API DeviceTemplate() = default;
37 AWS_IOT1CLICKPROJECTS_API DeviceTemplate(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOT1CLICKPROJECTS_API DeviceTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOT1CLICKPROJECTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDeviceType() const { return m_deviceType; }
47 inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
48 template<typename DeviceTypeT = Aws::String>
49 void SetDeviceType(DeviceTypeT&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::forward<DeviceTypeT>(value); }
50 template<typename DeviceTypeT = Aws::String>
51 DeviceTemplate& WithDeviceType(DeviceTypeT&& value) { SetDeviceType(std::forward<DeviceTypeT>(value)); return *this;}
53
55
59 inline const Aws::Map<Aws::String, Aws::String>& GetCallbackOverrides() const { return m_callbackOverrides; }
60 inline bool CallbackOverridesHasBeenSet() const { return m_callbackOverridesHasBeenSet; }
61 template<typename CallbackOverridesT = Aws::Map<Aws::String, Aws::String>>
62 void SetCallbackOverrides(CallbackOverridesT&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides = std::forward<CallbackOverridesT>(value); }
63 template<typename CallbackOverridesT = Aws::Map<Aws::String, Aws::String>>
64 DeviceTemplate& WithCallbackOverrides(CallbackOverridesT&& value) { SetCallbackOverrides(std::forward<CallbackOverridesT>(value)); return *this;}
65 template<typename CallbackOverridesKeyT = Aws::String, typename CallbackOverridesValueT = Aws::String>
66 DeviceTemplate& AddCallbackOverrides(CallbackOverridesKeyT&& key, CallbackOverridesValueT&& value) {
67 m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::forward<CallbackOverridesKeyT>(key), std::forward<CallbackOverridesValueT>(value)); return *this;
68 }
70 private:
71
72 Aws::String m_deviceType;
73 bool m_deviceTypeHasBeenSet = false;
74
75 Aws::Map<Aws::String, Aws::String> m_callbackOverrides;
76 bool m_callbackOverridesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace IoT1ClickProjects
81} // namespace Aws
AWS_IOT1CLICKPROJECTS_API DeviceTemplate(Aws::Utils::Json::JsonView jsonValue)
DeviceTemplate & AddCallbackOverrides(CallbackOverridesKeyT &&key, CallbackOverridesValueT &&value)
DeviceTemplate & WithCallbackOverrides(CallbackOverridesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCallbackOverrides() const
AWS_IOT1CLICKPROJECTS_API DeviceTemplate()=default
void SetCallbackOverrides(CallbackOverridesT &&value)
AWS_IOT1CLICKPROJECTS_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceTemplate & WithDeviceType(DeviceTypeT &&value)
AWS_IOT1CLICKPROJECTS_API DeviceTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue