AWS SDK for C++  1.9.124
AWS SDK for C++
ThingDocument.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetThingName() const{ return m_thingName; }
47 
51  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
52 
56  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
57 
61  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
62 
66  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
67 
71  inline ThingDocument& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
72 
76  inline ThingDocument& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
77 
81  inline ThingDocument& WithThingName(const char* value) { SetThingName(value); return *this;}
82 
83 
87  inline const Aws::String& GetThingId() const{ return m_thingId; }
88 
92  inline bool ThingIdHasBeenSet() const { return m_thingIdHasBeenSet; }
93 
97  inline void SetThingId(const Aws::String& value) { m_thingIdHasBeenSet = true; m_thingId = value; }
98 
102  inline void SetThingId(Aws::String&& value) { m_thingIdHasBeenSet = true; m_thingId = std::move(value); }
103 
107  inline void SetThingId(const char* value) { m_thingIdHasBeenSet = true; m_thingId.assign(value); }
108 
112  inline ThingDocument& WithThingId(const Aws::String& value) { SetThingId(value); return *this;}
113 
117  inline ThingDocument& WithThingId(Aws::String&& value) { SetThingId(std::move(value)); return *this;}
118 
122  inline ThingDocument& WithThingId(const char* value) { SetThingId(value); return *this;}
123 
124 
128  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
129 
133  inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
134 
138  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
139 
143  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
144 
148  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
149 
153  inline ThingDocument& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
154 
158  inline ThingDocument& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
159 
163  inline ThingDocument& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
164 
165 
169  inline const Aws::Vector<Aws::String>& GetThingGroupNames() const{ return m_thingGroupNames; }
170 
174  inline bool ThingGroupNamesHasBeenSet() const { return m_thingGroupNamesHasBeenSet; }
175 
179  inline void SetThingGroupNames(const Aws::Vector<Aws::String>& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames = value; }
180 
184  inline void SetThingGroupNames(Aws::Vector<Aws::String>&& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames = std::move(value); }
185 
189  inline ThingDocument& WithThingGroupNames(const Aws::Vector<Aws::String>& value) { SetThingGroupNames(value); return *this;}
190 
194  inline ThingDocument& WithThingGroupNames(Aws::Vector<Aws::String>&& value) { SetThingGroupNames(std::move(value)); return *this;}
195 
199  inline ThingDocument& AddThingGroupNames(const Aws::String& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(value); return *this; }
200 
204  inline ThingDocument& AddThingGroupNames(Aws::String&& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(std::move(value)); return *this; }
205 
209  inline ThingDocument& AddThingGroupNames(const char* value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(value); return *this; }
210 
211 
215  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
216 
220  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
221 
225  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
226 
230  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
231 
235  inline ThingDocument& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
236 
240  inline ThingDocument& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
241 
245  inline ThingDocument& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
246 
250  inline ThingDocument& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
251 
255  inline ThingDocument& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
256 
260  inline ThingDocument& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
261 
265  inline ThingDocument& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
266 
270  inline ThingDocument& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
271 
275  inline ThingDocument& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
276 
277 
281  inline const Aws::String& GetShadow() const{ return m_shadow; }
282 
286  inline bool ShadowHasBeenSet() const { return m_shadowHasBeenSet; }
287 
291  inline void SetShadow(const Aws::String& value) { m_shadowHasBeenSet = true; m_shadow = value; }
292 
296  inline void SetShadow(Aws::String&& value) { m_shadowHasBeenSet = true; m_shadow = std::move(value); }
297 
301  inline void SetShadow(const char* value) { m_shadowHasBeenSet = true; m_shadow.assign(value); }
302 
306  inline ThingDocument& WithShadow(const Aws::String& value) { SetShadow(value); return *this;}
307 
311  inline ThingDocument& WithShadow(Aws::String&& value) { SetShadow(std::move(value)); return *this;}
312 
316  inline ThingDocument& WithShadow(const char* value) { SetShadow(value); return *this;}
317 
318 
323  inline const ThingConnectivity& GetConnectivity() const{ return m_connectivity; }
324 
329  inline bool ConnectivityHasBeenSet() const { return m_connectivityHasBeenSet; }
330 
335  inline void SetConnectivity(const ThingConnectivity& value) { m_connectivityHasBeenSet = true; m_connectivity = value; }
336 
341  inline void SetConnectivity(ThingConnectivity&& value) { m_connectivityHasBeenSet = true; m_connectivity = std::move(value); }
342 
347  inline ThingDocument& WithConnectivity(const ThingConnectivity& value) { SetConnectivity(value); return *this;}
348 
353  inline ThingDocument& WithConnectivity(ThingConnectivity&& value) { SetConnectivity(std::move(value)); return *this;}
354 
355  private:
356 
357  Aws::String m_thingName;
358  bool m_thingNameHasBeenSet;
359 
360  Aws::String m_thingId;
361  bool m_thingIdHasBeenSet;
362 
363  Aws::String m_thingTypeName;
364  bool m_thingTypeNameHasBeenSet;
365 
366  Aws::Vector<Aws::String> m_thingGroupNames;
367  bool m_thingGroupNamesHasBeenSet;
368 
370  bool m_attributesHasBeenSet;
371 
372  Aws::String m_shadow;
373  bool m_shadowHasBeenSet;
374 
375  ThingConnectivity m_connectivity;
376  bool m_connectivityHasBeenSet;
377  };
378 
379 } // namespace Model
380 } // namespace IoT
381 } // namespace Aws
Aws::IoT::Model::ThingDocument::WithAttributes
ThingDocument & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ThingDocument.h:235
Aws::IoT::Model::ThingDocument::ThingDocument
ThingDocument(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ThingDocument::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ThingDocument::AddAttributes
ThingDocument & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: ThingDocument.h:255
Aws::IoT::Model::ThingDocument::SetThingId
void SetThingId(const char *value)
Definition: ThingDocument.h:107
Aws::IoT::Model::ThingDocument::WithThingGroupNames
ThingDocument & WithThingGroupNames(Aws::Vector< Aws::String > &&value)
Definition: ThingDocument.h:194
Aws::IoT::Model::ThingDocument::SetThingId
void SetThingId(const Aws::String &value)
Definition: ThingDocument.h:97
Aws::IoT::Model::ThingDocument::GetThingGroupNames
const Aws::Vector< Aws::String > & GetThingGroupNames() const
Definition: ThingDocument.h:169
Aws::IoT::Model::ThingDocument::ThingTypeNameHasBeenSet
bool ThingTypeNameHasBeenSet() const
Definition: ThingDocument.h:133
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::ThingDocument::WithThingGroupNames
ThingDocument & WithThingGroupNames(const Aws::Vector< Aws::String > &value)
Definition: ThingDocument.h:189
Aws::IoT::Model::ThingDocument::WithConnectivity
ThingDocument & WithConnectivity(const ThingConnectivity &value)
Definition: ThingDocument.h:347
Aws::IoT::Model::ThingDocument::SetThingName
void SetThingName(const char *value)
Definition: ThingDocument.h:66
Aws::IoT::Model::ThingDocument::AddAttributes
ThingDocument & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: ThingDocument.h:250
Aws::IoT::Model::ThingDocument::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ThingDocument.h:225
Aws::IoT::Model::ThingDocument::AddAttributes
ThingDocument & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: ThingDocument.h:260
AWSVector.h
Aws::IoT::Model::ThingDocument::WithThingId
ThingDocument & WithThingId(Aws::String &&value)
Definition: ThingDocument.h:117
Aws::IoT::Model::ThingDocument::WithThingTypeName
ThingDocument & WithThingTypeName(Aws::String &&value)
Definition: ThingDocument.h:158
Aws::IoT::Model::ThingDocument::GetConnectivity
const ThingConnectivity & GetConnectivity() const
Definition: ThingDocument.h:323
Aws::IoT::Model::ThingDocument::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: ThingDocument.h:215
Aws::IoT::Model::ThingDocument::SetShadow
void SetShadow(const Aws::String &value)
Definition: ThingDocument.h:291
Aws::IoT::Model::ThingDocument::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: ThingDocument.h:51
Aws::IoT::Model::ThingDocument::SetThingGroupNames
void SetThingGroupNames(const Aws::Vector< Aws::String > &value)
Definition: ThingDocument.h:179
Aws::IoT::Model::ThingDocument::AddAttributes
ThingDocument & AddAttributes(const char *key, const char *value)
Definition: ThingDocument.h:275
Aws::IoT::Model::ThingDocument::AddAttributes
ThingDocument & AddAttributes(Aws::String &&key, const char *value)
Definition: ThingDocument.h:270
Aws::IoT::Model::ThingDocument::WithThingName
ThingDocument & WithThingName(const Aws::String &value)
Definition: ThingDocument.h:71
Aws::IoT::Model::ThingDocument::GetThingId
const Aws::String & GetThingId() const
Definition: ThingDocument.h:87
Aws::IoT::Model::ThingDocument::WithThingName
ThingDocument & WithThingName(const char *value)
Definition: ThingDocument.h:81
Aws::IoT::Model::ThingDocument::AddThingGroupNames
ThingDocument & AddThingGroupNames(const Aws::String &value)
Definition: ThingDocument.h:199
Aws::IoT::Model::ThingDocument::AddThingGroupNames
ThingDocument & AddThingGroupNames(const char *value)
Definition: ThingDocument.h:209
Aws::IoT::Model::ThingDocument::WithShadow
ThingDocument & WithShadow(Aws::String &&value)
Definition: ThingDocument.h:311
Aws::IoT::Model::ThingDocument::SetThingName
void SetThingName(const Aws::String &value)
Definition: ThingDocument.h:56
Aws::IoT::Model::ThingDocument::SetConnectivity
void SetConnectivity(const ThingConnectivity &value)
Definition: ThingDocument.h:335
Aws::IoT::Model::ThingDocument::WithThingTypeName
ThingDocument & WithThingTypeName(const char *value)
Definition: ThingDocument.h:163
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::ThingDocument::AddAttributes
ThingDocument & AddAttributes(const char *key, Aws::String &&value)
Definition: ThingDocument.h:265
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ThingDocument::WithThingId
ThingDocument & WithThingId(const Aws::String &value)
Definition: ThingDocument.h:112
Aws::IoT::Model::ThingDocument::WithConnectivity
ThingDocument & WithConnectivity(ThingConnectivity &&value)
Definition: ThingDocument.h:353
Aws::IoT::Model::ThingDocument::WithThingId
ThingDocument & WithThingId(const char *value)
Definition: ThingDocument.h:122
Aws::IoT::Model::ThingDocument::SetThingTypeName
void SetThingTypeName(const Aws::String &value)
Definition: ThingDocument.h:138
Aws::IoT::Model::ThingDocument::WithAttributes
ThingDocument & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ThingDocument.h:240
Aws::IoT::Model::ThingDocument::WithShadow
ThingDocument & WithShadow(const Aws::String &value)
Definition: ThingDocument.h:306
Aws::IoT::Model::ThingDocument::SetShadow
void SetShadow(Aws::String &&value)
Definition: ThingDocument.h:296
Aws::IoT::Model::ThingDocument
Definition: ThingDocument.h:35
Aws::IoT::Model::ThingDocument::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ThingDocument.h:230
Aws::IoT::Model::ThingDocument::GetThingTypeName
const Aws::String & GetThingTypeName() const
Definition: ThingDocument.h:128
Aws::IoT::Model::ThingDocument::SetShadow
void SetShadow(const char *value)
Definition: ThingDocument.h:301
Aws::IoT::Model::ThingDocument::ThingGroupNamesHasBeenSet
bool ThingGroupNamesHasBeenSet() const
Definition: ThingDocument.h:174
Aws::IoT::Model::ThingDocument::ThingIdHasBeenSet
bool ThingIdHasBeenSet() const
Definition: ThingDocument.h:92
Aws::IoT::Model::ThingDocument::ConnectivityHasBeenSet
bool ConnectivityHasBeenSet() const
Definition: ThingDocument.h:329
Aws::IoT::Model::ThingDocument::WithShadow
ThingDocument & WithShadow(const char *value)
Definition: ThingDocument.h:316
Aws::IoT::Model::ThingDocument::GetShadow
const Aws::String & GetShadow() const
Definition: ThingDocument.h:281
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ThingDocument::operator=
ThingDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ThingDocument::SetConnectivity
void SetConnectivity(ThingConnectivity &&value)
Definition: ThingDocument.h:341
Aws::IoT::Model::ThingDocument::SetThingTypeName
void SetThingTypeName(const char *value)
Definition: ThingDocument.h:148
Aws::IoT::Model::ThingConnectivity
Definition: ThingConnectivity.h:32
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ThingDocument::WithThingName
ThingDocument & WithThingName(Aws::String &&value)
Definition: ThingDocument.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ThingDocument::WithThingTypeName
ThingDocument & WithThingTypeName(const Aws::String &value)
Definition: ThingDocument.h:153
Aws::IoT::Model::ThingDocument::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: ThingDocument.h:220
Aws::IoT::Model::ThingDocument::GetThingName
const Aws::String & GetThingName() const
Definition: ThingDocument.h:46
Aws::IoT::Model::ThingDocument::ShadowHasBeenSet
bool ShadowHasBeenSet() const
Definition: ThingDocument.h:286
Aws::IoT::Model::ThingDocument::SetThingGroupNames
void SetThingGroupNames(Aws::Vector< Aws::String > &&value)
Definition: ThingDocument.h:184
Aws::IoT::Model::ThingDocument::SetThingId
void SetThingId(Aws::String &&value)
Definition: ThingDocument.h:102
AWSMap.h
Aws::IoT::Model::ThingDocument::AddAttributes
ThingDocument & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: ThingDocument.h:245
Aws::IoT::Model::ThingDocument::SetThingTypeName
void SetThingTypeName(Aws::String &&value)
Definition: ThingDocument.h:143
Aws::IoT::Model::ThingDocument::ThingDocument
ThingDocument()
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoT::Model::ThingDocument::SetThingName
void SetThingName(Aws::String &&value)
Definition: ThingDocument.h:61
Aws::IoT::Model::ThingDocument::AddThingGroupNames
ThingDocument & AddThingGroupNames(Aws::String &&value)
Definition: ThingDocument.h:204
IoT_EXPORTS.h
ThingConnectivity.h