AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ThingDocument.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iot/model/ThingConnectivity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOT_API ThingDocument();
41
42
44
47 inline const Aws::String& GetThingName() const{ return m_thingName; }
48 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
49 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
50 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
51 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
52 inline ThingDocument& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
53 inline ThingDocument& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
54 inline ThingDocument& WithThingName(const char* value) { SetThingName(value); return *this;}
56
58
61 inline const Aws::String& GetThingId() const{ return m_thingId; }
62 inline bool ThingIdHasBeenSet() const { return m_thingIdHasBeenSet; }
63 inline void SetThingId(const Aws::String& value) { m_thingIdHasBeenSet = true; m_thingId = value; }
64 inline void SetThingId(Aws::String&& value) { m_thingIdHasBeenSet = true; m_thingId = std::move(value); }
65 inline void SetThingId(const char* value) { m_thingIdHasBeenSet = true; m_thingId.assign(value); }
66 inline ThingDocument& WithThingId(const Aws::String& value) { SetThingId(value); return *this;}
67 inline ThingDocument& WithThingId(Aws::String&& value) { SetThingId(std::move(value)); return *this;}
68 inline ThingDocument& WithThingId(const char* value) { SetThingId(value); return *this;}
70
72
75 inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
76 inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
77 inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
78 inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
79 inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
80 inline ThingDocument& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
81 inline ThingDocument& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
82 inline ThingDocument& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
84
86
89 inline const Aws::Vector<Aws::String>& GetThingGroupNames() const{ return m_thingGroupNames; }
90 inline bool ThingGroupNamesHasBeenSet() const { return m_thingGroupNamesHasBeenSet; }
91 inline void SetThingGroupNames(const Aws::Vector<Aws::String>& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames = value; }
92 inline void SetThingGroupNames(Aws::Vector<Aws::String>&& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames = std::move(value); }
94 inline ThingDocument& WithThingGroupNames(Aws::Vector<Aws::String>&& value) { SetThingGroupNames(std::move(value)); return *this;}
95 inline ThingDocument& AddThingGroupNames(const Aws::String& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(value); return *this; }
96 inline ThingDocument& AddThingGroupNames(Aws::String&& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(std::move(value)); return *this; }
97 inline ThingDocument& AddThingGroupNames(const char* value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(value); return *this; }
99
101
104 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
105 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
106 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
107 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
109 inline ThingDocument& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
110 inline ThingDocument& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
111 inline ThingDocument& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
112 inline ThingDocument& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
113 inline ThingDocument& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
114 inline ThingDocument& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
115 inline ThingDocument& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
116 inline ThingDocument& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
118
120
126 inline const Aws::String& GetShadow() const{ return m_shadow; }
127 inline bool ShadowHasBeenSet() const { return m_shadowHasBeenSet; }
128 inline void SetShadow(const Aws::String& value) { m_shadowHasBeenSet = true; m_shadow = value; }
129 inline void SetShadow(Aws::String&& value) { m_shadowHasBeenSet = true; m_shadow = std::move(value); }
130 inline void SetShadow(const char* value) { m_shadowHasBeenSet = true; m_shadow.assign(value); }
131 inline ThingDocument& WithShadow(const Aws::String& value) { SetShadow(value); return *this;}
132 inline ThingDocument& WithShadow(Aws::String&& value) { SetShadow(std::move(value)); return *this;}
133 inline ThingDocument& WithShadow(const char* value) { SetShadow(value); return *this;}
135
137
143 inline const Aws::String& GetDeviceDefender() const{ return m_deviceDefender; }
144 inline bool DeviceDefenderHasBeenSet() const { return m_deviceDefenderHasBeenSet; }
145 inline void SetDeviceDefender(const Aws::String& value) { m_deviceDefenderHasBeenSet = true; m_deviceDefender = value; }
146 inline void SetDeviceDefender(Aws::String&& value) { m_deviceDefenderHasBeenSet = true; m_deviceDefender = std::move(value); }
147 inline void SetDeviceDefender(const char* value) { m_deviceDefenderHasBeenSet = true; m_deviceDefender.assign(value); }
148 inline ThingDocument& WithDeviceDefender(const Aws::String& value) { SetDeviceDefender(value); return *this;}
149 inline ThingDocument& WithDeviceDefender(Aws::String&& value) { SetDeviceDefender(std::move(value)); return *this;}
150 inline ThingDocument& WithDeviceDefender(const char* value) { SetDeviceDefender(value); return *this;}
152
154
158 inline const ThingConnectivity& GetConnectivity() const{ return m_connectivity; }
159 inline bool ConnectivityHasBeenSet() const { return m_connectivityHasBeenSet; }
160 inline void SetConnectivity(const ThingConnectivity& value) { m_connectivityHasBeenSet = true; m_connectivity = value; }
161 inline void SetConnectivity(ThingConnectivity&& value) { m_connectivityHasBeenSet = true; m_connectivity = std::move(value); }
162 inline ThingDocument& WithConnectivity(const ThingConnectivity& value) { SetConnectivity(value); return *this;}
163 inline ThingDocument& WithConnectivity(ThingConnectivity&& value) { SetConnectivity(std::move(value)); return *this;}
165 private:
166
167 Aws::String m_thingName;
168 bool m_thingNameHasBeenSet = false;
169
170 Aws::String m_thingId;
171 bool m_thingIdHasBeenSet = false;
172
173 Aws::String m_thingTypeName;
174 bool m_thingTypeNameHasBeenSet = false;
175
176 Aws::Vector<Aws::String> m_thingGroupNames;
177 bool m_thingGroupNamesHasBeenSet = false;
178
180 bool m_attributesHasBeenSet = false;
181
182 Aws::String m_shadow;
183 bool m_shadowHasBeenSet = false;
184
185 Aws::String m_deviceDefender;
186 bool m_deviceDefenderHasBeenSet = false;
187
188 ThingConnectivity m_connectivity;
189 bool m_connectivityHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace IoT
194} // namespace Aws
ThingDocument & AddAttributes(Aws::String &&key, const char *value)
ThingDocument & WithThingGroupNames(Aws::Vector< Aws::String > &&value)
const Aws::String & GetShadow() const
ThingDocument & WithThingName(const char *value)
ThingDocument & WithConnectivity(const ThingConnectivity &value)
void SetThingId(const char *value)
const Aws::String & GetThingTypeName() const
AWS_IOT_API ThingDocument(Aws::Utils::Json::JsonView jsonValue)
ThingDocument & WithThingId(Aws::String &&value)
void SetThingTypeName(const char *value)
ThingDocument & AddAttributes(Aws::String &&key, Aws::String &&value)
void SetDeviceDefender(const char *value)
AWS_IOT_API ThingDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThingGroupNames(Aws::Vector< Aws::String > &&value)
const ThingConnectivity & GetConnectivity() const
const Aws::String & GetThingId() const
void SetShadow(const Aws::String &value)
ThingDocument & WithShadow(const char *value)
void SetThingName(const char *value)
void SetShadow(const char *value)
void SetThingTypeName(const Aws::String &value)
ThingDocument & WithThingName(Aws::String &&value)
const Aws::String & GetThingName() const
ThingDocument & WithDeviceDefender(const Aws::String &value)
const Aws::Vector< Aws::String > & GetThingGroupNames() const
void SetConnectivity(ThingConnectivity &&value)
ThingDocument & WithThingId(const Aws::String &value)
ThingDocument & WithThingName(const Aws::String &value)
void SetThingTypeName(Aws::String &&value)
ThingDocument & WithDeviceDefender(Aws::String &&value)
ThingDocument & AddThingGroupNames(Aws::String &&value)
ThingDocument & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ThingDocument & WithDeviceDefender(const char *value)
void SetThingGroupNames(const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ThingDocument & WithShadow(Aws::String &&value)
ThingDocument & WithThingId(const char *value)
void SetThingId(const Aws::String &value)
ThingDocument & AddAttributes(const char *key, const char *value)
ThingDocument & WithThingTypeName(const char *value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetDeviceDefender() const
ThingDocument & AddAttributes(const Aws::String &key, Aws::String &&value)
ThingDocument & WithThingGroupNames(const Aws::Vector< Aws::String > &value)
ThingDocument & AddAttributes(const char *key, Aws::String &&value)
void SetConnectivity(const ThingConnectivity &value)
void SetDeviceDefender(const Aws::String &value)
void SetThingId(Aws::String &&value)
ThingDocument & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ThingDocument & AddThingGroupNames(const Aws::String &value)
void SetThingName(const Aws::String &value)
void SetThingName(Aws::String &&value)
ThingDocument & WithConnectivity(ThingConnectivity &&value)
ThingDocument & WithShadow(const Aws::String &value)
ThingDocument & WithThingTypeName(const Aws::String &value)
ThingDocument & AddAttributes(Aws::String &&key, const Aws::String &value)
void SetDeviceDefender(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetShadow(Aws::String &&value)
ThingDocument & WithThingTypeName(Aws::String &&value)
ThingDocument & AddAttributes(const Aws::String &key, const Aws::String &value)
ThingDocument & AddThingGroupNames(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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue