AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ThingGroupDocument.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOT_API ThingGroupDocument();
40
41
43
46 inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
47 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
48 inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
49 inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
50 inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
51 inline ThingGroupDocument& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
52 inline ThingGroupDocument& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
53 inline ThingGroupDocument& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
55
57
60 inline const Aws::String& GetThingGroupId() const{ return m_thingGroupId; }
61 inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
62 inline void SetThingGroupId(const Aws::String& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = value; }
63 inline void SetThingGroupId(Aws::String&& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = std::move(value); }
64 inline void SetThingGroupId(const char* value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId.assign(value); }
65 inline ThingGroupDocument& WithThingGroupId(const Aws::String& value) { SetThingGroupId(value); return *this;}
66 inline ThingGroupDocument& WithThingGroupId(Aws::String&& value) { SetThingGroupId(std::move(value)); return *this;}
67 inline ThingGroupDocument& WithThingGroupId(const char* value) { SetThingGroupId(value); return *this;}
69
71
74 inline const Aws::String& GetThingGroupDescription() const{ return m_thingGroupDescription; }
75 inline bool ThingGroupDescriptionHasBeenSet() const { return m_thingGroupDescriptionHasBeenSet; }
76 inline void SetThingGroupDescription(const Aws::String& value) { m_thingGroupDescriptionHasBeenSet = true; m_thingGroupDescription = value; }
77 inline void SetThingGroupDescription(Aws::String&& value) { m_thingGroupDescriptionHasBeenSet = true; m_thingGroupDescription = std::move(value); }
78 inline void SetThingGroupDescription(const char* value) { m_thingGroupDescriptionHasBeenSet = true; m_thingGroupDescription.assign(value); }
80 inline ThingGroupDocument& WithThingGroupDescription(Aws::String&& value) { SetThingGroupDescription(std::move(value)); return *this;}
81 inline ThingGroupDocument& WithThingGroupDescription(const char* value) { SetThingGroupDescription(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 ThingGroupDocument& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
94 inline ThingGroupDocument& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
95 inline ThingGroupDocument& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
96 inline ThingGroupDocument& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
97 inline ThingGroupDocument& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
98 inline ThingGroupDocument& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
99 inline ThingGroupDocument& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
100 inline ThingGroupDocument& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
102
104
107 inline const Aws::Vector<Aws::String>& GetParentGroupNames() const{ return m_parentGroupNames; }
108 inline bool ParentGroupNamesHasBeenSet() const { return m_parentGroupNamesHasBeenSet; }
109 inline void SetParentGroupNames(const Aws::Vector<Aws::String>& value) { m_parentGroupNamesHasBeenSet = true; m_parentGroupNames = value; }
110 inline void SetParentGroupNames(Aws::Vector<Aws::String>&& value) { m_parentGroupNamesHasBeenSet = true; m_parentGroupNames = std::move(value); }
112 inline ThingGroupDocument& WithParentGroupNames(Aws::Vector<Aws::String>&& value) { SetParentGroupNames(std::move(value)); return *this;}
113 inline ThingGroupDocument& AddParentGroupNames(const Aws::String& value) { m_parentGroupNamesHasBeenSet = true; m_parentGroupNames.push_back(value); return *this; }
114 inline ThingGroupDocument& AddParentGroupNames(Aws::String&& value) { m_parentGroupNamesHasBeenSet = true; m_parentGroupNames.push_back(std::move(value)); return *this; }
115 inline ThingGroupDocument& AddParentGroupNames(const char* value) { m_parentGroupNamesHasBeenSet = true; m_parentGroupNames.push_back(value); return *this; }
117 private:
118
119 Aws::String m_thingGroupName;
120 bool m_thingGroupNameHasBeenSet = false;
121
122 Aws::String m_thingGroupId;
123 bool m_thingGroupIdHasBeenSet = false;
124
125 Aws::String m_thingGroupDescription;
126 bool m_thingGroupDescriptionHasBeenSet = false;
127
129 bool m_attributesHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_parentGroupNames;
132 bool m_parentGroupNamesHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace IoT
137} // namespace Aws
void SetThingGroupId(const char *value)
ThingGroupDocument & AddParentGroupNames(const char *value)
void SetParentGroupNames(const Aws::Vector< Aws::String > &value)
ThingGroupDocument & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_IOT_API ThingGroupDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
ThingGroupDocument & WithThingGroupDescription(const Aws::String &value)
const Aws::String & GetThingGroupId() const
void SetThingGroupName(const char *value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetThingGroupId(const Aws::String &value)
const Aws::String & GetThingGroupDescription() const
ThingGroupDocument & WithThingGroupName(const Aws::String &value)
void SetThingGroupName(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
ThingGroupDocument & WithThingGroupId(const Aws::String &value)
void SetParentGroupNames(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
const Aws::Vector< Aws::String > & GetParentGroupNames() const
void SetThingGroupId(Aws::String &&value)
ThingGroupDocument & AddParentGroupNames(const Aws::String &value)
ThingGroupDocument & WithThingGroupDescription(const char *value)
AWS_IOT_API ThingGroupDocument(Aws::Utils::Json::JsonView jsonValue)
ThingGroupDocument & AddAttributes(const char *key, const char *value)
ThingGroupDocument & WithThingGroupName(Aws::String &&value)
ThingGroupDocument & AddAttributes(Aws::String &&key, const char *value)
ThingGroupDocument & WithThingGroupId(const char *value)
ThingGroupDocument & AddAttributes(Aws::String &&key, Aws::String &&value)
ThingGroupDocument & AddParentGroupNames(Aws::String &&value)
ThingGroupDocument & WithParentGroupNames(Aws::Vector< Aws::String > &&value)
ThingGroupDocument & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ThingGroupDocument & WithParentGroupNames(const Aws::Vector< Aws::String > &value)
ThingGroupDocument & AddAttributes(const Aws::String &key, Aws::String &&value)
ThingGroupDocument & WithThingGroupId(Aws::String &&value)
void SetThingGroupDescription(Aws::String &&value)
const Aws::String & GetThingGroupName() const
ThingGroupDocument & WithThingGroupDescription(Aws::String &&value)
void SetThingGroupDescription(const char *value)
ThingGroupDocument & AddAttributes(const char *key, Aws::String &&value)
ThingGroupDocument & AddAttributes(Aws::String &&key, const Aws::String &value)
ThingGroupDocument & WithThingGroupName(const char *value)
void SetThingGroupName(const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ThingGroupDocument & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetThingGroupDescription(const 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue