AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
UpdateThingGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/ThingGroupProperties.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoT {
16namespace Model {
17
21 public:
22 AWS_IOT_API UpdateThingGroupRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateThingGroup"; }
29
30 AWS_IOT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetThingGroupName() const { return m_thingGroupName; }
37 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
38 template <typename ThingGroupNameT = Aws::String>
39 void SetThingGroupName(ThingGroupNameT&& value) {
40 m_thingGroupNameHasBeenSet = true;
41 m_thingGroupName = std::forward<ThingGroupNameT>(value);
42 }
43 template <typename ThingGroupNameT = Aws::String>
44 UpdateThingGroupRequest& WithThingGroupName(ThingGroupNameT&& value) {
45 SetThingGroupName(std::forward<ThingGroupNameT>(value));
46 return *this;
47 }
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) {
58 m_thingGroupPropertiesHasBeenSet = true;
59 m_thingGroupProperties = std::forward<ThingGroupPropertiesT>(value);
60 }
61 template <typename ThingGroupPropertiesT = ThingGroupProperties>
62 UpdateThingGroupRequest& WithThingGroupProperties(ThingGroupPropertiesT&& value) {
63 SetThingGroupProperties(std::forward<ThingGroupPropertiesT>(value));
64 return *this;
65 }
67
69
73 inline long long GetExpectedVersion() const { return m_expectedVersion; }
74 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
75 inline void SetExpectedVersion(long long value) {
76 m_expectedVersionHasBeenSet = true;
77 m_expectedVersion = value;
78 }
80 SetExpectedVersion(value);
81 return *this;
82 }
84 private:
85 Aws::String m_thingGroupName;
86 bool m_thingGroupNameHasBeenSet = false;
87
88 ThingGroupProperties m_thingGroupProperties;
89 bool m_thingGroupPropertiesHasBeenSet = false;
90
91 long long m_expectedVersion{0};
92 bool m_expectedVersionHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace IoT
97} // namespace Aws
void SetThingGroupName(ThingGroupNameT &&value)
void SetThingGroupProperties(ThingGroupPropertiesT &&value)
UpdateThingGroupRequest & WithThingGroupProperties(ThingGroupPropertiesT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
AWS_IOT_API UpdateThingGroupRequest()=default
UpdateThingGroupRequest & WithThingGroupName(ThingGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateThingGroupRequest & WithExpectedVersion(long long value)
const ThingGroupProperties & GetThingGroupProperties() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String