AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDynamicThingGroupRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/ThingGroupProperties.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace IoT
18{
19namespace 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_IOT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
43 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
44 inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
45 inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
46 inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
48 inline CreateDynamicThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
49 inline CreateDynamicThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
51
53
56 inline const ThingGroupProperties& GetThingGroupProperties() const{ return m_thingGroupProperties; }
57 inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
58 inline void SetThingGroupProperties(const ThingGroupProperties& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = value; }
59 inline void SetThingGroupProperties(ThingGroupProperties&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::move(value); }
63
65
69 inline const Aws::String& GetIndexName() const{ return m_indexName; }
70 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
71 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
72 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
73 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
74 inline CreateDynamicThingGroupRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
75 inline CreateDynamicThingGroupRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
76 inline CreateDynamicThingGroupRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
78
80
85 inline const Aws::String& GetQueryString() const{ return m_queryString; }
86 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
87 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
88 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
89 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
90 inline CreateDynamicThingGroupRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
91 inline CreateDynamicThingGroupRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
92 inline CreateDynamicThingGroupRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
94
96
101 inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
102 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
103 inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
104 inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
105 inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
106 inline CreateDynamicThingGroupRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
107 inline CreateDynamicThingGroupRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
108 inline CreateDynamicThingGroupRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
110
112
115 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
118 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
119 inline CreateDynamicThingGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
120 inline CreateDynamicThingGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
121 inline CreateDynamicThingGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
122 inline CreateDynamicThingGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
124 private:
125
126 Aws::String m_thingGroupName;
127 bool m_thingGroupNameHasBeenSet = false;
128
129 ThingGroupProperties m_thingGroupProperties;
130 bool m_thingGroupPropertiesHasBeenSet = false;
131
132 Aws::String m_indexName;
133 bool m_indexNameHasBeenSet = false;
134
135 Aws::String m_queryString;
136 bool m_queryStringHasBeenSet = false;
137
138 Aws::String m_queryVersion;
139 bool m_queryVersionHasBeenSet = false;
140
141 Aws::Vector<Tag> m_tags;
142 bool m_tagsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace IoT
147} // namespace Aws
CreateDynamicThingGroupRequest & WithQueryString(const char *value)
CreateDynamicThingGroupRequest & WithQueryVersion(const Aws::String &value)
CreateDynamicThingGroupRequest & WithThingGroupProperties(const ThingGroupProperties &value)
CreateDynamicThingGroupRequest & AddTags(Tag &&value)
CreateDynamicThingGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDynamicThingGroupRequest & WithThingGroupName(const char *value)
CreateDynamicThingGroupRequest & WithIndexName(const Aws::String &value)
CreateDynamicThingGroupRequest & WithQueryString(const Aws::String &value)
CreateDynamicThingGroupRequest & WithQueryString(Aws::String &&value)
CreateDynamicThingGroupRequest & WithQueryVersion(Aws::String &&value)
void SetThingGroupProperties(const ThingGroupProperties &value)
CreateDynamicThingGroupRequest & WithThingGroupName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
CreateDynamicThingGroupRequest & WithIndexName(const char *value)
CreateDynamicThingGroupRequest & WithThingGroupName(const Aws::String &value)
CreateDynamicThingGroupRequest & WithIndexName(Aws::String &&value)
CreateDynamicThingGroupRequest & WithQueryVersion(const char *value)
CreateDynamicThingGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDynamicThingGroupRequest & AddTags(const Tag &value)
CreateDynamicThingGroupRequest & WithThingGroupProperties(ThingGroupProperties &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector