AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateConnectPeerRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/NetworkManagerRequest.h>
11#include <aws/networkmanager/NetworkManager_EXPORTS.h>
12#include <aws/networkmanager/model/BgpOptions.h>
13#include <aws/networkmanager/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace NetworkManager {
19namespace Model {
20
24 public:
25 AWS_NETWORKMANAGER_API CreateConnectPeerRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateConnectPeer"; }
32
33 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetConnectAttachmentId() const { return m_connectAttachmentId; }
40 inline bool ConnectAttachmentIdHasBeenSet() const { return m_connectAttachmentIdHasBeenSet; }
41 template <typename ConnectAttachmentIdT = Aws::String>
42 void SetConnectAttachmentId(ConnectAttachmentIdT&& value) {
43 m_connectAttachmentIdHasBeenSet = true;
44 m_connectAttachmentId = std::forward<ConnectAttachmentIdT>(value);
45 }
46 template <typename ConnectAttachmentIdT = Aws::String>
47 CreateConnectPeerRequest& WithConnectAttachmentId(ConnectAttachmentIdT&& value) {
48 SetConnectAttachmentId(std::forward<ConnectAttachmentIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetCoreNetworkAddress() const { return m_coreNetworkAddress; }
59 inline bool CoreNetworkAddressHasBeenSet() const { return m_coreNetworkAddressHasBeenSet; }
60 template <typename CoreNetworkAddressT = Aws::String>
61 void SetCoreNetworkAddress(CoreNetworkAddressT&& value) {
62 m_coreNetworkAddressHasBeenSet = true;
63 m_coreNetworkAddress = std::forward<CoreNetworkAddressT>(value);
64 }
65 template <typename CoreNetworkAddressT = Aws::String>
66 CreateConnectPeerRequest& WithCoreNetworkAddress(CoreNetworkAddressT&& value) {
67 SetCoreNetworkAddress(std::forward<CoreNetworkAddressT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
77 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
78 template <typename PeerAddressT = Aws::String>
79 void SetPeerAddress(PeerAddressT&& value) {
80 m_peerAddressHasBeenSet = true;
81 m_peerAddress = std::forward<PeerAddressT>(value);
82 }
83 template <typename PeerAddressT = Aws::String>
85 SetPeerAddress(std::forward<PeerAddressT>(value));
86 return *this;
87 }
89
91
95 inline const BgpOptions& GetBgpOptions() const { return m_bgpOptions; }
96 inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; }
97 template <typename BgpOptionsT = BgpOptions>
98 void SetBgpOptions(BgpOptionsT&& value) {
99 m_bgpOptionsHasBeenSet = true;
100 m_bgpOptions = std::forward<BgpOptionsT>(value);
101 }
102 template <typename BgpOptionsT = BgpOptions>
104 SetBgpOptions(std::forward<BgpOptionsT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const { return m_insideCidrBlocks; }
114 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
115 template <typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
116 void SetInsideCidrBlocks(InsideCidrBlocksT&& value) {
117 m_insideCidrBlocksHasBeenSet = true;
118 m_insideCidrBlocks = std::forward<InsideCidrBlocksT>(value);
119 }
120 template <typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
121 CreateConnectPeerRequest& WithInsideCidrBlocks(InsideCidrBlocksT&& value) {
122 SetInsideCidrBlocks(std::forward<InsideCidrBlocksT>(value));
123 return *this;
124 }
125 template <typename InsideCidrBlocksT = Aws::String>
126 CreateConnectPeerRequest& AddInsideCidrBlocks(InsideCidrBlocksT&& value) {
127 m_insideCidrBlocksHasBeenSet = true;
128 m_insideCidrBlocks.emplace_back(std::forward<InsideCidrBlocksT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
138 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
139 template <typename TagsT = Aws::Vector<Tag>>
140 void SetTags(TagsT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags = std::forward<TagsT>(value);
143 }
144 template <typename TagsT = Aws::Vector<Tag>>
146 SetTags(std::forward<TagsT>(value));
147 return *this;
148 }
149 template <typename TagsT = Tag>
151 m_tagsHasBeenSet = true;
152 m_tags.emplace_back(std::forward<TagsT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetClientToken() const { return m_clientToken; }
162 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
163 template <typename ClientTokenT = Aws::String>
164 void SetClientToken(ClientTokenT&& value) {
165 m_clientTokenHasBeenSet = true;
166 m_clientToken = std::forward<ClientTokenT>(value);
167 }
168 template <typename ClientTokenT = Aws::String>
170 SetClientToken(std::forward<ClientTokenT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetSubnetArn() const { return m_subnetArn; }
181 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
182 template <typename SubnetArnT = Aws::String>
183 void SetSubnetArn(SubnetArnT&& value) {
184 m_subnetArnHasBeenSet = true;
185 m_subnetArn = std::forward<SubnetArnT>(value);
186 }
187 template <typename SubnetArnT = Aws::String>
189 SetSubnetArn(std::forward<SubnetArnT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_connectAttachmentId;
195
196 Aws::String m_coreNetworkAddress;
197
198 Aws::String m_peerAddress;
199
200 BgpOptions m_bgpOptions;
201
202 Aws::Vector<Aws::String> m_insideCidrBlocks;
203
204 Aws::Vector<Tag> m_tags;
205
207
208 Aws::String m_subnetArn;
209 bool m_connectAttachmentIdHasBeenSet = false;
210 bool m_coreNetworkAddressHasBeenSet = false;
211 bool m_peerAddressHasBeenSet = false;
212 bool m_bgpOptionsHasBeenSet = false;
213 bool m_insideCidrBlocksHasBeenSet = false;
214 bool m_tagsHasBeenSet = false;
215 bool m_clientTokenHasBeenSet = true;
216 bool m_subnetArnHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace NetworkManager
221} // namespace Aws
CreateConnectPeerRequest & WithInsideCidrBlocks(InsideCidrBlocksT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateConnectPeerRequest & WithBgpOptions(BgpOptionsT &&value)
CreateConnectPeerRequest & WithPeerAddress(PeerAddressT &&value)
virtual const char * GetServiceRequestName() const override
CreateConnectPeerRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< Aws::String > & GetInsideCidrBlocks() const
CreateConnectPeerRequest & WithSubnetArn(SubnetArnT &&value)
AWS_NETWORKMANAGER_API CreateConnectPeerRequest()=default
CreateConnectPeerRequest & AddInsideCidrBlocks(InsideCidrBlocksT &&value)
CreateConnectPeerRequest & WithCoreNetworkAddress(CoreNetworkAddressT &&value)
CreateConnectPeerRequest & WithConnectAttachmentId(ConnectAttachmentIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector