AWS SDK for C++  1.9.71
AWS SDK for C++
DeleteCustomerGatewayRequest.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 "DeleteCustomerGateway"; }
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& GetCustomerGatewayId() const{ return m_customerGatewayId; }
47 
51  inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
52 
56  inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
57 
61  inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
62 
66  inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
67 
71  inline DeleteCustomerGatewayRequest& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;}
72 
76  inline DeleteCustomerGatewayRequest& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
77 
81  inline DeleteCustomerGatewayRequest& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(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 DeleteCustomerGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
115 
116  private:
117 
118  Aws::String m_customerGatewayId;
119  bool m_customerGatewayIdHasBeenSet;
120 
121  bool m_dryRun;
122  bool m_dryRunHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace EC2
127 } // namespace Aws
Aws::EC2::Model::DeleteCustomerGatewayRequest::SetCustomerGatewayId
void SetCustomerGatewayId(Aws::String &&value)
Definition: DeleteCustomerGatewayRequest.h:61
Aws::EC2::Model::DeleteCustomerGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteCustomerGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteCustomerGatewayRequest.h:34
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteCustomerGatewayRequest::WithCustomerGatewayId
DeleteCustomerGatewayRequest & WithCustomerGatewayId(Aws::String &&value)
Definition: DeleteCustomerGatewayRequest.h:76
Aws::EC2::Model::DeleteCustomerGatewayRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteCustomerGatewayRequest::WithCustomerGatewayId
DeleteCustomerGatewayRequest & WithCustomerGatewayId(const char *value)
Definition: DeleteCustomerGatewayRequest.h:81
Aws::EC2::Model::DeleteCustomerGatewayRequest::GetCustomerGatewayId
const Aws::String & GetCustomerGatewayId() const
Definition: DeleteCustomerGatewayRequest.h:46
Aws::EC2::Model::DeleteCustomerGatewayRequest::SetCustomerGatewayId
void SetCustomerGatewayId(const Aws::String &value)
Definition: DeleteCustomerGatewayRequest.h:56
EC2Request.h
AWSString.h
Aws::EC2::Model::DeleteCustomerGatewayRequest::DeleteCustomerGatewayRequest
DeleteCustomerGatewayRequest()
Aws::EC2::Model::DeleteCustomerGatewayRequest
Definition: DeleteCustomerGatewayRequest.h:26
Aws::EC2::Model::DeleteCustomerGatewayRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteCustomerGatewayRequest.h:90
Aws::EC2::Model::DeleteCustomerGatewayRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteCustomerGatewayRequest.h:106
Aws::EC2::Model::DeleteCustomerGatewayRequest::WithDryRun
DeleteCustomerGatewayRequest & WithDryRun(bool value)
Definition: DeleteCustomerGatewayRequest.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteCustomerGatewayRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteCustomerGatewayRequest.h:98
Aws::EC2::Model::DeleteCustomerGatewayRequest::SetCustomerGatewayId
void SetCustomerGatewayId(const char *value)
Definition: DeleteCustomerGatewayRequest.h:66
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::DeleteCustomerGatewayRequest::WithCustomerGatewayId
DeleteCustomerGatewayRequest & WithCustomerGatewayId(const Aws::String &value)
Definition: DeleteCustomerGatewayRequest.h:71
Aws::EC2::Model::DeleteCustomerGatewayRequest::CustomerGatewayIdHasBeenSet
bool CustomerGatewayIdHasBeenSet() const
Definition: DeleteCustomerGatewayRequest.h:51
EC2_EXPORTS.h