AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddThingToThingGroupRequest.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 <utility>
11
12namespace Aws
13{
14namespace IoT
15{
16namespace 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_IOT_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
40 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
41 inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
42 inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
43 inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
44 inline AddThingToThingGroupRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
45 inline AddThingToThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
46 inline AddThingToThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
48
50
53 inline const Aws::String& GetThingGroupArn() const{ return m_thingGroupArn; }
54 inline bool ThingGroupArnHasBeenSet() const { return m_thingGroupArnHasBeenSet; }
55 inline void SetThingGroupArn(const Aws::String& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = value; }
56 inline void SetThingGroupArn(Aws::String&& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = std::move(value); }
57 inline void SetThingGroupArn(const char* value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn.assign(value); }
58 inline AddThingToThingGroupRequest& WithThingGroupArn(const Aws::String& value) { SetThingGroupArn(value); return *this;}
59 inline AddThingToThingGroupRequest& WithThingGroupArn(Aws::String&& value) { SetThingGroupArn(std::move(value)); return *this;}
60 inline AddThingToThingGroupRequest& WithThingGroupArn(const char* value) { SetThingGroupArn(value); return *this;}
62
64
67 inline const Aws::String& GetThingName() const{ return m_thingName; }
68 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
69 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
70 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
71 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
72 inline AddThingToThingGroupRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
73 inline AddThingToThingGroupRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
74 inline AddThingToThingGroupRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
76
78
81 inline const Aws::String& GetThingArn() const{ return m_thingArn; }
82 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
83 inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
84 inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
85 inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
86 inline AddThingToThingGroupRequest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
87 inline AddThingToThingGroupRequest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
88 inline AddThingToThingGroupRequest& WithThingArn(const char* value) { SetThingArn(value); return *this;}
90
92
98 inline bool GetOverrideDynamicGroups() const{ return m_overrideDynamicGroups; }
99 inline bool OverrideDynamicGroupsHasBeenSet() const { return m_overrideDynamicGroupsHasBeenSet; }
100 inline void SetOverrideDynamicGroups(bool value) { m_overrideDynamicGroupsHasBeenSet = true; m_overrideDynamicGroups = value; }
103 private:
104
105 Aws::String m_thingGroupName;
106 bool m_thingGroupNameHasBeenSet = false;
107
108 Aws::String m_thingGroupArn;
109 bool m_thingGroupArnHasBeenSet = false;
110
111 Aws::String m_thingName;
112 bool m_thingNameHasBeenSet = false;
113
114 Aws::String m_thingArn;
115 bool m_thingArnHasBeenSet = false;
116
117 bool m_overrideDynamicGroups;
118 bool m_overrideDynamicGroupsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace IoT
123} // namespace Aws
virtual const char * GetServiceRequestName() const override
AddThingToThingGroupRequest & WithThingGroupName(const Aws::String &value)
AddThingToThingGroupRequest & WithThingGroupArn(const Aws::String &value)
AddThingToThingGroupRequest & WithThingArn(Aws::String &&value)
AddThingToThingGroupRequest & WithThingName(const char *value)
AddThingToThingGroupRequest & WithThingName(Aws::String &&value)
AddThingToThingGroupRequest & WithThingGroupArn(Aws::String &&value)
AddThingToThingGroupRequest & WithThingGroupArn(const char *value)
AddThingToThingGroupRequest & WithThingArn(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
AddThingToThingGroupRequest & WithOverrideDynamicGroups(bool value)
AddThingToThingGroupRequest & WithThingName(const Aws::String &value)
AddThingToThingGroupRequest & WithThingGroupName(Aws::String &&value)
AddThingToThingGroupRequest & WithThingArn(const Aws::String &value)
AddThingToThingGroupRequest & WithThingGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String