AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateThingGroupRequest.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 <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOT_API UpdateThingGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateThingGroup"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetThingGroupName() const { return m_thingGroupName; }
41 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
42 template<typename ThingGroupNameT = Aws::String>
43 void SetThingGroupName(ThingGroupNameT&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::forward<ThingGroupNameT>(value); }
44 template<typename ThingGroupNameT = Aws::String>
45 UpdateThingGroupRequest& WithThingGroupName(ThingGroupNameT&& value) { SetThingGroupName(std::forward<ThingGroupNameT>(value)); return *this;}
47
49
52 inline const ThingGroupProperties& GetThingGroupProperties() const { return m_thingGroupProperties; }
53 inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
54 template<typename ThingGroupPropertiesT = ThingGroupProperties>
55 void SetThingGroupProperties(ThingGroupPropertiesT&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::forward<ThingGroupPropertiesT>(value); }
56 template<typename ThingGroupPropertiesT = ThingGroupProperties>
57 UpdateThingGroupRequest& WithThingGroupProperties(ThingGroupPropertiesT&& value) { SetThingGroupProperties(std::forward<ThingGroupPropertiesT>(value)); return *this;}
59
61
65 inline long long GetExpectedVersion() const { return m_expectedVersion; }
66 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
67 inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
68 inline UpdateThingGroupRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
70 private:
71
72 Aws::String m_thingGroupName;
73 bool m_thingGroupNameHasBeenSet = false;
74
75 ThingGroupProperties m_thingGroupProperties;
76 bool m_thingGroupPropertiesHasBeenSet = false;
77
78 long long m_expectedVersion{0};
79 bool m_expectedVersionHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace IoT
84} // 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