AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DeleteThingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
26 public:
27 AWS_IOT_API DeleteThingRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DeleteThing"; }
34
35 AWS_IOT_API Aws::String SerializePayload() const override;
36
37 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline const Aws::String& GetThingName() const { return m_thingName; }
44 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
45 template <typename ThingNameT = Aws::String>
46 void SetThingName(ThingNameT&& value) {
47 m_thingNameHasBeenSet = true;
48 m_thingName = std::forward<ThingNameT>(value);
49 }
50 template <typename ThingNameT = Aws::String>
51 DeleteThingRequest& WithThingName(ThingNameT&& value) {
52 SetThingName(std::forward<ThingNameT>(value));
53 return *this;
54 }
56
58
64 inline long long GetExpectedVersion() const { return m_expectedVersion; }
65 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
66 inline void SetExpectedVersion(long long value) {
67 m_expectedVersionHasBeenSet = true;
68 m_expectedVersion = value;
69 }
70 inline DeleteThingRequest& WithExpectedVersion(long long value) {
71 SetExpectedVersion(value);
72 return *this;
73 }
75 private:
76 Aws::String m_thingName;
77
78 long long m_expectedVersion{0};
79 bool m_thingNameHasBeenSet = false;
80 bool m_expectedVersionHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace IoT
85} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
void SetThingName(ThingNameT &&value)
DeleteThingRequest & WithThingName(ThingNameT &&value)
DeleteThingRequest & WithExpectedVersion(long long value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API DeleteThingRequest()=default
const Aws::String & GetThingName() const
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String