AWS SDK for C++  1.8.56
AWS SDK for C++
AttachInternetGatewayRequest.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 "AttachInternetGateway"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline AttachInternetGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
75  inline const Aws::String& GetInternetGatewayId() const{ return m_internetGatewayId; }
76 
80  inline bool InternetGatewayIdHasBeenSet() const { return m_internetGatewayIdHasBeenSet; }
81 
85  inline void SetInternetGatewayId(const Aws::String& value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId = value; }
86 
90  inline void SetInternetGatewayId(Aws::String&& value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId = std::move(value); }
91 
95  inline void SetInternetGatewayId(const char* value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId.assign(value); }
96 
100  inline AttachInternetGatewayRequest& WithInternetGatewayId(const Aws::String& value) { SetInternetGatewayId(value); return *this;}
101 
105  inline AttachInternetGatewayRequest& WithInternetGatewayId(Aws::String&& value) { SetInternetGatewayId(std::move(value)); return *this;}
106 
110  inline AttachInternetGatewayRequest& WithInternetGatewayId(const char* value) { SetInternetGatewayId(value); return *this;}
111 
112 
116  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
117 
121  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
122 
126  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
127 
131  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
132 
136  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
137 
141  inline AttachInternetGatewayRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
142 
146  inline AttachInternetGatewayRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
147 
151  inline AttachInternetGatewayRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
152 
153  private:
154 
155  bool m_dryRun;
156  bool m_dryRunHasBeenSet;
157 
158  Aws::String m_internetGatewayId;
159  bool m_internetGatewayIdHasBeenSet;
160 
161  Aws::String m_vpcId;
162  bool m_vpcIdHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace EC2
167 } // namespace Aws
AttachInternetGatewayRequest & WithVpcId(const char *value)
AttachInternetGatewayRequest & WithInternetGatewayId(const char *value)
AttachInternetGatewayRequest & WithVpcId(Aws::String &&value)
AttachInternetGatewayRequest & WithInternetGatewayId(Aws::String &&value)
AttachInternetGatewayRequest & WithDryRun(bool value)
AttachInternetGatewayRequest & WithVpcId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AttachInternetGatewayRequest & WithInternetGatewayId(const Aws::String &value)