AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
41 inline const Aws::String& GetClientId() const { return m_clientId; }
42 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
43 template <typename ClientIdT = Aws::String>
44 void SetClientId(ClientIdT&& value) {
45 m_clientIdHasBeenSet = true;
46 m_clientId = std::forward<ClientIdT>(value);
47 }
48 template <typename ClientIdT = Aws::String>
50 SetClientId(std::forward<ClientIdT>(value));
51 return *this;
52 }
54
56
63 inline bool GetCleanSession() const { return m_cleanSession; }
64 inline bool CleanSessionHasBeenSet() const { return m_cleanSessionHasBeenSet; }
65 inline void SetCleanSession(bool value) {
66 m_cleanSessionHasBeenSet = true;
67 m_cleanSession = value;
68 }
70 SetCleanSession(value);
71 return *this;
72 }
74
76
83 inline bool GetPreventWillMessage() const { return m_preventWillMessage; }
84 inline bool PreventWillMessageHasBeenSet() const { return m_preventWillMessageHasBeenSet; }
85 inline void SetPreventWillMessage(bool value) {
86 m_preventWillMessageHasBeenSet = true;
87 m_preventWillMessage = value;
88 }
91 return *this;
92 }
94 private:
95 Aws::String m_clientId;
96
97 bool m_cleanSession{false};
98
99 bool m_preventWillMessage{false};
100 bool m_clientIdHasBeenSet = false;
101 bool m_cleanSessionHasBeenSet = false;
102 bool m_preventWillMessageHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace IoTDataPlane
107} // 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