AWS SDK for C++  1.9.123
AWS SDK for C++
CreateDynamicThingGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
12 #include <aws/iot/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace IoT
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateDynamicThingGroup"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
42 
46  inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
47 
51  inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
52 
56  inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
57 
61  inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
62 
66  inline CreateDynamicThingGroupRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
67 
71  inline CreateDynamicThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
72 
76  inline CreateDynamicThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
77 
78 
82  inline const ThingGroupProperties& GetThingGroupProperties() const{ return m_thingGroupProperties; }
83 
87  inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
88 
92  inline void SetThingGroupProperties(const ThingGroupProperties& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = value; }
93 
97  inline void SetThingGroupProperties(ThingGroupProperties&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::move(value); }
98 
102  inline CreateDynamicThingGroupRequest& WithThingGroupProperties(const ThingGroupProperties& value) { SetThingGroupProperties(value); return *this;}
103 
107  inline CreateDynamicThingGroupRequest& WithThingGroupProperties(ThingGroupProperties&& value) { SetThingGroupProperties(std::move(value)); return *this;}
108 
109 
114  inline const Aws::String& GetIndexName() const{ return m_indexName; }
115 
120  inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
121 
126  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
127 
132  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
133 
138  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
139 
144  inline CreateDynamicThingGroupRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
145 
150  inline CreateDynamicThingGroupRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
151 
156  inline CreateDynamicThingGroupRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
157 
158 
164  inline const Aws::String& GetQueryString() const{ return m_queryString; }
165 
171  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
172 
178  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
179 
185  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
186 
192  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
193 
199  inline CreateDynamicThingGroupRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
200 
206  inline CreateDynamicThingGroupRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
207 
213  inline CreateDynamicThingGroupRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
214 
215 
221  inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
222 
228  inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
229 
235  inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
236 
242  inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
243 
249  inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
250 
256  inline CreateDynamicThingGroupRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
257 
263  inline CreateDynamicThingGroupRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
264 
270  inline CreateDynamicThingGroupRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
271 
272 
276  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
277 
281  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
282 
286  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
287 
291  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
292 
296  inline CreateDynamicThingGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
297 
301  inline CreateDynamicThingGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
302 
306  inline CreateDynamicThingGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
307 
311  inline CreateDynamicThingGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
312 
313  private:
314 
315  Aws::String m_thingGroupName;
316  bool m_thingGroupNameHasBeenSet;
317 
318  ThingGroupProperties m_thingGroupProperties;
319  bool m_thingGroupPropertiesHasBeenSet;
320 
321  Aws::String m_indexName;
322  bool m_indexNameHasBeenSet;
323 
324  Aws::String m_queryString;
325  bool m_queryStringHasBeenSet;
326 
327  Aws::String m_queryVersion;
328  bool m_queryVersionHasBeenSet;
329 
330  Aws::Vector<Tag> m_tags;
331  bool m_tagsHasBeenSet;
332  };
333 
334 } // namespace Model
335 } // namespace IoT
336 } // namespace Aws
Aws::IoT::Model::CreateDynamicThingGroupRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: CreateDynamicThingGroupRequest.h:171
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetThingGroupName
void SetThingGroupName(const Aws::String &value)
Definition: CreateDynamicThingGroupRequest.h:51
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithIndexName
CreateDynamicThingGroupRequest & WithIndexName(const char *value)
Definition: CreateDynamicThingGroupRequest.h:156
Aws::IoT::Model::CreateDynamicThingGroupRequest::ThingGroupPropertiesHasBeenSet
bool ThingGroupPropertiesHasBeenSet() const
Definition: CreateDynamicThingGroupRequest.h:87
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithThingGroupProperties
CreateDynamicThingGroupRequest & WithThingGroupProperties(const ThingGroupProperties &value)
Definition: CreateDynamicThingGroupRequest.h:102
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetIndexName
void SetIndexName(const Aws::String &value)
Definition: CreateDynamicThingGroupRequest.h:126
Aws::IoT::Model::CreateDynamicThingGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDynamicThingGroupRequest.h:281
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithQueryString
CreateDynamicThingGroupRequest & WithQueryString(const Aws::String &value)
Definition: CreateDynamicThingGroupRequest.h:199
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateDynamicThingGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDynamicThingGroupRequest.h:276
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetIndexName
void SetIndexName(Aws::String &&value)
Definition: CreateDynamicThingGroupRequest.h:132
AWSVector.h
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithThingGroupName
CreateDynamicThingGroupRequest & WithThingGroupName(Aws::String &&value)
Definition: CreateDynamicThingGroupRequest.h:71
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithQueryString
CreateDynamicThingGroupRequest & WithQueryString(const char *value)
Definition: CreateDynamicThingGroupRequest.h:213
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: CreateDynamicThingGroupRequest.h:185
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetQueryVersion
void SetQueryVersion(Aws::String &&value)
Definition: CreateDynamicThingGroupRequest.h:242
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetThingGroupName
void SetThingGroupName(Aws::String &&value)
Definition: CreateDynamicThingGroupRequest.h:56
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetThingGroupProperties
void SetThingGroupProperties(const ThingGroupProperties &value)
Definition: CreateDynamicThingGroupRequest.h:92
Aws::IoT::Model::CreateDynamicThingGroupRequest::GetThingGroupProperties
const ThingGroupProperties & GetThingGroupProperties() const
Definition: CreateDynamicThingGroupRequest.h:82
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithQueryVersion
CreateDynamicThingGroupRequest & WithQueryVersion(Aws::String &&value)
Definition: CreateDynamicThingGroupRequest.h:263
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithQueryVersion
CreateDynamicThingGroupRequest & WithQueryVersion(const char *value)
Definition: CreateDynamicThingGroupRequest.h:270
Aws::IoT::Model::CreateDynamicThingGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDynamicThingGroupRequest.h:291
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithThingGroupName
CreateDynamicThingGroupRequest & WithThingGroupName(const Aws::String &value)
Definition: CreateDynamicThingGroupRequest.h:66
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithTags
CreateDynamicThingGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDynamicThingGroupRequest.h:296
Aws::IoT::Model::CreateDynamicThingGroupRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: CreateDynamicThingGroupRequest.h:164
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetQueryVersion
void SetQueryVersion(const char *value)
Definition: CreateDynamicThingGroupRequest.h:249
AWSString.h
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: CreateDynamicThingGroupRequest.h:178
ThingGroupProperties.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDynamicThingGroupRequest.h:286
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetThingGroupProperties
void SetThingGroupProperties(ThingGroupProperties &&value)
Definition: CreateDynamicThingGroupRequest.h:97
Aws::IoT::Model::CreateDynamicThingGroupRequest::CreateDynamicThingGroupRequest
CreateDynamicThingGroupRequest()
Aws::IoT::Model::ThingGroupProperties
Definition: ThingGroupProperties.h:33
Aws::IoT::Model::CreateDynamicThingGroupRequest::GetIndexName
const Aws::String & GetIndexName() const
Definition: CreateDynamicThingGroupRequest.h:114
Aws::IoT::Model::CreateDynamicThingGroupRequest::QueryVersionHasBeenSet
bool QueryVersionHasBeenSet() const
Definition: CreateDynamicThingGroupRequest.h:228
Aws::IoT::Model::CreateDynamicThingGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDynamicThingGroupRequest.h:33
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithThingGroupName
CreateDynamicThingGroupRequest & WithThingGroupName(const char *value)
Definition: CreateDynamicThingGroupRequest.h:76
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithQueryString
CreateDynamicThingGroupRequest & WithQueryString(Aws::String &&value)
Definition: CreateDynamicThingGroupRequest.h:206
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithIndexName
CreateDynamicThingGroupRequest & WithIndexName(Aws::String &&value)
Definition: CreateDynamicThingGroupRequest.h:150
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithTags
CreateDynamicThingGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDynamicThingGroupRequest.h:301
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithThingGroupProperties
CreateDynamicThingGroupRequest & WithThingGroupProperties(ThingGroupProperties &&value)
Definition: CreateDynamicThingGroupRequest.h:107
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetQueryString
void SetQueryString(const char *value)
Definition: CreateDynamicThingGroupRequest.h:192
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetThingGroupName
void SetThingGroupName(const char *value)
Definition: CreateDynamicThingGroupRequest.h:61
Aws::IoT::Model::CreateDynamicThingGroupRequest::GetQueryVersion
const Aws::String & GetQueryVersion() const
Definition: CreateDynamicThingGroupRequest.h:221
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithIndexName
CreateDynamicThingGroupRequest & WithIndexName(const Aws::String &value)
Definition: CreateDynamicThingGroupRequest.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateDynamicThingGroupRequest::GetThingGroupName
const Aws::String & GetThingGroupName() const
Definition: CreateDynamicThingGroupRequest.h:41
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetIndexName
void SetIndexName(const char *value)
Definition: CreateDynamicThingGroupRequest.h:138
Aws::IoT::Model::CreateDynamicThingGroupRequest
Definition: CreateDynamicThingGroupRequest.h:25
Aws::IoT::Model::CreateDynamicThingGroupRequest::WithQueryVersion
CreateDynamicThingGroupRequest & WithQueryVersion(const Aws::String &value)
Definition: CreateDynamicThingGroupRequest.h:256
Aws::IoT::Model::CreateDynamicThingGroupRequest::AddTags
CreateDynamicThingGroupRequest & AddTags(Tag &&value)
Definition: CreateDynamicThingGroupRequest.h:311
IoTRequest.h
Aws::IoT::Model::CreateDynamicThingGroupRequest::ThingGroupNameHasBeenSet
bool ThingGroupNameHasBeenSet() const
Definition: CreateDynamicThingGroupRequest.h:46
Aws::IoT::Model::CreateDynamicThingGroupRequest::IndexNameHasBeenSet
bool IndexNameHasBeenSet() const
Definition: CreateDynamicThingGroupRequest.h:120
Aws::IoT::Model::CreateDynamicThingGroupRequest::SetQueryVersion
void SetQueryVersion(const Aws::String &value)
Definition: CreateDynamicThingGroupRequest.h:235
Tag.h
IoT_EXPORTS.h
Aws::IoT::Model::CreateDynamicThingGroupRequest::AddTags
CreateDynamicThingGroupRequest & AddTags(const Tag &value)
Definition: CreateDynamicThingGroupRequest.h:306