AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_EC2_API CreateVpcPeeringConnectionRequest() = default;
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 template<typename PeerRegionT = Aws::String>
50 void SetPeerRegion(PeerRegionT&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::forward<PeerRegionT>(value); }
51 template<typename PeerRegionT = Aws::String>
52 CreateVpcPeeringConnectionRequest& WithPeerRegion(PeerRegionT&& value) { SetPeerRegion(std::forward<PeerRegionT>(value)); return *this;}
54
56
59 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
60 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
61 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
62 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
63 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
64 CreateVpcPeeringConnectionRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
65 template<typename TagSpecificationsT = TagSpecification>
66 CreateVpcPeeringConnectionRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
68
70
76 inline bool GetDryRun() const { return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
79 inline CreateVpcPeeringConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81
83
87 inline const Aws::String& GetVpcId() const { return m_vpcId; }
88 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
89 template<typename VpcIdT = Aws::String>
90 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
91 template<typename VpcIdT = Aws::String>
92 CreateVpcPeeringConnectionRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
94
96
100 inline const Aws::String& GetPeerVpcId() const { return m_peerVpcId; }
101 inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
102 template<typename PeerVpcIdT = Aws::String>
103 void SetPeerVpcId(PeerVpcIdT&& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = std::forward<PeerVpcIdT>(value); }
104 template<typename PeerVpcIdT = Aws::String>
105 CreateVpcPeeringConnectionRequest& WithPeerVpcId(PeerVpcIdT&& value) { SetPeerVpcId(std::forward<PeerVpcIdT>(value)); return *this;}
107
109
113 inline const Aws::String& GetPeerOwnerId() const { return m_peerOwnerId; }
114 inline bool PeerOwnerIdHasBeenSet() const { return m_peerOwnerIdHasBeenSet; }
115 template<typename PeerOwnerIdT = Aws::String>
116 void SetPeerOwnerId(PeerOwnerIdT&& value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId = std::forward<PeerOwnerIdT>(value); }
117 template<typename PeerOwnerIdT = Aws::String>
118 CreateVpcPeeringConnectionRequest& WithPeerOwnerId(PeerOwnerIdT&& value) { SetPeerOwnerId(std::forward<PeerOwnerIdT>(value)); return *this;}
120 private:
121
122 Aws::String m_peerRegion;
123 bool m_peerRegionHasBeenSet = false;
124
125 Aws::Vector<TagSpecification> m_tagSpecifications;
126 bool m_tagSpecificationsHasBeenSet = false;
127
128 bool m_dryRun{false};
129 bool m_dryRunHasBeenSet = false;
130
131 Aws::String m_vpcId;
132 bool m_vpcIdHasBeenSet = false;
133
134 Aws::String m_peerVpcId;
135 bool m_peerVpcIdHasBeenSet = false;
136
137 Aws::String m_peerOwnerId;
138 bool m_peerOwnerIdHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EC2
143} // 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