AWS SDK for C++  1.9.123
AWS SDK for C++
UpdateThingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
26  {
27  public:
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::String SerializePayload() const override;
37 
38 
44  inline const Aws::String& GetThingName() const{ return m_thingName; }
45 
51  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
52 
58  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
59 
65  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
66 
72  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
73 
79  inline UpdateThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
80 
86  inline UpdateThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
87 
93  inline UpdateThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
94 
95 
99  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
100 
104  inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
105 
109  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
110 
114  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
115 
119  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
120 
124  inline UpdateThingRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
125 
129  inline UpdateThingRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
130 
134  inline UpdateThingRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
135 
136 
142  inline const AttributePayload& GetAttributePayload() const{ return m_attributePayload; }
143 
149  inline bool AttributePayloadHasBeenSet() const { return m_attributePayloadHasBeenSet; }
150 
156  inline void SetAttributePayload(const AttributePayload& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = value; }
157 
163  inline void SetAttributePayload(AttributePayload&& value) { m_attributePayloadHasBeenSet = true; m_attributePayload = std::move(value); }
164 
170  inline UpdateThingRequest& WithAttributePayload(const AttributePayload& value) { SetAttributePayload(value); return *this;}
171 
177  inline UpdateThingRequest& WithAttributePayload(AttributePayload&& value) { SetAttributePayload(std::move(value)); return *this;}
178 
179 
186  inline long long GetExpectedVersion() const{ return m_expectedVersion; }
187 
194  inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
195 
202  inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
203 
210  inline UpdateThingRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
211 
212 
217  inline bool GetRemoveThingType() const{ return m_removeThingType; }
218 
223  inline bool RemoveThingTypeHasBeenSet() const { return m_removeThingTypeHasBeenSet; }
224 
229  inline void SetRemoveThingType(bool value) { m_removeThingTypeHasBeenSet = true; m_removeThingType = value; }
230 
235  inline UpdateThingRequest& WithRemoveThingType(bool value) { SetRemoveThingType(value); return *this;}
236 
237  private:
238 
239  Aws::String m_thingName;
240  bool m_thingNameHasBeenSet;
241 
242  Aws::String m_thingTypeName;
243  bool m_thingTypeNameHasBeenSet;
244 
245  AttributePayload m_attributePayload;
246  bool m_attributePayloadHasBeenSet;
247 
248  long long m_expectedVersion;
249  bool m_expectedVersionHasBeenSet;
250 
251  bool m_removeThingType;
252  bool m_removeThingTypeHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace IoT
257 } // namespace Aws
Aws::IoT::Model::UpdateThingRequest::WithThingTypeName
UpdateThingRequest & WithThingTypeName(const char *value)
Definition: UpdateThingRequest.h:134
AttributePayload.h
Aws::IoT::Model::UpdateThingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::UpdateThingRequest::SetAttributePayload
void SetAttributePayload(AttributePayload &&value)
Definition: UpdateThingRequest.h:163
Aws::IoT::Model::UpdateThingRequest::GetRemoveThingType
bool GetRemoveThingType() const
Definition: UpdateThingRequest.h:217
Aws::IoT::Model::UpdateThingRequest::WithThingName
UpdateThingRequest & WithThingName(const char *value)
Definition: UpdateThingRequest.h:93
Aws::IoT::Model::UpdateThingRequest::GetExpectedVersion
long long GetExpectedVersion() const
Definition: UpdateThingRequest.h:186
Aws::IoT::Model::UpdateThingRequest::WithRemoveThingType
UpdateThingRequest & WithRemoveThingType(bool value)
Definition: UpdateThingRequest.h:235
Aws::IoT::Model::UpdateThingRequest::GetThingTypeName
const Aws::String & GetThingTypeName() const
Definition: UpdateThingRequest.h:99
Aws::IoT::Model::UpdateThingRequest::WithThingTypeName
UpdateThingRequest & WithThingTypeName(Aws::String &&value)
Definition: UpdateThingRequest.h:129
Aws::IoT::Model::UpdateThingRequest::AttributePayloadHasBeenSet
bool AttributePayloadHasBeenSet() const
Definition: UpdateThingRequest.h:149
Aws::IoT::Model::AttributePayload
Definition: AttributePayload.h:33
Aws::IoT::Model::UpdateThingRequest::SetThingTypeName
void SetThingTypeName(Aws::String &&value)
Definition: UpdateThingRequest.h:114
Aws::IoT::Model::UpdateThingRequest::WithAttributePayload
UpdateThingRequest & WithAttributePayload(const AttributePayload &value)
Definition: UpdateThingRequest.h:170
Aws::IoT::Model::UpdateThingRequest::SetExpectedVersion
void SetExpectedVersion(long long value)
Definition: UpdateThingRequest.h:202
AWSString.h
Aws::IoT::Model::UpdateThingRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: UpdateThingRequest.h:51
Aws::IoT::Model::UpdateThingRequest::GetAttributePayload
const AttributePayload & GetAttributePayload() const
Definition: UpdateThingRequest.h:142
Aws::IoT::Model::UpdateThingRequest::SetThingTypeName
void SetThingTypeName(const Aws::String &value)
Definition: UpdateThingRequest.h:109
Aws::IoT::Model::UpdateThingRequest::RemoveThingTypeHasBeenSet
bool RemoveThingTypeHasBeenSet() const
Definition: UpdateThingRequest.h:223
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateThingRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: UpdateThingRequest.h:65
Aws::IoT::Model::UpdateThingRequest::SetAttributePayload
void SetAttributePayload(const AttributePayload &value)
Definition: UpdateThingRequest.h:156
Aws::IoT::Model::UpdateThingRequest::WithThingTypeName
UpdateThingRequest & WithThingTypeName(const Aws::String &value)
Definition: UpdateThingRequest.h:124
Aws::IoT::Model::UpdateThingRequest::WithExpectedVersion
UpdateThingRequest & WithExpectedVersion(long long value)
Definition: UpdateThingRequest.h:210
Aws::IoT::Model::UpdateThingRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: UpdateThingRequest.h:58
Aws::IoT::Model::UpdateThingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateThingRequest.h:34
Aws::IoT::Model::UpdateThingRequest::WithThingName
UpdateThingRequest & WithThingName(Aws::String &&value)
Definition: UpdateThingRequest.h:86
Aws::IoT::Model::UpdateThingRequest::GetThingName
const Aws::String & GetThingName() const
Definition: UpdateThingRequest.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateThingRequest::SetThingTypeName
void SetThingTypeName(const char *value)
Definition: UpdateThingRequest.h:119
Aws::IoT::Model::UpdateThingRequest::WithThingName
UpdateThingRequest & WithThingName(const Aws::String &value)
Definition: UpdateThingRequest.h:79
Aws::IoT::Model::UpdateThingRequest::UpdateThingRequest
UpdateThingRequest()
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::UpdateThingRequest::ExpectedVersionHasBeenSet
bool ExpectedVersionHasBeenSet() const
Definition: UpdateThingRequest.h:194
Aws::IoT::Model::UpdateThingRequest::WithAttributePayload
UpdateThingRequest & WithAttributePayload(AttributePayload &&value)
Definition: UpdateThingRequest.h:177
Aws::IoT::Model::UpdateThingRequest::SetThingName
void SetThingName(const char *value)
Definition: UpdateThingRequest.h:72
Aws::IoT::Model::UpdateThingRequest::ThingTypeNameHasBeenSet
bool ThingTypeNameHasBeenSet() const
Definition: UpdateThingRequest.h:104
IoTRequest.h
Aws::IoT::Model::UpdateThingRequest::SetRemoveThingType
void SetRemoveThingType(bool value)
Definition: UpdateThingRequest.h:229
Aws::IoT::Model::UpdateThingRequest
Definition: UpdateThingRequest.h:26
IoT_EXPORTS.h