AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
48 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
49 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
50 inline UpdateThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
51 inline UpdateThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
52 inline UpdateThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
54
56
59 inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
60 inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
61 inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
62 inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
63 inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
64 inline UpdateThingRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
65 inline UpdateThingRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
66 inline UpdateThingRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
68
70
75 inline const AttributePayload& GetAttributePayload() const{ return m_attributePayload; }
76 inline bool AttributePayloadHasBeenSet() const { return m_attributePayloadHasBeenSet; }
77 inline void SetAttributePayload(const AttributePayload& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = value; }
78 inline void SetAttributePayload(AttributePayload&& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = std::move(value); }
79 inline UpdateThingRequest& WithAttributePayload(const AttributePayload& value) { SetAttributePayload(value); return *this;}
80 inline UpdateThingRequest& WithAttributePayload(AttributePayload&& value) { SetAttributePayload(std::move(value)); return *this;}
82
84
90 inline long long GetExpectedVersion() const{ return m_expectedVersion; }
91 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
92 inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
93 inline UpdateThingRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
95
97
101 inline bool GetRemoveThingType() const{ return m_removeThingType; }
102 inline bool RemoveThingTypeHasBeenSet() const { return m_removeThingTypeHasBeenSet; }
103 inline void SetRemoveThingType(bool value) { m_removeThingTypeHasBeenSet = true; m_removeThingType = value; }
104 inline UpdateThingRequest& WithRemoveThingType(bool value) { SetRemoveThingType(value); return *this;}
106 private:
107
108 Aws::String m_thingName;
109 bool m_thingNameHasBeenSet = false;
110
111 Aws::String m_thingTypeName;
112 bool m_thingTypeNameHasBeenSet = false;
113
114 AttributePayload m_attributePayload;
115 bool m_attributePayloadHasBeenSet = false;
116
117 long long m_expectedVersion;
118 bool m_expectedVersionHasBeenSet = false;
119
120 bool m_removeThingType;
121 bool m_removeThingTypeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace IoT
126} // namespace Aws
const Aws::String & GetThingTypeName() const
void SetThingName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetThingName() const
UpdateThingRequest & WithAttributePayload(AttributePayload &&value)
UpdateThingRequest & WithExpectedVersion(long long value)
UpdateThingRequest & WithThingName(const char *value)
UpdateThingRequest & WithThingTypeName(Aws::String &&value)
UpdateThingRequest & WithRemoveThingType(bool value)
UpdateThingRequest & WithThingTypeName(const char *value)
void SetThingTypeName(const char *value)
UpdateThingRequest & WithThingName(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetThingTypeName(const Aws::String &value)
UpdateThingRequest & WithThingTypeName(const Aws::String &value)
UpdateThingRequest & WithThingName(Aws::String &&value)
void SetAttributePayload(const AttributePayload &value)
UpdateThingRequest & WithAttributePayload(const AttributePayload &value)
void SetAttributePayload(AttributePayload &&value)
void SetThingTypeName(Aws::String &&value)
const AttributePayload & GetAttributePayload() const
void SetThingName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String