AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
DeleteConnectionRequest.h
1
6#pragma once
7#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
8#include <aws/iot-data/IoTDataPlaneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace IoTDataPlane
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTDATAPLANE_API DeleteConnectionRequest() = default;
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 "DeleteConnection"; }
35
36 AWS_IOTDATAPLANE_API Aws::String SerializePayload() const override;
37
38 AWS_IOTDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
46 inline const Aws::String& GetClientId() const { return m_clientId; }
47 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
48 template<typename ClientIdT = Aws::String>
49 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
50 template<typename ClientIdT = Aws::String>
51 DeleteConnectionRequest& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
53
55
62 inline bool GetCleanSession() const { return m_cleanSession; }
63 inline bool CleanSessionHasBeenSet() const { return m_cleanSessionHasBeenSet; }
64 inline void SetCleanSession(bool value) { m_cleanSessionHasBeenSet = true; m_cleanSession = value; }
65 inline DeleteConnectionRequest& WithCleanSession(bool value) { SetCleanSession(value); return *this;}
67
69
76 inline bool GetPreventWillMessage() const { return m_preventWillMessage; }
77 inline bool PreventWillMessageHasBeenSet() const { return m_preventWillMessageHasBeenSet; }
78 inline void SetPreventWillMessage(bool value) { m_preventWillMessageHasBeenSet = true; m_preventWillMessage = value; }
79 inline DeleteConnectionRequest& WithPreventWillMessage(bool value) { SetPreventWillMessage(value); return *this;}
81 private:
82
83 Aws::String m_clientId;
84 bool m_clientIdHasBeenSet = false;
85
86 bool m_cleanSession{false};
87 bool m_cleanSessionHasBeenSet = false;
88
89 bool m_preventWillMessage{false};
90 bool m_preventWillMessageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace IoTDataPlane
95} // 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