AWS SDK for C++  1.9.70
AWS SDK for C++
CreateVpnGatewayRequest.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 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateVpnGateway"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
49 
53  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
54 
58  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
59 
63  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
64 
68  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
69 
73  inline CreateVpnGatewayRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
74 
78  inline CreateVpnGatewayRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
79 
83  inline CreateVpnGatewayRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
84 
85 
89  inline const GatewayType& GetType() const{ return m_type; }
90 
94  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 
99  inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
100 
104  inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
105 
109  inline CreateVpnGatewayRequest& WithType(const GatewayType& value) { SetType(value); return *this;}
110 
114  inline CreateVpnGatewayRequest& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;}
115 
116 
120  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
121 
125  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
126 
130  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
131 
135  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
136 
140  inline CreateVpnGatewayRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
141 
145  inline CreateVpnGatewayRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
146 
150  inline CreateVpnGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
151 
155  inline CreateVpnGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
156 
157 
164  inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; }
165 
172  inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
173 
180  inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
181 
188  inline CreateVpnGatewayRequest& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
189 
190 
197  inline bool GetDryRun() const{ return m_dryRun; }
198 
205  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
206 
213  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
214 
221  inline CreateVpnGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
222 
223  private:
224 
225  Aws::String m_availabilityZone;
226  bool m_availabilityZoneHasBeenSet;
227 
228  GatewayType m_type;
229  bool m_typeHasBeenSet;
230 
231  Aws::Vector<TagSpecification> m_tagSpecifications;
232  bool m_tagSpecificationsHasBeenSet;
233 
234  long long m_amazonSideAsn;
235  bool m_amazonSideAsnHasBeenSet;
236 
237  bool m_dryRun;
238  bool m_dryRunHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace EC2
243 } // namespace Aws
Aws::EC2::Model::CreateVpnGatewayRequest::SetAmazonSideAsn
void SetAmazonSideAsn(long long value)
Definition: CreateVpnGatewayRequest.h:180
TagSpecification.h
Aws::EC2::Model::CreateVpnGatewayRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateVpnGatewayRequest.h:94
Aws::EC2::Model::CreateVpnGatewayRequest::GetType
const GatewayType & GetType() const
Definition: CreateVpnGatewayRequest.h:89
Aws::EC2::Model::CreateVpnGatewayRequest::GetAmazonSideAsn
long long GetAmazonSideAsn() const
Definition: CreateVpnGatewayRequest.h:164
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GatewayType
GatewayType
Definition: GatewayType.h:17
Aws::EC2::Model::CreateVpnGatewayRequest::WithAvailabilityZone
CreateVpnGatewayRequest & WithAvailabilityZone(const char *value)
Definition: CreateVpnGatewayRequest.h:83
Aws::EC2::Model::CreateVpnGatewayRequest::SetType
void SetType(const GatewayType &value)
Definition: CreateVpnGatewayRequest.h:99
Aws::EC2::Model::CreateVpnGatewayRequest::WithTagSpecifications
CreateVpnGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateVpnGatewayRequest.h:140
Aws::EC2::Model::CreateVpnGatewayRequest::WithDryRun
CreateVpnGatewayRequest & WithDryRun(bool value)
Definition: CreateVpnGatewayRequest.h:221
Aws::EC2::Model::CreateVpnGatewayRequest::WithAvailabilityZone
CreateVpnGatewayRequest & WithAvailabilityZone(const Aws::String &value)
Definition: CreateVpnGatewayRequest.h:73
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateVpnGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVpnGatewayRequest.h:36
Aws::EC2::Model::CreateVpnGatewayRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateVpnGatewayRequest.h:125
Aws::EC2::Model::CreateVpnGatewayRequest::WithAmazonSideAsn
CreateVpnGatewayRequest & WithAmazonSideAsn(long long value)
Definition: CreateVpnGatewayRequest.h:188
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::CreateVpnGatewayRequest
Definition: CreateVpnGatewayRequest.h:28
Aws::EC2::Model::CreateVpnGatewayRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateVpnGatewayRequest.h:120
Aws::EC2::Model::CreateVpnGatewayRequest::GetDryRun
bool GetDryRun() const
Definition: CreateVpnGatewayRequest.h:197
Aws::EC2::Model::CreateVpnGatewayRequest::AmazonSideAsnHasBeenSet
bool AmazonSideAsnHasBeenSet() const
Definition: CreateVpnGatewayRequest.h:172
Aws::EC2::Model::CreateVpnGatewayRequest::AddTagSpecifications
CreateVpnGatewayRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateVpnGatewayRequest.h:150
Aws::EC2::Model::CreateVpnGatewayRequest::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: CreateVpnGatewayRequest.h:48
EC2Request.h
Aws::EC2::Model::CreateVpnGatewayRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateVpnGatewayRequest.h:213
AWSString.h
Aws::EC2::Model::CreateVpnGatewayRequest::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: CreateVpnGatewayRequest.h:53
Aws::EC2::Model::CreateVpnGatewayRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateVpnGatewayRequest.h:135
Aws::EC2::Model::CreateVpnGatewayRequest::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: CreateVpnGatewayRequest.h:68
Aws::EC2::Model::CreateVpnGatewayRequest::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: CreateVpnGatewayRequest.h:63
Aws::EC2::Model::CreateVpnGatewayRequest::WithType
CreateVpnGatewayRequest & WithType(const GatewayType &value)
Definition: CreateVpnGatewayRequest.h:109
Aws::EC2::Model::CreateVpnGatewayRequest::WithTagSpecifications
CreateVpnGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateVpnGatewayRequest.h:145
Aws::EC2::Model::CreateVpnGatewayRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateVpnGatewayRequest::SetType
void SetType(GatewayType &&value)
Definition: CreateVpnGatewayRequest.h:104
Aws::EC2::Model::CreateVpnGatewayRequest::CreateVpnGatewayRequest
CreateVpnGatewayRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateVpnGatewayRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateVpnGatewayRequest.h:205
Aws::EC2::Model::CreateVpnGatewayRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateVpnGatewayRequest.h:130
Aws::EC2::Model::CreateVpnGatewayRequest::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: CreateVpnGatewayRequest.h:58
Aws::EC2::Model::CreateVpnGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
GatewayType.h
Aws::EC2::Model::CreateVpnGatewayRequest::WithAvailabilityZone
CreateVpnGatewayRequest & WithAvailabilityZone(Aws::String &&value)
Definition: CreateVpnGatewayRequest.h:78
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::CreateVpnGatewayRequest::WithType
CreateVpnGatewayRequest & WithType(GatewayType &&value)
Definition: CreateVpnGatewayRequest.h:114
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateVpnGatewayRequest::AddTagSpecifications
CreateVpnGatewayRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateVpnGatewayRequest.h:155