AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_IOT_API CreateDynamicThingGroupRequest() = default;
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 template<typename ThingGroupNameT = Aws::String>
45 void SetThingGroupName(ThingGroupNameT&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::forward<ThingGroupNameT>(value); }
46 template<typename ThingGroupNameT = Aws::String>
47 CreateDynamicThingGroupRequest& WithThingGroupName(ThingGroupNameT&& value) { SetThingGroupName(std::forward<ThingGroupNameT>(value)); return *this;}
49
51
54 inline const ThingGroupProperties& GetThingGroupProperties() const { return m_thingGroupProperties; }
55 inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
56 template<typename ThingGroupPropertiesT = ThingGroupProperties>
57 void SetThingGroupProperties(ThingGroupPropertiesT&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::forward<ThingGroupPropertiesT>(value); }
58 template<typename ThingGroupPropertiesT = ThingGroupProperties>
59 CreateDynamicThingGroupRequest& WithThingGroupProperties(ThingGroupPropertiesT&& value) { SetThingGroupProperties(std::forward<ThingGroupPropertiesT>(value)); return *this;}
61
63
67 inline const Aws::String& GetIndexName() const { return m_indexName; }
68 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
69 template<typename IndexNameT = Aws::String>
70 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
71 template<typename IndexNameT = Aws::String>
72 CreateDynamicThingGroupRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
74
76
81 inline const Aws::String& GetQueryString() const { return m_queryString; }
82 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
83 template<typename QueryStringT = Aws::String>
84 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
85 template<typename QueryStringT = Aws::String>
86 CreateDynamicThingGroupRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
88
90
95 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
96 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
97 template<typename QueryVersionT = Aws::String>
98 void SetQueryVersion(QueryVersionT&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::forward<QueryVersionT>(value); }
99 template<typename QueryVersionT = Aws::String>
100 CreateDynamicThingGroupRequest& WithQueryVersion(QueryVersionT&& value) { SetQueryVersion(std::forward<QueryVersionT>(value)); return *this;}
102
104
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Vector<Tag>>
112 CreateDynamicThingGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsT = Tag>
114 CreateDynamicThingGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
116 private:
117
118 Aws::String m_thingGroupName;
119 bool m_thingGroupNameHasBeenSet = false;
120
121 ThingGroupProperties m_thingGroupProperties;
122 bool m_thingGroupPropertiesHasBeenSet = false;
123
124 Aws::String m_indexName;
125 bool m_indexNameHasBeenSet = false;
126
127 Aws::String m_queryString;
128 bool m_queryStringHasBeenSet = false;
129
130 Aws::String m_queryVersion;
131 bool m_queryVersionHasBeenSet = false;
132
133 Aws::Vector<Tag> m_tags;
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace IoT
139} // 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