AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
24 AWS_IOT_API AddThingToThingGroupRequest() = default;
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 template<typename ThingGroupNameT = Aws::String>
42 void SetThingGroupName(ThingGroupNameT&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::forward<ThingGroupNameT>(value); }
43 template<typename ThingGroupNameT = Aws::String>
44 AddThingToThingGroupRequest& WithThingGroupName(ThingGroupNameT&& value) { SetThingGroupName(std::forward<ThingGroupNameT>(value)); return *this;}
46
48
51 inline const Aws::String& GetThingGroupArn() const { return m_thingGroupArn; }
52 inline bool ThingGroupArnHasBeenSet() const { return m_thingGroupArnHasBeenSet; }
53 template<typename ThingGroupArnT = Aws::String>
54 void SetThingGroupArn(ThingGroupArnT&& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = std::forward<ThingGroupArnT>(value); }
55 template<typename ThingGroupArnT = Aws::String>
56 AddThingToThingGroupRequest& WithThingGroupArn(ThingGroupArnT&& value) { SetThingGroupArn(std::forward<ThingGroupArnT>(value)); return *this;}
58
60
63 inline const Aws::String& GetThingName() const { return m_thingName; }
64 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
65 template<typename ThingNameT = Aws::String>
66 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
67 template<typename ThingNameT = Aws::String>
68 AddThingToThingGroupRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetThingArn() const { return m_thingArn; }
76 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
77 template<typename ThingArnT = Aws::String>
78 void SetThingArn(ThingArnT&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::forward<ThingArnT>(value); }
79 template<typename ThingArnT = Aws::String>
80 AddThingToThingGroupRequest& WithThingArn(ThingArnT&& value) { SetThingArn(std::forward<ThingArnT>(value)); return *this;}
82
84
90 inline bool GetOverrideDynamicGroups() const { return m_overrideDynamicGroups; }
91 inline bool OverrideDynamicGroupsHasBeenSet() const { return m_overrideDynamicGroupsHasBeenSet; }
92 inline void SetOverrideDynamicGroups(bool value) { m_overrideDynamicGroupsHasBeenSet = true; m_overrideDynamicGroups = value; }
95 private:
96
97 Aws::String m_thingGroupName;
98 bool m_thingGroupNameHasBeenSet = false;
99
100 Aws::String m_thingGroupArn;
101 bool m_thingGroupArnHasBeenSet = false;
102
103 Aws::String m_thingName;
104 bool m_thingNameHasBeenSet = false;
105
106 Aws::String m_thingArn;
107 bool m_thingArnHasBeenSet = false;
108
109 bool m_overrideDynamicGroups{false};
110 bool m_overrideDynamicGroupsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace IoT
115} // namespace Aws
virtual const char * GetServiceRequestName() const override
AddThingToThingGroupRequest & WithThingArn(ThingArnT &&value)
AWS_IOT_API AddThingToThingGroupRequest()=default
AWS_IOT_API Aws::String SerializePayload() const override
AddThingToThingGroupRequest & WithOverrideDynamicGroups(bool value)
AddThingToThingGroupRequest & WithThingGroupArn(ThingGroupArnT &&value)
AddThingToThingGroupRequest & WithThingName(ThingNameT &&value)
AddThingToThingGroupRequest & WithThingGroupName(ThingGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String