AWS SDK for C++  1.9.15
AWS SDK for C++
CreateCustomerGatewayRequest.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>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateCustomerGateway"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
50  inline int GetBgpAsn() const{ return m_bgpAsn; }
51 
56  inline bool BgpAsnHasBeenSet() const { return m_bgpAsnHasBeenSet; }
57 
62  inline void SetBgpAsn(int value) { m_bgpAsnHasBeenSet = true; m_bgpAsn = value; }
63 
68  inline CreateCustomerGatewayRequest& WithBgpAsn(int value) { SetBgpAsn(value); return *this;}
69 
70 
75  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
76 
81  inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
82 
87  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
88 
93  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
94 
99  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
100 
105  inline CreateCustomerGatewayRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
106 
111  inline CreateCustomerGatewayRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
112 
117  inline CreateCustomerGatewayRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
118 
119 
123  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
124 
128  inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
129 
133  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
134 
138  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
139 
143  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
144 
148  inline CreateCustomerGatewayRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
149 
153  inline CreateCustomerGatewayRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
154 
158  inline CreateCustomerGatewayRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
159 
160 
165  inline const GatewayType& GetType() const{ return m_type; }
166 
171  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
172 
177  inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
178 
183  inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
184 
189  inline CreateCustomerGatewayRequest& WithType(const GatewayType& value) { SetType(value); return *this;}
190 
195  inline CreateCustomerGatewayRequest& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;}
196 
197 
201  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
202 
206  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
207 
211  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
212 
216  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
217 
221  inline CreateCustomerGatewayRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
222 
226  inline CreateCustomerGatewayRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
227 
231  inline CreateCustomerGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
232 
236  inline CreateCustomerGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
237 
238 
243  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
244 
249  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
250 
255  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
256 
261  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
262 
267  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
268 
273  inline CreateCustomerGatewayRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
274 
279  inline CreateCustomerGatewayRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
280 
285  inline CreateCustomerGatewayRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
286 
287 
294  inline bool GetDryRun() const{ return m_dryRun; }
295 
302  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
303 
310  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
311 
318  inline CreateCustomerGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
319 
320  private:
321 
322  int m_bgpAsn;
323  bool m_bgpAsnHasBeenSet;
324 
325  Aws::String m_publicIp;
326  bool m_publicIpHasBeenSet;
327 
328  Aws::String m_certificateArn;
329  bool m_certificateArnHasBeenSet;
330 
331  GatewayType m_type;
332  bool m_typeHasBeenSet;
333 
334  Aws::Vector<TagSpecification> m_tagSpecifications;
335  bool m_tagSpecificationsHasBeenSet;
336 
337  Aws::String m_deviceName;
338  bool m_deviceNameHasBeenSet;
339 
340  bool m_dryRun;
341  bool m_dryRunHasBeenSet;
342  };
343 
344 } // namespace Model
345 } // namespace EC2
346 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateCustomerGatewayRequest::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: CreateCustomerGatewayRequest.h:249
Aws::EC2::Model::CreateCustomerGatewayRequest::SetCertificateArn
void SetCertificateArn(const Aws::String &value)
Definition: CreateCustomerGatewayRequest.h:133
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GatewayType
GatewayType
Definition: GatewayType.h:17
Aws::EC2::Model::CreateCustomerGatewayRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateCustomerGatewayRequest.h:201
Aws::EC2::Model::CreateCustomerGatewayRequest::SetPublicIp
void SetPublicIp(const char *value)
Definition: CreateCustomerGatewayRequest.h:99
Aws::EC2::Model::CreateCustomerGatewayRequest
Definition: CreateCustomerGatewayRequest.h:29
Aws::EC2::Model::CreateCustomerGatewayRequest::SetPublicIp
void SetPublicIp(Aws::String &&value)
Definition: CreateCustomerGatewayRequest.h:93
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateCustomerGatewayRequest::WithDeviceName
CreateCustomerGatewayRequest & WithDeviceName(const char *value)
Definition: CreateCustomerGatewayRequest.h:285
Aws::EC2::Model::CreateCustomerGatewayRequest::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: CreateCustomerGatewayRequest.h:255
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::CreateCustomerGatewayRequest::WithCertificateArn
CreateCustomerGatewayRequest & WithCertificateArn(const char *value)
Definition: CreateCustomerGatewayRequest.h:158
Aws::EC2::Model::CreateCustomerGatewayRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateCustomerGatewayRequest.h:171
Aws::EC2::Model::CreateCustomerGatewayRequest::BgpAsnHasBeenSet
bool BgpAsnHasBeenSet() const
Definition: CreateCustomerGatewayRequest.h:56
Aws::EC2::Model::CreateCustomerGatewayRequest::SetBgpAsn
void SetBgpAsn(int value)
Definition: CreateCustomerGatewayRequest.h:62
Aws::EC2::Model::CreateCustomerGatewayRequest::AddTagSpecifications
CreateCustomerGatewayRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateCustomerGatewayRequest.h:231
Aws::EC2::Model::CreateCustomerGatewayRequest::AddTagSpecifications
CreateCustomerGatewayRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateCustomerGatewayRequest.h:236
Aws::EC2::Model::CreateCustomerGatewayRequest::SetDeviceName
void SetDeviceName(const char *value)
Definition: CreateCustomerGatewayRequest.h:267
Aws::EC2::Model::CreateCustomerGatewayRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateCustomerGatewayRequest.h:216
Aws::EC2::Model::CreateCustomerGatewayRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateCustomerGatewayRequest.h:310
Aws::EC2::Model::CreateCustomerGatewayRequest::WithPublicIp
CreateCustomerGatewayRequest & WithPublicIp(Aws::String &&value)
Definition: CreateCustomerGatewayRequest.h:111
Aws::EC2::Model::CreateCustomerGatewayRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateCustomerGatewayRequest::CreateCustomerGatewayRequest
CreateCustomerGatewayRequest()
EC2Request.h
Aws::EC2::Model::CreateCustomerGatewayRequest::GetType
const GatewayType & GetType() const
Definition: CreateCustomerGatewayRequest.h:165
Aws::EC2::Model::CreateCustomerGatewayRequest::SetCertificateArn
void SetCertificateArn(Aws::String &&value)
Definition: CreateCustomerGatewayRequest.h:138
AWSString.h
Aws::EC2::Model::CreateCustomerGatewayRequest::GetDryRun
bool GetDryRun() const
Definition: CreateCustomerGatewayRequest.h:294
Aws::EC2::Model::CreateCustomerGatewayRequest::WithPublicIp
CreateCustomerGatewayRequest & WithPublicIp(const Aws::String &value)
Definition: CreateCustomerGatewayRequest.h:105
Aws::EC2::Model::CreateCustomerGatewayRequest::SetPublicIp
void SetPublicIp(const Aws::String &value)
Definition: CreateCustomerGatewayRequest.h:87
Aws::EC2::Model::CreateCustomerGatewayRequest::WithPublicIp
CreateCustomerGatewayRequest & WithPublicIp(const char *value)
Definition: CreateCustomerGatewayRequest.h:117
Aws::EC2::Model::CreateCustomerGatewayRequest::WithTagSpecifications
CreateCustomerGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateCustomerGatewayRequest.h:221
Aws::EC2::Model::CreateCustomerGatewayRequest::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: CreateCustomerGatewayRequest.h:261
Aws::EC2::Model::CreateCustomerGatewayRequest::SetType
void SetType(const GatewayType &value)
Definition: CreateCustomerGatewayRequest.h:177
Aws::EC2::Model::CreateCustomerGatewayRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateCustomerGatewayRequest.h:302
Aws::EC2::Model::CreateCustomerGatewayRequest::WithCertificateArn
CreateCustomerGatewayRequest & WithCertificateArn(const Aws::String &value)
Definition: CreateCustomerGatewayRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateCustomerGatewayRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateCustomerGatewayRequest.h:211
Aws::EC2::Model::CreateCustomerGatewayRequest::WithDeviceName
CreateCustomerGatewayRequest & WithDeviceName(Aws::String &&value)
Definition: CreateCustomerGatewayRequest.h:279
GatewayType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateCustomerGatewayRequest::WithType
CreateCustomerGatewayRequest & WithType(GatewayType &&value)
Definition: CreateCustomerGatewayRequest.h:195
Aws::EC2::Model::CreateCustomerGatewayRequest::GetPublicIp
const Aws::String & GetPublicIp() const
Definition: CreateCustomerGatewayRequest.h:75
Aws::EC2::Model::CreateCustomerGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCustomerGatewayRequest.h:37
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateCustomerGatewayRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateCustomerGatewayRequest.h:206
Aws::EC2::Model::CreateCustomerGatewayRequest::WithDryRun
CreateCustomerGatewayRequest & WithDryRun(bool value)
Definition: CreateCustomerGatewayRequest.h:318
Aws::EC2::Model::CreateCustomerGatewayRequest::WithType
CreateCustomerGatewayRequest & WithType(const GatewayType &value)
Definition: CreateCustomerGatewayRequest.h:189
Aws::EC2::Model::CreateCustomerGatewayRequest::WithBgpAsn
CreateCustomerGatewayRequest & WithBgpAsn(int value)
Definition: CreateCustomerGatewayRequest.h:68
Aws::EC2::Model::CreateCustomerGatewayRequest::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: CreateCustomerGatewayRequest.h:243
Aws::EC2::Model::CreateCustomerGatewayRequest::WithDeviceName
CreateCustomerGatewayRequest & WithDeviceName(const Aws::String &value)
Definition: CreateCustomerGatewayRequest.h:273
Aws::EC2::Model::CreateCustomerGatewayRequest::WithCertificateArn
CreateCustomerGatewayRequest & WithCertificateArn(Aws::String &&value)
Definition: CreateCustomerGatewayRequest.h:153
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateCustomerGatewayRequest::CertificateArnHasBeenSet
bool CertificateArnHasBeenSet() const
Definition: CreateCustomerGatewayRequest.h:128
Aws::EC2::Model::CreateCustomerGatewayRequest::GetCertificateArn
const Aws::String & GetCertificateArn() const
Definition: CreateCustomerGatewayRequest.h:123
EC2_EXPORTS.h
Aws::EC2::Model::CreateCustomerGatewayRequest::PublicIpHasBeenSet
bool PublicIpHasBeenSet() const
Definition: CreateCustomerGatewayRequest.h:81
Aws::EC2::Model::CreateCustomerGatewayRequest::GetBgpAsn
int GetBgpAsn() const
Definition: CreateCustomerGatewayRequest.h:50
Aws::EC2::Model::CreateCustomerGatewayRequest::WithTagSpecifications
CreateCustomerGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateCustomerGatewayRequest.h:226
Aws::EC2::Model::CreateCustomerGatewayRequest::SetType
void SetType(GatewayType &&value)
Definition: CreateCustomerGatewayRequest.h:183
Aws::EC2::Model::CreateCustomerGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateCustomerGatewayRequest::SetCertificateArn
void SetCertificateArn(const char *value)
Definition: CreateCustomerGatewayRequest.h:143