AWS SDK for C++  1.9.132
AWS SDK for C++
AddThingToThingGroupRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "AddThingToThingGroup"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
39 
43  inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
44 
48  inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
49 
53  inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
54 
58  inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
59 
63  inline AddThingToThingGroupRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
64 
68  inline AddThingToThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
69 
73  inline AddThingToThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
74 
75 
79  inline const Aws::String& GetThingGroupArn() const{ return m_thingGroupArn; }
80 
84  inline bool ThingGroupArnHasBeenSet() const { return m_thingGroupArnHasBeenSet; }
85 
89  inline void SetThingGroupArn(const Aws::String& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = value; }
90 
94  inline void SetThingGroupArn(Aws::String&& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = std::move(value); }
95 
99  inline void SetThingGroupArn(const char* value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn.assign(value); }
100 
104  inline AddThingToThingGroupRequest& WithThingGroupArn(const Aws::String& value) { SetThingGroupArn(value); return *this;}
105 
109  inline AddThingToThingGroupRequest& WithThingGroupArn(Aws::String&& value) { SetThingGroupArn(std::move(value)); return *this;}
110 
114  inline AddThingToThingGroupRequest& WithThingGroupArn(const char* value) { SetThingGroupArn(value); return *this;}
115 
116 
120  inline const Aws::String& GetThingName() const{ return m_thingName; }
121 
125  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
126 
130  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
131 
135  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
136 
140  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
141 
145  inline AddThingToThingGroupRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
146 
150  inline AddThingToThingGroupRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
151 
155  inline AddThingToThingGroupRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
156 
157 
161  inline const Aws::String& GetThingArn() const{ return m_thingArn; }
162 
166  inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
167 
171  inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
172 
176  inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
177 
181  inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
182 
186  inline AddThingToThingGroupRequest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
187 
191  inline AddThingToThingGroupRequest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
192 
196  inline AddThingToThingGroupRequest& WithThingArn(const char* value) { SetThingArn(value); return *this;}
197 
198 
205  inline bool GetOverrideDynamicGroups() const{ return m_overrideDynamicGroups; }
206 
213  inline bool OverrideDynamicGroupsHasBeenSet() const { return m_overrideDynamicGroupsHasBeenSet; }
214 
221  inline void SetOverrideDynamicGroups(bool value) { m_overrideDynamicGroupsHasBeenSet = true; m_overrideDynamicGroups = value; }
222 
229  inline AddThingToThingGroupRequest& WithOverrideDynamicGroups(bool value) { SetOverrideDynamicGroups(value); return *this;}
230 
231  private:
232 
233  Aws::String m_thingGroupName;
234  bool m_thingGroupNameHasBeenSet;
235 
236  Aws::String m_thingGroupArn;
237  bool m_thingGroupArnHasBeenSet;
238 
239  Aws::String m_thingName;
240  bool m_thingNameHasBeenSet;
241 
242  Aws::String m_thingArn;
243  bool m_thingArnHasBeenSet;
244 
245  bool m_overrideDynamicGroups;
246  bool m_overrideDynamicGroupsHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace IoT
251 } // namespace Aws
Aws::IoT::Model::AddThingToThingGroupRequest::WithOverrideDynamicGroups
AddThingToThingGroupRequest & WithOverrideDynamicGroups(bool value)
Definition: AddThingToThingGroupRequest.h:229
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingName
AddThingToThingGroupRequest & WithThingName(const char *value)
Definition: AddThingToThingGroupRequest.h:155
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: AddThingToThingGroupRequest.h:135
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingName
AddThingToThingGroupRequest & WithThingName(const Aws::String &value)
Definition: AddThingToThingGroupRequest.h:145
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingGroupArn
void SetThingGroupArn(Aws::String &&value)
Definition: AddThingToThingGroupRequest.h:94
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingGroupName
void SetThingGroupName(const Aws::String &value)
Definition: AddThingToThingGroupRequest.h:48
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingGroupArn
AddThingToThingGroupRequest & WithThingGroupArn(const char *value)
Definition: AddThingToThingGroupRequest.h:114
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingArn
void SetThingArn(Aws::String &&value)
Definition: AddThingToThingGroupRequest.h:176
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingGroupArn
AddThingToThingGroupRequest & WithThingGroupArn(const Aws::String &value)
Definition: AddThingToThingGroupRequest.h:104
Aws::IoT::Model::AddThingToThingGroupRequest::GetThingName
const Aws::String & GetThingName() const
Definition: AddThingToThingGroupRequest.h:120
Aws::IoT::Model::AddThingToThingGroupRequest::SetOverrideDynamicGroups
void SetOverrideDynamicGroups(bool value)
Definition: AddThingToThingGroupRequest.h:221
Aws::IoT::Model::AddThingToThingGroupRequest::GetOverrideDynamicGroups
bool GetOverrideDynamicGroups() const
Definition: AddThingToThingGroupRequest.h:205
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingArn
void SetThingArn(const Aws::String &value)
Definition: AddThingToThingGroupRequest.h:171
Aws::IoT::Model::AddThingToThingGroupRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: AddThingToThingGroupRequest.h:125
Aws::IoT::Model::AddThingToThingGroupRequest::GetThingGroupArn
const Aws::String & GetThingGroupArn() const
Definition: AddThingToThingGroupRequest.h:79
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: AddThingToThingGroupRequest.h:130
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingArn
AddThingToThingGroupRequest & WithThingArn(const Aws::String &value)
Definition: AddThingToThingGroupRequest.h:186
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingGroupArn
AddThingToThingGroupRequest & WithThingGroupArn(Aws::String &&value)
Definition: AddThingToThingGroupRequest.h:109
Aws::IoT::Model::AddThingToThingGroupRequest::AddThingToThingGroupRequest
AddThingToThingGroupRequest()
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingGroupName
AddThingToThingGroupRequest & WithThingGroupName(const char *value)
Definition: AddThingToThingGroupRequest.h:73
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingArn
AddThingToThingGroupRequest & WithThingArn(Aws::String &&value)
Definition: AddThingToThingGroupRequest.h:191
Aws::IoT::Model::AddThingToThingGroupRequest::GetThingGroupName
const Aws::String & GetThingGroupName() const
Definition: AddThingToThingGroupRequest.h:38
Aws::IoT::Model::AddThingToThingGroupRequest::ThingArnHasBeenSet
bool ThingArnHasBeenSet() const
Definition: AddThingToThingGroupRequest.h:166
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingName
AddThingToThingGroupRequest & WithThingName(Aws::String &&value)
Definition: AddThingToThingGroupRequest.h:150
AWSString.h
Aws::IoT::Model::AddThingToThingGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingGroupArn
void SetThingGroupArn(const char *value)
Definition: AddThingToThingGroupRequest.h:99
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::AddThingToThingGroupRequest::ThingGroupArnHasBeenSet
bool ThingGroupArnHasBeenSet() const
Definition: AddThingToThingGroupRequest.h:84
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingGroupName
AddThingToThingGroupRequest & WithThingGroupName(const Aws::String &value)
Definition: AddThingToThingGroupRequest.h:63
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingArn
void SetThingArn(const char *value)
Definition: AddThingToThingGroupRequest.h:181
Aws::IoT::Model::AddThingToThingGroupRequest::GetThingArn
const Aws::String & GetThingArn() const
Definition: AddThingToThingGroupRequest.h:161
Aws::IoT::Model::AddThingToThingGroupRequest::WithThingArn
AddThingToThingGroupRequest & WithThingArn(const char *value)
Definition: AddThingToThingGroupRequest.h:196
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingName
void SetThingName(const char *value)
Definition: AddThingToThingGroupRequest.h:140
Aws::IoT::Model::AddThingToThingGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddThingToThingGroupRequest.h:30
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::AddThingToThingGroupRequest::WithThingGroupName
AddThingToThingGroupRequest & WithThingGroupName(Aws::String &&value)
Definition: AddThingToThingGroupRequest.h:68
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingGroupName
void SetThingGroupName(const char *value)
Definition: AddThingToThingGroupRequest.h:58
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingGroupName
void SetThingGroupName(Aws::String &&value)
Definition: AddThingToThingGroupRequest.h:53
IoTRequest.h
Aws::IoT::Model::AddThingToThingGroupRequest::ThingGroupNameHasBeenSet
bool ThingGroupNameHasBeenSet() const
Definition: AddThingToThingGroupRequest.h:43
Aws::IoT::Model::AddThingToThingGroupRequest
Definition: AddThingToThingGroupRequest.h:22
Aws::IoT::Model::AddThingToThingGroupRequest::OverrideDynamicGroupsHasBeenSet
bool OverrideDynamicGroupsHasBeenSet() const
Definition: AddThingToThingGroupRequest.h:213
Aws::IoT::Model::AddThingToThingGroupRequest::SetThingGroupArn
void SetThingGroupArn(const Aws::String &value)
Definition: AddThingToThingGroupRequest.h:89
IoT_EXPORTS.h