AWS SDK for C++  1.9.15
AWS SDK for C++
TerminateClientVpnConnectionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace 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::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
43 
47  inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
48 
52  inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
53 
57  inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
58 
62  inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
63 
67  inline TerminateClientVpnConnectionsRequest& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
68 
72  inline TerminateClientVpnConnectionsRequest& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
73 
77  inline TerminateClientVpnConnectionsRequest& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
78 
79 
83  inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
84 
88  inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
89 
93  inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
94 
98  inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); }
99 
103  inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
104 
108  inline TerminateClientVpnConnectionsRequest& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
109 
113  inline TerminateClientVpnConnectionsRequest& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;}
114 
118  inline TerminateClientVpnConnectionsRequest& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
119 
120 
126  inline const Aws::String& GetUsername() const{ return m_username; }
127 
133  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
134 
140  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
141 
147  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
148 
154  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
155 
161  inline TerminateClientVpnConnectionsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
162 
168  inline TerminateClientVpnConnectionsRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
169 
175  inline TerminateClientVpnConnectionsRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
176 
177 
184  inline bool GetDryRun() const{ return m_dryRun; }
185 
192  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
193 
200  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
201 
208  inline TerminateClientVpnConnectionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
209 
210  private:
211 
212  Aws::String m_clientVpnEndpointId;
213  bool m_clientVpnEndpointIdHasBeenSet;
214 
215  Aws::String m_connectionId;
216  bool m_connectionIdHasBeenSet;
217 
218  Aws::String m_username;
219  bool m_usernameHasBeenSet;
220 
221  bool m_dryRun;
222  bool m_dryRunHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace EC2
227 } // namespace Aws
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::ClientVpnEndpointIdHasBeenSet
bool ClientVpnEndpointIdHasBeenSet() const
Definition: TerminateClientVpnConnectionsRequest.h:47
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::GetClientVpnEndpointId
const Aws::String & GetClientVpnEndpointId() const
Definition: TerminateClientVpnConnectionsRequest.h:42
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::GetUsername
const Aws::String & GetUsername() const
Definition: TerminateClientVpnConnectionsRequest.h:126
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: TerminateClientVpnConnectionsRequest.h:192
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: TerminateClientVpnConnectionsRequest.h:200
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithClientVpnEndpointId
TerminateClientVpnConnectionsRequest & WithClientVpnEndpointId(const Aws::String &value)
Definition: TerminateClientVpnConnectionsRequest.h:67
Aws::EC2::Model::TerminateClientVpnConnectionsRequest
Definition: TerminateClientVpnConnectionsRequest.h:22
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetUsername
void SetUsername(const Aws::String &value)
Definition: TerminateClientVpnConnectionsRequest.h:140
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(const Aws::String &value)
Definition: TerminateClientVpnConnectionsRequest.h:52
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetConnectionId
void SetConnectionId(const Aws::String &value)
Definition: TerminateClientVpnConnectionsRequest.h:93
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithConnectionId
TerminateClientVpnConnectionsRequest & WithConnectionId(const char *value)
Definition: TerminateClientVpnConnectionsRequest.h:118
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::TerminateClientVpnConnectionsRequest
TerminateClientVpnConnectionsRequest()
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithConnectionId
TerminateClientVpnConnectionsRequest & WithConnectionId(const Aws::String &value)
Definition: TerminateClientVpnConnectionsRequest.h:108
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetUsername
void SetUsername(const char *value)
Definition: TerminateClientVpnConnectionsRequest.h:154
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithClientVpnEndpointId
TerminateClientVpnConnectionsRequest & WithClientVpnEndpointId(Aws::String &&value)
Definition: TerminateClientVpnConnectionsRequest.h:72
EC2Request.h
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(Aws::String &&value)
Definition: TerminateClientVpnConnectionsRequest.h:57
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetUsername
void SetUsername(Aws::String &&value)
Definition: TerminateClientVpnConnectionsRequest.h:147
AWSString.h
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithDryRun
TerminateClientVpnConnectionsRequest & WithDryRun(bool value)
Definition: TerminateClientVpnConnectionsRequest.h:208
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithUsername
TerminateClientVpnConnectionsRequest & WithUsername(const Aws::String &value)
Definition: TerminateClientVpnConnectionsRequest.h:161
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TerminateClientVpnConnectionsRequest.h:30
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(const char *value)
Definition: TerminateClientVpnConnectionsRequest.h:62
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithClientVpnEndpointId
TerminateClientVpnConnectionsRequest & WithClientVpnEndpointId(const char *value)
Definition: TerminateClientVpnConnectionsRequest.h:77
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithUsername
TerminateClientVpnConnectionsRequest & WithUsername(const char *value)
Definition: TerminateClientVpnConnectionsRequest.h:175
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetConnectionId
void SetConnectionId(const char *value)
Definition: TerminateClientVpnConnectionsRequest.h:103
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::SetConnectionId
void SetConnectionId(Aws::String &&value)
Definition: TerminateClientVpnConnectionsRequest.h:98
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::GetConnectionId
const Aws::String & GetConnectionId() const
Definition: TerminateClientVpnConnectionsRequest.h:83
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithUsername
TerminateClientVpnConnectionsRequest & WithUsername(Aws::String &&value)
Definition: TerminateClientVpnConnectionsRequest.h:168
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::GetDryRun
bool GetDryRun() const
Definition: TerminateClientVpnConnectionsRequest.h:184
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: TerminateClientVpnConnectionsRequest.h:133
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::WithConnectionId
TerminateClientVpnConnectionsRequest & WithConnectionId(Aws::String &&value)
Definition: TerminateClientVpnConnectionsRequest.h:113
Aws::EC2::Model::TerminateClientVpnConnectionsRequest::ConnectionIdHasBeenSet
bool ConnectionIdHasBeenSet() const
Definition: TerminateClientVpnConnectionsRequest.h:88