AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateThingRequest.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/AttributePayload.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_IOT_API UpdateThingRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateThing"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetThingName() const { return m_thingName; }
46 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
47 template<typename ThingNameT = Aws::String>
48 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
49 template<typename ThingNameT = Aws::String>
50 UpdateThingRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetThingTypeName() const { return m_thingTypeName; }
58 inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
59 template<typename ThingTypeNameT = Aws::String>
60 void SetThingTypeName(ThingTypeNameT&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::forward<ThingTypeNameT>(value); }
61 template<typename ThingTypeNameT = Aws::String>
62 UpdateThingRequest& WithThingTypeName(ThingTypeNameT&& value) { SetThingTypeName(std::forward<ThingTypeNameT>(value)); return *this;}
64
66
71 inline const AttributePayload& GetAttributePayload() const { return m_attributePayload; }
72 inline bool AttributePayloadHasBeenSet() const { return m_attributePayloadHasBeenSet; }
73 template<typename AttributePayloadT = AttributePayload>
74 void SetAttributePayload(AttributePayloadT&& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = std::forward<AttributePayloadT>(value); }
75 template<typename AttributePayloadT = AttributePayload>
76 UpdateThingRequest& WithAttributePayload(AttributePayloadT&& value) { SetAttributePayload(std::forward<AttributePayloadT>(value)); return *this;}
78
80
86 inline long long GetExpectedVersion() const { return m_expectedVersion; }
87 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
88 inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
89 inline UpdateThingRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
91
93
97 inline bool GetRemoveThingType() const { return m_removeThingType; }
98 inline bool RemoveThingTypeHasBeenSet() const { return m_removeThingTypeHasBeenSet; }
99 inline void SetRemoveThingType(bool value) { m_removeThingTypeHasBeenSet = true; m_removeThingType = value; }
100 inline UpdateThingRequest& WithRemoveThingType(bool value) { SetRemoveThingType(value); return *this;}
102 private:
103
104 Aws::String m_thingName;
105 bool m_thingNameHasBeenSet = false;
106
107 Aws::String m_thingTypeName;
108 bool m_thingTypeNameHasBeenSet = false;
109
110 AttributePayload m_attributePayload;
111 bool m_attributePayloadHasBeenSet = false;
112
113 long long m_expectedVersion{0};
114 bool m_expectedVersionHasBeenSet = false;
115
116 bool m_removeThingType{false};
117 bool m_removeThingTypeHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace IoT
122} // namespace Aws
const Aws::String & GetThingTypeName() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetThingName() const
UpdateThingRequest & WithExpectedVersion(long long value)
UpdateThingRequest & WithRemoveThingType(bool value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetAttributePayload(AttributePayloadT &&value)
void SetThingTypeName(ThingTypeNameT &&value)
UpdateThingRequest & WithThingTypeName(ThingTypeNameT &&value)
AWS_IOT_API UpdateThingRequest()=default
UpdateThingRequest & WithThingName(ThingNameT &&value)
void SetThingName(ThingNameT &&value)
UpdateThingRequest & WithAttributePayload(AttributePayloadT &&value)
const AttributePayload & GetAttributePayload() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String