AWS SDK for C++  1.9.74
AWS SDK for C++
DeleteVpnConnectionRequest.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 
26  {
27  public:
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 "DeleteVpnConnection"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; }
47 
51  inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
52 
56  inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; }
57 
61  inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); }
62 
66  inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); }
67 
71  inline DeleteVpnConnectionRequest& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;}
72 
76  inline DeleteVpnConnectionRequest& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;}
77 
81  inline DeleteVpnConnectionRequest& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;}
82 
83 
90  inline bool GetDryRun() const{ return m_dryRun; }
91 
98  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
99 
106  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
107 
114  inline DeleteVpnConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
115 
116  private:
117 
118  Aws::String m_vpnConnectionId;
119  bool m_vpnConnectionIdHasBeenSet;
120 
121  bool m_dryRun;
122  bool m_dryRunHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace EC2
127 } // namespace Aws
Aws::EC2::Model::DeleteVpnConnectionRequest::SetVpnConnectionId
void SetVpnConnectionId(const char *value)
Definition: DeleteVpnConnectionRequest.h:66
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteVpnConnectionRequest::WithVpnConnectionId
DeleteVpnConnectionRequest & WithVpnConnectionId(const char *value)
Definition: DeleteVpnConnectionRequest.h:81
Aws::EC2::Model::DeleteVpnConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteVpnConnectionRequest.h:34
Aws::EC2::Model::DeleteVpnConnectionRequest::WithDryRun
DeleteVpnConnectionRequest & WithDryRun(bool value)
Definition: DeleteVpnConnectionRequest.h:114
Aws::EC2::Model::DeleteVpnConnectionRequest::WithVpnConnectionId
DeleteVpnConnectionRequest & WithVpnConnectionId(const Aws::String &value)
Definition: DeleteVpnConnectionRequest.h:71
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteVpnConnectionRequest::WithVpnConnectionId
DeleteVpnConnectionRequest & WithVpnConnectionId(Aws::String &&value)
Definition: DeleteVpnConnectionRequest.h:76
Aws::EC2::Model::DeleteVpnConnectionRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteVpnConnectionRequest.h:106
Aws::EC2::Model::DeleteVpnConnectionRequest::SetVpnConnectionId
void SetVpnConnectionId(Aws::String &&value)
Definition: DeleteVpnConnectionRequest.h:61
Aws::EC2::Model::DeleteVpnConnectionRequest
Definition: DeleteVpnConnectionRequest.h:26
Aws::EC2::Model::DeleteVpnConnectionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteVpnConnectionRequest::SetVpnConnectionId
void SetVpnConnectionId(const Aws::String &value)
Definition: DeleteVpnConnectionRequest.h:56
EC2Request.h
Aws::EC2::Model::DeleteVpnConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteVpnConnectionRequest::GetVpnConnectionId
const Aws::String & GetVpnConnectionId() const
Definition: DeleteVpnConnectionRequest.h:46
AWSString.h
Aws::EC2::Model::DeleteVpnConnectionRequest::DeleteVpnConnectionRequest
DeleteVpnConnectionRequest()
Aws::EC2::Model::DeleteVpnConnectionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteVpnConnectionRequest.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteVpnConnectionRequest::VpnConnectionIdHasBeenSet
bool VpnConnectionIdHasBeenSet() const
Definition: DeleteVpnConnectionRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DeleteVpnConnectionRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteVpnConnectionRequest.h:90
EC2_EXPORTS.h