AWS SDK for C++  1.9.109
AWS SDK for C++
DeleteThingRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "DeleteThing"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
47  inline const Aws::String& GetThingName() const{ return m_thingName; }
48 
52  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
53 
57  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
58 
62  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
63 
67  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
68 
72  inline DeleteThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
73 
77  inline DeleteThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
78 
82  inline DeleteThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
83 
84 
91  inline long long GetExpectedVersion() const{ return m_expectedVersion; }
92 
99  inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
100 
107  inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
108 
115  inline DeleteThingRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
116 
117  private:
118 
119  Aws::String m_thingName;
120  bool m_thingNameHasBeenSet;
121 
122  long long m_expectedVersion;
123  bool m_expectedVersionHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace IoT
128 } // namespace Aws
Aws::IoT::Model::DeleteThingRequest::DeleteThingRequest
DeleteThingRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::DeleteThingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DeleteThingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteThingRequest.h:37
Aws::IoT::Model::DeleteThingRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: DeleteThingRequest.h:57
Aws::IoT::Model::DeleteThingRequest::WithExpectedVersion
DeleteThingRequest & WithExpectedVersion(long long value)
Definition: DeleteThingRequest.h:115
Aws::IoT::Model::DeleteThingRequest::SetExpectedVersion
void SetExpectedVersion(long long value)
Definition: DeleteThingRequest.h:107
Aws::IoT::Model::DeleteThingRequest::ExpectedVersionHasBeenSet
bool ExpectedVersionHasBeenSet() const
Definition: DeleteThingRequest.h:99
Aws::IoT::Model::DeleteThingRequest::WithThingName
DeleteThingRequest & WithThingName(const Aws::String &value)
Definition: DeleteThingRequest.h:72
Aws::IoT::Model::DeleteThingRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::DeleteThingRequest::GetThingName
const Aws::String & GetThingName() const
Definition: DeleteThingRequest.h:47
Aws::IoT::Model::DeleteThingRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: DeleteThingRequest.h:52
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DeleteThingRequest::WithThingName
DeleteThingRequest & WithThingName(Aws::String &&value)
Definition: DeleteThingRequest.h:77
Aws::IoT::Model::DeleteThingRequest::WithThingName
DeleteThingRequest & WithThingName(const char *value)
Definition: DeleteThingRequest.h:82
Aws::IoT::Model::DeleteThingRequest::GetExpectedVersion
long long GetExpectedVersion() const
Definition: DeleteThingRequest.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::DeleteThingRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: DeleteThingRequest.h:62
Aws::IoT::Model::DeleteThingRequest
Definition: DeleteThingRequest.h:29
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
IoTRequest.h
Aws::IoT::Model::DeleteThingRequest::SetThingName
void SetThingName(const char *value)
Definition: DeleteThingRequest.h:67
IoT_EXPORTS.h