AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVpcPeeringConnectionRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
47 inline const Aws::String& GetPeerRegion() const{ return m_peerRegion; }
48 inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; }
49 inline void SetPeerRegion(const Aws::String& value) { m_peerRegionHasBeenSet = true; m_peerRegion = value; }
50 inline void SetPeerRegion(Aws::String&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::move(value); }
51 inline void SetPeerRegion(const char* value) { m_peerRegionHasBeenSet = true; m_peerRegion.assign(value); }
52 inline CreateVpcPeeringConnectionRequest& WithPeerRegion(const Aws::String& value) { SetPeerRegion(value); return *this;}
53 inline CreateVpcPeeringConnectionRequest& WithPeerRegion(Aws::String&& value) { SetPeerRegion(std::move(value)); return *this;}
54 inline CreateVpcPeeringConnectionRequest& WithPeerRegion(const char* value) { SetPeerRegion(value); return *this;}
56
58
61 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
62 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
63 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
64 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
67 inline CreateVpcPeeringConnectionRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
68 inline CreateVpcPeeringConnectionRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
70
72
78 inline bool GetDryRun() const{ return m_dryRun; }
79 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
80 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
81 inline CreateVpcPeeringConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
83
85
89 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
90 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
91 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
92 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
93 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
94 inline CreateVpcPeeringConnectionRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
95 inline CreateVpcPeeringConnectionRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
96 inline CreateVpcPeeringConnectionRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
98
100
104 inline const Aws::String& GetPeerVpcId() const{ return m_peerVpcId; }
105 inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
106 inline void SetPeerVpcId(const Aws::String& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = value; }
107 inline void SetPeerVpcId(Aws::String&& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = std::move(value); }
108 inline void SetPeerVpcId(const char* value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId.assign(value); }
109 inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(const Aws::String& value) { SetPeerVpcId(value); return *this;}
110 inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(Aws::String&& value) { SetPeerVpcId(std::move(value)); return *this;}
111 inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(const char* value) { SetPeerVpcId(value); return *this;}
113
115
119 inline const Aws::String& GetPeerOwnerId() const{ return m_peerOwnerId; }
120 inline bool PeerOwnerIdHasBeenSet() const { return m_peerOwnerIdHasBeenSet; }
121 inline void SetPeerOwnerId(const Aws::String& value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId = value; }
122 inline void SetPeerOwnerId(Aws::String&& value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId = std::move(value); }
123 inline void SetPeerOwnerId(const char* value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId.assign(value); }
125 inline CreateVpcPeeringConnectionRequest& WithPeerOwnerId(Aws::String&& value) { SetPeerOwnerId(std::move(value)); return *this;}
126 inline CreateVpcPeeringConnectionRequest& WithPeerOwnerId(const char* value) { SetPeerOwnerId(value); return *this;}
128 private:
129
130 Aws::String m_peerRegion;
131 bool m_peerRegionHasBeenSet = false;
132
133 Aws::Vector<TagSpecification> m_tagSpecifications;
134 bool m_tagSpecificationsHasBeenSet = false;
135
136 bool m_dryRun;
137 bool m_dryRunHasBeenSet = false;
138
139 Aws::String m_vpcId;
140 bool m_vpcIdHasBeenSet = false;
141
142 Aws::String m_peerVpcId;
143 bool m_peerVpcIdHasBeenSet = false;
144
145 Aws::String m_peerOwnerId;
146 bool m_peerOwnerIdHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
CreateVpcPeeringConnectionRequest & WithPeerOwnerId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpcPeeringConnectionRequest & WithPeerRegion(const Aws::String &value)
CreateVpcPeeringConnectionRequest & WithPeerRegion(Aws::String &&value)
CreateVpcPeeringConnectionRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateVpcPeeringConnectionRequest & WithDryRun(bool value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateVpcPeeringConnectionRequest & WithVpcId(const char *value)
CreateVpcPeeringConnectionRequest & WithPeerOwnerId(const Aws::String &value)
CreateVpcPeeringConnectionRequest & WithPeerVpcId(const Aws::String &value)
CreateVpcPeeringConnectionRequest & WithPeerOwnerId(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateVpcPeeringConnectionRequest & WithPeerRegion(const char *value)
CreateVpcPeeringConnectionRequest & WithVpcId(const Aws::String &value)
CreateVpcPeeringConnectionRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateVpcPeeringConnectionRequest & WithPeerVpcId(Aws::String &&value)
CreateVpcPeeringConnectionRequest & AddTagSpecifications(TagSpecification &&value)
CreateVpcPeeringConnectionRequest & WithPeerVpcId(const char *value)
CreateVpcPeeringConnectionRequest & AddTagSpecifications(const TagSpecification &value)
CreateVpcPeeringConnectionRequest & WithVpcId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector