AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
43 inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
44 inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
45 inline UpdateThingGroupRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
46 inline UpdateThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
47 inline UpdateThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
49
51
54 inline const ThingGroupProperties& GetThingGroupProperties() const{ return m_thingGroupProperties; }
55 inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
56 inline void SetThingGroupProperties(const ThingGroupProperties& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = value; }
57 inline void SetThingGroupProperties(ThingGroupProperties&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::move(value); }
61
63
67 inline long long GetExpectedVersion() const{ return m_expectedVersion; }
68 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
69 inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
70 inline UpdateThingGroupRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
72 private:
73
74 Aws::String m_thingGroupName;
75 bool m_thingGroupNameHasBeenSet = false;
76
77 ThingGroupProperties m_thingGroupProperties;
78 bool m_thingGroupPropertiesHasBeenSet = false;
79
80 long long m_expectedVersion;
81 bool m_expectedVersionHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace IoT
86} // namespace Aws
void SetThingGroupProperties(ThingGroupProperties &&value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetThingGroupName(const Aws::String &value)
UpdateThingGroupRequest & WithThingGroupProperties(const ThingGroupProperties &value)
UpdateThingGroupRequest & WithThingGroupName(Aws::String &&value)
void SetThingGroupProperties(const ThingGroupProperties &value)
UpdateThingGroupRequest & WithThingGroupName(const Aws::String &value)
UpdateThingGroupRequest & WithThingGroupProperties(ThingGroupProperties &&value)
UpdateThingGroupRequest & WithThingGroupName(const char *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