AWS SDK for C++  1.9.67
AWS SDK for C++
CreateVpcPeeringConnectionRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateVpcPeeringConnection"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline CreateVpcPeeringConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
78  inline const Aws::String& GetPeerOwnerId() const{ return m_peerOwnerId; }
79 
84  inline bool PeerOwnerIdHasBeenSet() const { return m_peerOwnerIdHasBeenSet; }
85 
90  inline void SetPeerOwnerId(const Aws::String& value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId = value; }
91 
96  inline void SetPeerOwnerId(Aws::String&& value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId = std::move(value); }
97 
102  inline void SetPeerOwnerId(const char* value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId.assign(value); }
103 
108  inline CreateVpcPeeringConnectionRequest& WithPeerOwnerId(const Aws::String& value) { SetPeerOwnerId(value); return *this;}
109 
114  inline CreateVpcPeeringConnectionRequest& WithPeerOwnerId(Aws::String&& value) { SetPeerOwnerId(std::move(value)); return *this;}
115 
120  inline CreateVpcPeeringConnectionRequest& WithPeerOwnerId(const char* value) { SetPeerOwnerId(value); return *this;}
121 
122 
127  inline const Aws::String& GetPeerVpcId() const{ return m_peerVpcId; }
128 
133  inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
134 
139  inline void SetPeerVpcId(const Aws::String& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = value; }
140 
145  inline void SetPeerVpcId(Aws::String&& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = std::move(value); }
146 
151  inline void SetPeerVpcId(const char* value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId.assign(value); }
152 
157  inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(const Aws::String& value) { SetPeerVpcId(value); return *this;}
158 
163  inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(Aws::String&& value) { SetPeerVpcId(std::move(value)); return *this;}
164 
169  inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(const char* value) { SetPeerVpcId(value); return *this;}
170 
171 
176  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
177 
182  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
183 
188  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
189 
194  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
195 
200  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
201 
206  inline CreateVpcPeeringConnectionRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
207 
212  inline CreateVpcPeeringConnectionRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
213 
218  inline CreateVpcPeeringConnectionRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
219 
220 
226  inline const Aws::String& GetPeerRegion() const{ return m_peerRegion; }
227 
233  inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; }
234 
240  inline void SetPeerRegion(const Aws::String& value) { m_peerRegionHasBeenSet = true; m_peerRegion = value; }
241 
247  inline void SetPeerRegion(Aws::String&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::move(value); }
248 
254  inline void SetPeerRegion(const char* value) { m_peerRegionHasBeenSet = true; m_peerRegion.assign(value); }
255 
261  inline CreateVpcPeeringConnectionRequest& WithPeerRegion(const Aws::String& value) { SetPeerRegion(value); return *this;}
262 
268  inline CreateVpcPeeringConnectionRequest& WithPeerRegion(Aws::String&& value) { SetPeerRegion(std::move(value)); return *this;}
269 
275  inline CreateVpcPeeringConnectionRequest& WithPeerRegion(const char* value) { SetPeerRegion(value); return *this;}
276 
277 
281  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
282 
286  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
287 
291  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
292 
296  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
297 
301  inline CreateVpcPeeringConnectionRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
302 
306  inline CreateVpcPeeringConnectionRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
307 
311  inline CreateVpcPeeringConnectionRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
312 
316  inline CreateVpcPeeringConnectionRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
317 
318  private:
319 
320  bool m_dryRun;
321  bool m_dryRunHasBeenSet;
322 
323  Aws::String m_peerOwnerId;
324  bool m_peerOwnerIdHasBeenSet;
325 
326  Aws::String m_peerVpcId;
327  bool m_peerVpcIdHasBeenSet;
328 
329  Aws::String m_vpcId;
330  bool m_vpcIdHasBeenSet;
331 
332  Aws::String m_peerRegion;
333  bool m_peerRegionHasBeenSet;
334 
335  Aws::Vector<TagSpecification> m_tagSpecifications;
336  bool m_tagSpecificationsHasBeenSet;
337  };
338 
339 } // namespace Model
340 } // namespace EC2
341 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithVpcId
CreateVpcPeeringConnectionRequest & WithVpcId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:218
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcId
void SetPeerVpcId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:139
Aws::EC2::Model::CreateVpcPeeringConnectionRequest
Definition: CreateVpcPeeringConnectionRequest.h:24
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcId
void SetPeerVpcId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:145
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerOwnerId
void SetPeerOwnerId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:102
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: CreateVpcPeeringConnectionRequest.h:176
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::CreateVpcPeeringConnectionRequest
CreateVpcPeeringConnectionRequest()
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerRegion
void SetPeerRegion(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:247
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerVpcId
void SetPeerVpcId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:151
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerOwnerId
CreateVpcPeeringConnectionRequest & WithPeerOwnerId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:114
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetVpcId
void SetVpcId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:200
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcId
CreateVpcPeeringConnectionRequest & WithPeerVpcId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:163
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::PeerOwnerIdHasBeenSet
bool PeerOwnerIdHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:84
AWSVector.h
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerRegion
CreateVpcPeeringConnectionRequest & WithPeerRegion(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:261
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::AddTagSpecifications
CreateVpcPeeringConnectionRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateVpcPeeringConnectionRequest.h:316
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerOwnerId
void SetPeerOwnerId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:96
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcId
CreateVpcPeeringConnectionRequest & WithPeerVpcId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:157
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithDryRun
CreateVpcPeeringConnectionRequest & WithDryRun(bool value)
Definition: CreateVpcPeeringConnectionRequest.h:71
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateVpcPeeringConnectionRequest.h:281
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::GetPeerRegion
const Aws::String & GetPeerRegion() const
Definition: CreateVpcPeeringConnectionRequest.h:226
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateVpcPeeringConnectionRequest.h:296
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerOwnerId
CreateVpcPeeringConnectionRequest & WithPeerOwnerId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:120
EC2Request.h
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVpcPeeringConnectionRequest.h:32
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::GetPeerOwnerId
const Aws::String & GetPeerOwnerId() const
Definition: CreateVpcPeeringConnectionRequest.h:78
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerRegion
void SetPeerRegion(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:240
AWSString.h
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithTagSpecifications
CreateVpcPeeringConnectionRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateVpcPeeringConnectionRequest.h:306
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithVpcId
CreateVpcPeeringConnectionRequest & WithVpcId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:206
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:194
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::PeerRegionHasBeenSet
bool PeerRegionHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:233
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerRegion
CreateVpcPeeringConnectionRequest & WithPeerRegion(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:275
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerRegion
CreateVpcPeeringConnectionRequest & WithPeerRegion(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:268
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:182
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerOwnerId
void SetPeerOwnerId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:90
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:188
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateVpcPeeringConnectionRequest.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithTagSpecifications
CreateVpcPeeringConnectionRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateVpcPeeringConnectionRequest.h:301
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerVpcId
CreateVpcPeeringConnectionRequest & WithPeerVpcId(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:169
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::GetDryRun
bool GetDryRun() const
Definition: CreateVpcPeeringConnectionRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:55
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithVpcId
CreateVpcPeeringConnectionRequest & WithVpcId(Aws::String &&value)
Definition: CreateVpcPeeringConnectionRequest.h:212
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::WithPeerOwnerId
CreateVpcPeeringConnectionRequest & WithPeerOwnerId(const Aws::String &value)
Definition: CreateVpcPeeringConnectionRequest.h:108
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:286
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::GetPeerVpcId
const Aws::String & GetPeerVpcId() const
Definition: CreateVpcPeeringConnectionRequest.h:127
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::PeerVpcIdHasBeenSet
bool PeerVpcIdHasBeenSet() const
Definition: CreateVpcPeeringConnectionRequest.h:133
EC2_EXPORTS.h
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetPeerRegion
void SetPeerRegion(const char *value)
Definition: CreateVpcPeeringConnectionRequest.h:254
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::AddTagSpecifications
CreateVpcPeeringConnectionRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateVpcPeeringConnectionRequest.h:311
Aws::EC2::Model::CreateVpcPeeringConnectionRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateVpcPeeringConnectionRequest.h:291