AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TerminateClientVpnConnectionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API TerminateClientVpnConnectionsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "TerminateClientVpnConnections"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
40 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
41 template <typename ClientVpnEndpointIdT = Aws::String>
42 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
43 m_clientVpnEndpointIdHasBeenSet = true;
44 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
45 }
46 template <typename ClientVpnEndpointIdT = Aws::String>
48 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
58 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
59 template <typename ConnectionIdT = Aws::String>
60 void SetConnectionId(ConnectionIdT&& value) {
61 m_connectionIdHasBeenSet = true;
62 m_connectionId = std::forward<ConnectionIdT>(value);
63 }
64 template <typename ConnectionIdT = Aws::String>
66 SetConnectionId(std::forward<ConnectionIdT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetUsername() const { return m_username; }
78 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
79 template <typename UsernameT = Aws::String>
80 void SetUsername(UsernameT&& value) {
81 m_usernameHasBeenSet = true;
82 m_username = std::forward<UsernameT>(value);
83 }
84 template <typename UsernameT = Aws::String>
86 SetUsername(std::forward<UsernameT>(value));
87 return *this;
88 }
90
92
98 inline bool GetDryRun() const { return m_dryRun; }
99 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
100 inline void SetDryRun(bool value) {
101 m_dryRunHasBeenSet = true;
102 m_dryRun = value;
103 }
105 SetDryRun(value);
106 return *this;
107 }
109 private:
110 Aws::String m_clientVpnEndpointId;
111
112 Aws::String m_connectionId;
113
114 Aws::String m_username;
115
116 bool m_dryRun{false};
117 bool m_clientVpnEndpointIdHasBeenSet = false;
118 bool m_connectionIdHasBeenSet = false;
119 bool m_usernameHasBeenSet = false;
120 bool m_dryRunHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace EC2
125} // namespace Aws
TerminateClientVpnConnectionsRequest & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
TerminateClientVpnConnectionsRequest & WithDryRun(bool value)
TerminateClientVpnConnectionsRequest & WithUsername(UsernameT &&value)
TerminateClientVpnConnectionsRequest & WithConnectionId(ConnectionIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String