AWS SDK for C++  1.9.123
AWS SDK for C++
ThingAttribute.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetThingName() const{ return m_thingName; }
46 
50  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
51 
55  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
56 
60  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
61 
65  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
66 
70  inline ThingAttribute& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
71 
75  inline ThingAttribute& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
76 
80  inline ThingAttribute& WithThingName(const char* value) { SetThingName(value); return *this;}
81 
82 
86  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
87 
91  inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
92 
96  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
97 
101  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
102 
106  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
107 
111  inline ThingAttribute& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
112 
116  inline ThingAttribute& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
117 
121  inline ThingAttribute& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
122 
123 
127  inline const Aws::String& GetThingArn() const{ return m_thingArn; }
128 
132  inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
133 
137  inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
138 
142  inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
143 
147  inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
148 
152  inline ThingAttribute& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
153 
157  inline ThingAttribute& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
158 
162  inline ThingAttribute& WithThingArn(const char* value) { SetThingArn(value); return *this;}
163 
164 
168  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
169 
173  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
174 
178  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
179 
183  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
184 
188  inline ThingAttribute& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
189 
193  inline ThingAttribute& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
194 
198  inline ThingAttribute& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
199 
203  inline ThingAttribute& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
204 
208  inline ThingAttribute& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
209 
213  inline ThingAttribute& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
214 
218  inline ThingAttribute& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
219 
223  inline ThingAttribute& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
224 
228  inline ThingAttribute& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
229 
230 
234  inline long long GetVersion() const{ return m_version; }
235 
239  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
240 
244  inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
245 
249  inline ThingAttribute& WithVersion(long long value) { SetVersion(value); return *this;}
250 
251  private:
252 
253  Aws::String m_thingName;
254  bool m_thingNameHasBeenSet;
255 
256  Aws::String m_thingTypeName;
257  bool m_thingTypeNameHasBeenSet;
258 
259  Aws::String m_thingArn;
260  bool m_thingArnHasBeenSet;
261 
263  bool m_attributesHasBeenSet;
264 
265  long long m_version;
266  bool m_versionHasBeenSet;
267  };
268 
269 } // namespace Model
270 } // namespace IoT
271 } // namespace Aws
Aws::IoT::Model::ThingAttribute::SetThingTypeName
void SetThingTypeName(Aws::String &&value)
Definition: ThingAttribute.h:101
Aws::IoT::Model::ThingAttribute::WithAttributes
ThingAttribute & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ThingAttribute.h:188
Aws::IoT::Model::ThingAttribute::SetThingArn
void SetThingArn(const Aws::String &value)
Definition: ThingAttribute.h:137
Aws::IoT::Model::ThingAttribute::WithThingName
ThingAttribute & WithThingName(const Aws::String &value)
Definition: ThingAttribute.h:70
Aws::IoT::Model::ThingAttribute::AddAttributes
ThingAttribute & AddAttributes(Aws::String &&key, const char *value)
Definition: ThingAttribute.h:223
Aws::IoT::Model::ThingAttribute::SetThingArn
void SetThingArn(const char *value)
Definition: ThingAttribute.h:147
Aws::IoT::Model::ThingAttribute::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: ThingAttribute.h:50
Aws::IoT::Model::ThingAttribute::WithThingTypeName
ThingAttribute & WithThingTypeName(Aws::String &&value)
Definition: ThingAttribute.h:116
Aws::IoT::Model::ThingAttribute::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: ThingAttribute.h:239
Aws::IoT::Model::ThingAttribute::WithVersion
ThingAttribute & WithVersion(long long value)
Definition: ThingAttribute.h:249
Aws::IoT::Model::ThingAttribute::SetThingName
void SetThingName(const Aws::String &value)
Definition: ThingAttribute.h:55
Aws::IoT::Model::ThingAttribute::WithThingArn
ThingAttribute & WithThingArn(Aws::String &&value)
Definition: ThingAttribute.h:157
Aws::IoT::Model::ThingAttribute::GetThingTypeName
const Aws::String & GetThingTypeName() const
Definition: ThingAttribute.h:86
Aws::IoT::Model::ThingAttribute::ThingTypeNameHasBeenSet
bool ThingTypeNameHasBeenSet() const
Definition: ThingAttribute.h:91
Aws::IoT::Model::ThingAttribute::SetThingTypeName
void SetThingTypeName(const Aws::String &value)
Definition: ThingAttribute.h:96
Aws::IoT::Model::ThingAttribute::GetVersion
long long GetVersion() const
Definition: ThingAttribute.h:234
Aws::IoT::Model::ThingAttribute::WithThingName
ThingAttribute & WithThingName(Aws::String &&value)
Definition: ThingAttribute.h:75
Aws::IoT::Model::ThingAttribute::ThingArnHasBeenSet
bool ThingArnHasBeenSet() const
Definition: ThingAttribute.h:132
Aws::IoT::Model::ThingAttribute
Definition: ThingAttribute.h:34
Aws::IoT::Model::ThingAttribute::SetThingName
void SetThingName(Aws::String &&value)
Definition: ThingAttribute.h:60
Aws::IoT::Model::ThingAttribute::AddAttributes
ThingAttribute & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: ThingAttribute.h:198
Aws::IoT::Model::ThingAttribute::GetThingArn
const Aws::String & GetThingArn() const
Definition: ThingAttribute.h:127
Aws::IoT::Model::ThingAttribute::SetVersion
void SetVersion(long long value)
Definition: ThingAttribute.h:244
Aws::IoT::Model::ThingAttribute::WithThingArn
ThingAttribute & WithThingArn(const char *value)
Definition: ThingAttribute.h:162
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ThingAttribute::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ThingAttribute.h:178
Aws::IoT::Model::ThingAttribute::SetThingTypeName
void SetThingTypeName(const char *value)
Definition: ThingAttribute.h:106
Aws::IoT::Model::ThingAttribute::SetThingName
void SetThingName(const char *value)
Definition: ThingAttribute.h:65
Aws::IoT::Model::ThingAttribute::AddAttributes
ThingAttribute & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: ThingAttribute.h:208
Aws::IoT::Model::ThingAttribute::SetThingArn
void SetThingArn(Aws::String &&value)
Definition: ThingAttribute.h:142
Aws::IoT::Model::ThingAttribute::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: ThingAttribute.h:168
Aws::IoT::Model::ThingAttribute::WithThingArn
ThingAttribute & WithThingArn(const Aws::String &value)
Definition: ThingAttribute.h:152
Aws::IoT::Model::ThingAttribute::ThingAttribute
ThingAttribute(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ThingAttribute::operator=
ThingAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ThingAttribute::AddAttributes
ThingAttribute & AddAttributes(const char *key, const char *value)
Definition: ThingAttribute.h:228
Aws::IoT::Model::ThingAttribute::AddAttributes
ThingAttribute & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: ThingAttribute.h:213
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ThingAttribute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ThingAttribute::WithThingTypeName
ThingAttribute & WithThingTypeName(const char *value)
Definition: ThingAttribute.h:121
Aws::IoT::Model::ThingAttribute::WithAttributes
ThingAttribute & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ThingAttribute.h:193
Aws::IoT::Model::ThingAttribute::GetThingName
const Aws::String & GetThingName() const
Definition: ThingAttribute.h:45
Aws::IoT::Model::ThingAttribute::AddAttributes
ThingAttribute & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: ThingAttribute.h:203
Aws::IoT::Model::ThingAttribute::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ThingAttribute.h:183
AWSMap.h
Aws::IoT::Model::ThingAttribute::WithThingName
ThingAttribute & WithThingName(const char *value)
Definition: ThingAttribute.h:80
Aws::IoT::Model::ThingAttribute::ThingAttribute
ThingAttribute()
Aws::IoT::Model::ThingAttribute::AddAttributes
ThingAttribute & AddAttributes(const char *key, Aws::String &&value)
Definition: ThingAttribute.h:218
Aws::IoT::Model::ThingAttribute::WithThingTypeName
ThingAttribute & WithThingTypeName(const Aws::String &value)
Definition: ThingAttribute.h:111
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoT::Model::ThingAttribute::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: ThingAttribute.h:173
IoT_EXPORTS.h