AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
DeleteConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot-data/IoTDataPlaneRequest.h>
9#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoTDataPlane {
18namespace Model {
19
23 public:
24 AWS_IOTDATAPLANE_API DeleteConnectionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteConnection"; }
31
32 AWS_IOTDATAPLANE_API Aws::String SerializePayload() const override;
33
34 AWS_IOTDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
43 inline const Aws::String& GetClientId() const { return m_clientId; }
44 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
45 template <typename ClientIdT = Aws::String>
46 void SetClientId(ClientIdT&& value) {
47 m_clientIdHasBeenSet = true;
48 m_clientId = std::forward<ClientIdT>(value);
49 }
50 template <typename ClientIdT = Aws::String>
52 SetClientId(std::forward<ClientIdT>(value));
53 return *this;
54 }
56
58
67 inline bool GetCleanSession() const { return m_cleanSession; }
68 inline bool CleanSessionHasBeenSet() const { return m_cleanSessionHasBeenSet; }
69 inline void SetCleanSession(bool value) {
70 m_cleanSessionHasBeenSet = true;
71 m_cleanSession = value;
72 }
74 SetCleanSession(value);
75 return *this;
76 }
78
80
87 inline bool GetPreventWillMessage() const { return m_preventWillMessage; }
88 inline bool PreventWillMessageHasBeenSet() const { return m_preventWillMessageHasBeenSet; }
89 inline void SetPreventWillMessage(bool value) {
90 m_preventWillMessageHasBeenSet = true;
91 m_preventWillMessage = value;
92 }
95 return *this;
96 }
98 private:
99 Aws::String m_clientId;
100
101 bool m_cleanSession{false};
102
103 bool m_preventWillMessage{false};
104 bool m_clientIdHasBeenSet = false;
105 bool m_cleanSessionHasBeenSet = false;
106 bool m_preventWillMessageHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace IoTDataPlane
111} // namespace Aws
DeleteConnectionRequest & WithCleanSession(bool value)
DeleteConnectionRequest & WithClientId(ClientIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOTDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_IOTDATAPLANE_API Aws::String SerializePayload() const override
DeleteConnectionRequest & WithPreventWillMessage(bool value)
AWS_IOTDATAPLANE_API DeleteConnectionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String