AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TerminateClientVpnConnectionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
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 "TerminateClientVpnConnections"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
44 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
45 inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
46 inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
47 inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
52
54
57 inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
58 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
59 inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
60 inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); }
61 inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
63 inline TerminateClientVpnConnectionsRequest& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;}
64 inline TerminateClientVpnConnectionsRequest& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
66
68
73 inline const Aws::String& GetUsername() const{ return m_username; }
74 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
75 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
76 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
77 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
78 inline TerminateClientVpnConnectionsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
79 inline TerminateClientVpnConnectionsRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
80 inline TerminateClientVpnConnectionsRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
82
84
90 inline bool GetDryRun() const{ return m_dryRun; }
91 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
92 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
93 inline TerminateClientVpnConnectionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
95 private:
96
97 Aws::String m_clientVpnEndpointId;
98 bool m_clientVpnEndpointIdHasBeenSet = false;
99
100 Aws::String m_connectionId;
101 bool m_connectionIdHasBeenSet = false;
102
103 Aws::String m_username;
104 bool m_usernameHasBeenSet = false;
105
106 bool m_dryRun;
107 bool m_dryRunHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace EC2
112} // namespace Aws
TerminateClientVpnConnectionsRequest & WithClientVpnEndpointId(const Aws::String &value)
TerminateClientVpnConnectionsRequest & WithClientVpnEndpointId(const char *value)
TerminateClientVpnConnectionsRequest & WithDryRun(bool value)
TerminateClientVpnConnectionsRequest & WithConnectionId(Aws::String &&value)
TerminateClientVpnConnectionsRequest & WithUsername(Aws::String &&value)
TerminateClientVpnConnectionsRequest & WithClientVpnEndpointId(Aws::String &&value)
TerminateClientVpnConnectionsRequest & WithConnectionId(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
TerminateClientVpnConnectionsRequest & WithUsername(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
TerminateClientVpnConnectionsRequest & WithUsername(const Aws::String &value)
TerminateClientVpnConnectionsRequest & WithConnectionId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String