AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateVpcPeeringConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/TagSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API CreateVpcPeeringConnectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcPeeringConnection"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
43 inline const Aws::String& GetPeerRegion() const { return m_peerRegion; }
44 inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; }
45 template <typename PeerRegionT = Aws::String>
46 void SetPeerRegion(PeerRegionT&& value) {
47 m_peerRegionHasBeenSet = true;
48 m_peerRegion = std::forward<PeerRegionT>(value);
49 }
50 template <typename PeerRegionT = Aws::String>
52 SetPeerRegion(std::forward<PeerRegionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
62 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
63 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
64 void SetTagSpecifications(TagSpecificationsT&& value) {
65 m_tagSpecificationsHasBeenSet = true;
66 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
67 }
68 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
70 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
71 return *this;
72 }
73 template <typename TagSpecificationsT = TagSpecification>
75 m_tagSpecificationsHasBeenSet = true;
76 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
77 return *this;
78 }
80
82
88 inline bool GetDryRun() const { return m_dryRun; }
89 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
90 inline void SetDryRun(bool value) {
91 m_dryRunHasBeenSet = true;
92 m_dryRun = value;
93 }
95 SetDryRun(value);
96 return *this;
97 }
99
101
105 inline const Aws::String& GetVpcId() const { return m_vpcId; }
106 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
107 template <typename VpcIdT = Aws::String>
108 void SetVpcId(VpcIdT&& value) {
109 m_vpcIdHasBeenSet = true;
110 m_vpcId = std::forward<VpcIdT>(value);
111 }
112 template <typename VpcIdT = Aws::String>
114 SetVpcId(std::forward<VpcIdT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetPeerVpcId() const { return m_peerVpcId; }
125 inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
126 template <typename PeerVpcIdT = Aws::String>
127 void SetPeerVpcId(PeerVpcIdT&& value) {
128 m_peerVpcIdHasBeenSet = true;
129 m_peerVpcId = std::forward<PeerVpcIdT>(value);
130 }
131 template <typename PeerVpcIdT = Aws::String>
133 SetPeerVpcId(std::forward<PeerVpcIdT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetPeerOwnerId() const { return m_peerOwnerId; }
144 inline bool PeerOwnerIdHasBeenSet() const { return m_peerOwnerIdHasBeenSet; }
145 template <typename PeerOwnerIdT = Aws::String>
146 void SetPeerOwnerId(PeerOwnerIdT&& value) {
147 m_peerOwnerIdHasBeenSet = true;
148 m_peerOwnerId = std::forward<PeerOwnerIdT>(value);
149 }
150 template <typename PeerOwnerIdT = Aws::String>
152 SetPeerOwnerId(std::forward<PeerOwnerIdT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_peerRegion;
158
159 Aws::Vector<TagSpecification> m_tagSpecifications;
160
161 bool m_dryRun{false};
162
163 Aws::String m_vpcId;
164
165 Aws::String m_peerVpcId;
166
167 Aws::String m_peerOwnerId;
168 bool m_peerRegionHasBeenSet = false;
169 bool m_tagSpecificationsHasBeenSet = false;
170 bool m_dryRunHasBeenSet = false;
171 bool m_vpcIdHasBeenSet = false;
172 bool m_peerVpcIdHasBeenSet = false;
173 bool m_peerOwnerIdHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace EC2
178} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpcPeeringConnectionRequest & WithDryRun(bool value)
CreateVpcPeeringConnectionRequest & AddTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateVpcPeeringConnectionRequest & WithPeerRegion(PeerRegionT &&value)
CreateVpcPeeringConnectionRequest & WithVpcId(VpcIdT &&value)
CreateVpcPeeringConnectionRequest & WithPeerOwnerId(PeerOwnerIdT &&value)
CreateVpcPeeringConnectionRequest & WithPeerVpcId(PeerVpcIdT &&value)
CreateVpcPeeringConnectionRequest & WithTagSpecifications(TagSpecificationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector