AWS SDK for C++  1.9.75
AWS SDK for C++
DeleteVpnGatewayRequest.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 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "DeleteVpnGateway"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
46 
50  inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
51 
55  inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
56 
60  inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); }
61 
65  inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
66 
70  inline DeleteVpnGatewayRequest& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
71 
75  inline DeleteVpnGatewayRequest& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;}
76 
80  inline DeleteVpnGatewayRequest& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
81 
82 
89  inline bool GetDryRun() const{ return m_dryRun; }
90 
97  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
98 
105  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
106 
113  inline DeleteVpnGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
114 
115  private:
116 
117  Aws::String m_vpnGatewayId;
118  bool m_vpnGatewayIdHasBeenSet;
119 
120  bool m_dryRun;
121  bool m_dryRunHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteVpnGatewayRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteVpnGatewayRequest.h:105
Aws::EC2::Model::DeleteVpnGatewayRequest::WithVpnGatewayId
DeleteVpnGatewayRequest & WithVpnGatewayId(Aws::String &&value)
Definition: DeleteVpnGatewayRequest.h:75
Aws::EC2::Model::DeleteVpnGatewayRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteVpnGatewayRequest::SetVpnGatewayId
void SetVpnGatewayId(const char *value)
Definition: DeleteVpnGatewayRequest.h:65
Aws::EC2::Model::DeleteVpnGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteVpnGatewayRequest::SetVpnGatewayId
void SetVpnGatewayId(Aws::String &&value)
Definition: DeleteVpnGatewayRequest.h:60
Aws::EC2::Model::DeleteVpnGatewayRequest::GetVpnGatewayId
const Aws::String & GetVpnGatewayId() const
Definition: DeleteVpnGatewayRequest.h:45
Aws::EC2::Model::DeleteVpnGatewayRequest::WithVpnGatewayId
DeleteVpnGatewayRequest & WithVpnGatewayId(const Aws::String &value)
Definition: DeleteVpnGatewayRequest.h:70
Aws::EC2::Model::DeleteVpnGatewayRequest::SetVpnGatewayId
void SetVpnGatewayId(const Aws::String &value)
Definition: DeleteVpnGatewayRequest.h:55
Aws::EC2::Model::DeleteVpnGatewayRequest
Definition: DeleteVpnGatewayRequest.h:25
Aws::EC2::Model::DeleteVpnGatewayRequest::DeleteVpnGatewayRequest
DeleteVpnGatewayRequest()
EC2Request.h
AWSString.h
Aws::EC2::Model::DeleteVpnGatewayRequest::VpnGatewayIdHasBeenSet
bool VpnGatewayIdHasBeenSet() const
Definition: DeleteVpnGatewayRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteVpnGatewayRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteVpnGatewayRequest.h:89
Aws::EC2::Model::DeleteVpnGatewayRequest::WithVpnGatewayId
DeleteVpnGatewayRequest & WithVpnGatewayId(const char *value)
Definition: DeleteVpnGatewayRequest.h:80
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::DeleteVpnGatewayRequest::WithDryRun
DeleteVpnGatewayRequest & WithDryRun(bool value)
Definition: DeleteVpnGatewayRequest.h:113
EC2_EXPORTS.h
Aws::EC2::Model::DeleteVpnGatewayRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteVpnGatewayRequest.h:97
Aws::EC2::Model::DeleteVpnGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteVpnGatewayRequest.h:33