AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ThingAttribute.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/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 IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API ThingAttribute();
40
41
43
46 inline const Aws::String& GetThingName() const{ return m_thingName; }
47 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
48 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
49 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
50 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
51 inline ThingAttribute& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
52 inline ThingAttribute& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
53 inline ThingAttribute& WithThingName(const char* value) { SetThingName(value); return *this;}
55
57
60 inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
61 inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
62 inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
63 inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
64 inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
65 inline ThingAttribute& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
66 inline ThingAttribute& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
67 inline ThingAttribute& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
69
71
74 inline const Aws::String& GetThingArn() const{ return m_thingArn; }
75 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
76 inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
77 inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
78 inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
79 inline ThingAttribute& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
80 inline ThingAttribute& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
81 inline ThingAttribute& WithThingArn(const char* value) { SetThingArn(value); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
89 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
90 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
91 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
93 inline ThingAttribute& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
94 inline ThingAttribute& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
95 inline ThingAttribute& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
96 inline ThingAttribute& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
97 inline ThingAttribute& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
98 inline ThingAttribute& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
99 inline ThingAttribute& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
100 inline ThingAttribute& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
102
104
107 inline long long GetVersion() const{ return m_version; }
108 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
109 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
110 inline ThingAttribute& WithVersion(long long value) { SetVersion(value); return *this;}
112 private:
113
114 Aws::String m_thingName;
115 bool m_thingNameHasBeenSet = false;
116
117 Aws::String m_thingTypeName;
118 bool m_thingTypeNameHasBeenSet = false;
119
120 Aws::String m_thingArn;
121 bool m_thingArnHasBeenSet = false;
122
124 bool m_attributesHasBeenSet = false;
125
126 long long m_version;
127 bool m_versionHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace IoT
132} // namespace Aws
void SetThingName(Aws::String &&value)
ThingAttribute & WithThingArn(const Aws::String &value)
ThingAttribute & AddAttributes(Aws::String &&key, Aws::String &&value)
ThingAttribute & WithThingArn(const char *value)
void SetThingTypeName(const char *value)
ThingAttribute & WithThingName(const char *value)
ThingAttribute & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ThingAttribute & AddAttributes(const char *key, const char *value)
ThingAttribute & WithThingName(Aws::String &&value)
void SetThingArn(const char *value)
void SetThingName(const char *value)
AWS_IOT_API ThingAttribute(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetThingName() const
const Aws::String & GetThingArn() const
void SetThingTypeName(const Aws::String &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetThingArn(const Aws::String &value)
void SetThingTypeName(Aws::String &&value)
void SetThingName(const Aws::String &value)
ThingAttribute & WithThingArn(Aws::String &&value)
ThingAttribute & WithThingTypeName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ThingAttribute & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ThingAttribute & WithThingName(const Aws::String &value)
ThingAttribute & WithThingTypeName(const char *value)
ThingAttribute & AddAttributes(Aws::String &&key, const Aws::String &value)
AWS_IOT_API ThingAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
ThingAttribute & AddAttributes(const Aws::String &key, Aws::String &&value)
const Aws::String & GetThingTypeName() const
ThingAttribute & WithVersion(long long value)
void SetVersion(long long value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
ThingAttribute & AddAttributes(const char *key, Aws::String &&value)
ThingAttribute & AddAttributes(Aws::String &&key, const char *value)
ThingAttribute & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ThingAttribute & WithThingTypeName(const Aws::String &value)
void SetThingArn(Aws::String &&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
Aws::Utils::Json::JsonValue JsonValue