AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateDynamicThingGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/Tag.h>
12#include <aws/iot/model/ThingGroupProperties.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API CreateDynamicThingGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateDynamicThingGroup"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetThingGroupName() const { return m_thingGroupName; }
39 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
40 template <typename ThingGroupNameT = Aws::String>
41 void SetThingGroupName(ThingGroupNameT&& value) {
42 m_thingGroupNameHasBeenSet = true;
43 m_thingGroupName = std::forward<ThingGroupNameT>(value);
44 }
45 template <typename ThingGroupNameT = Aws::String>
47 SetThingGroupName(std::forward<ThingGroupNameT>(value));
48 return *this;
49 }
51
53
56 inline const ThingGroupProperties& GetThingGroupProperties() const { return m_thingGroupProperties; }
57 inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
58 template <typename ThingGroupPropertiesT = ThingGroupProperties>
59 void SetThingGroupProperties(ThingGroupPropertiesT&& value) {
60 m_thingGroupPropertiesHasBeenSet = true;
61 m_thingGroupProperties = std::forward<ThingGroupPropertiesT>(value);
62 }
63 template <typename ThingGroupPropertiesT = ThingGroupProperties>
65 SetThingGroupProperties(std::forward<ThingGroupPropertiesT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetIndexName() const { return m_indexName; }
76 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
77 template <typename IndexNameT = Aws::String>
78 void SetIndexName(IndexNameT&& value) {
79 m_indexNameHasBeenSet = true;
80 m_indexName = std::forward<IndexNameT>(value);
81 }
82 template <typename IndexNameT = Aws::String>
84 SetIndexName(std::forward<IndexNameT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetQueryString() const { return m_queryString; }
96 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
97 template <typename QueryStringT = Aws::String>
98 void SetQueryString(QueryStringT&& value) {
99 m_queryStringHasBeenSet = true;
100 m_queryString = std::forward<QueryStringT>(value);
101 }
102 template <typename QueryStringT = Aws::String>
104 SetQueryString(std::forward<QueryStringT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
116 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
117 template <typename QueryVersionT = Aws::String>
118 void SetQueryVersion(QueryVersionT&& value) {
119 m_queryVersionHasBeenSet = true;
120 m_queryVersion = std::forward<QueryVersionT>(value);
121 }
122 template <typename QueryVersionT = Aws::String>
124 SetQueryVersion(std::forward<QueryVersionT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template <typename TagsT = Aws::Vector<Tag>>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Vector<Tag>>
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsT = Tag>
147 m_tagsHasBeenSet = true;
148 m_tags.emplace_back(std::forward<TagsT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_thingGroupName;
154
155 ThingGroupProperties m_thingGroupProperties;
156
157 Aws::String m_indexName;
158
159 Aws::String m_queryString;
160
161 Aws::String m_queryVersion;
162
163 Aws::Vector<Tag> m_tags;
164 bool m_thingGroupNameHasBeenSet = false;
165 bool m_thingGroupPropertiesHasBeenSet = false;
166 bool m_indexNameHasBeenSet = false;
167 bool m_queryStringHasBeenSet = false;
168 bool m_queryVersionHasBeenSet = false;
169 bool m_tagsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace IoT
174} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
CreateDynamicThingGroupRequest & WithThingGroupName(ThingGroupNameT &&value)
CreateDynamicThingGroupRequest & AddTags(TagsT &&value)
CreateDynamicThingGroupRequest & WithTags(TagsT &&value)
CreateDynamicThingGroupRequest & WithThingGroupProperties(ThingGroupPropertiesT &&value)
CreateDynamicThingGroupRequest & WithIndexName(IndexNameT &&value)
CreateDynamicThingGroupRequest & WithQueryString(QueryStringT &&value)
CreateDynamicThingGroupRequest & WithQueryVersion(QueryVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector