AWS SDK for C++  1.9.129
AWS SDK for C++
CreateTransitGatewayConnectPeerRequest.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>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateTransitGatewayConnectPeer"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
46 
50  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
51 
55  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
56 
60  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
61 
65  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
66 
70  inline CreateTransitGatewayConnectPeerRequest& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
71 
75  inline CreateTransitGatewayConnectPeerRequest& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
76 
80  inline CreateTransitGatewayConnectPeerRequest& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
81 
82 
89  inline const Aws::String& GetTransitGatewayAddress() const{ return m_transitGatewayAddress; }
90 
97  inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; }
98 
105  inline void SetTransitGatewayAddress(const Aws::String& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = value; }
106 
113  inline void SetTransitGatewayAddress(Aws::String&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::move(value); }
114 
121  inline void SetTransitGatewayAddress(const char* value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress.assign(value); }
122 
129  inline CreateTransitGatewayConnectPeerRequest& WithTransitGatewayAddress(const Aws::String& value) { SetTransitGatewayAddress(value); return *this;}
130 
137  inline CreateTransitGatewayConnectPeerRequest& WithTransitGatewayAddress(Aws::String&& value) { SetTransitGatewayAddress(std::move(value)); return *this;}
138 
145  inline CreateTransitGatewayConnectPeerRequest& WithTransitGatewayAddress(const char* value) { SetTransitGatewayAddress(value); return *this;}
146 
147 
152  inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
153 
158  inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
159 
164  inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
165 
170  inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
171 
176  inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
177 
182  inline CreateTransitGatewayConnectPeerRequest& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;}
183 
188  inline CreateTransitGatewayConnectPeerRequest& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
189 
194  inline CreateTransitGatewayConnectPeerRequest& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
195 
196 
200  inline const TransitGatewayConnectRequestBgpOptions& GetBgpOptions() const{ return m_bgpOptions; }
201 
205  inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; }
206 
210  inline void SetBgpOptions(const TransitGatewayConnectRequestBgpOptions& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = value; }
211 
215  inline void SetBgpOptions(TransitGatewayConnectRequestBgpOptions&& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = std::move(value); }
216 
220  inline CreateTransitGatewayConnectPeerRequest& WithBgpOptions(const TransitGatewayConnectRequestBgpOptions& value) { SetBgpOptions(value); return *this;}
221 
225  inline CreateTransitGatewayConnectPeerRequest& WithBgpOptions(TransitGatewayConnectRequestBgpOptions&& value) { SetBgpOptions(std::move(value)); return *this;}
226 
227 
235  inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const{ return m_insideCidrBlocks; }
236 
244  inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
245 
253  inline void SetInsideCidrBlocks(const Aws::Vector<Aws::String>& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = value; }
254 
262  inline void SetInsideCidrBlocks(Aws::Vector<Aws::String>&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::move(value); }
263 
271  inline CreateTransitGatewayConnectPeerRequest& WithInsideCidrBlocks(const Aws::Vector<Aws::String>& value) { SetInsideCidrBlocks(value); return *this;}
272 
280  inline CreateTransitGatewayConnectPeerRequest& WithInsideCidrBlocks(Aws::Vector<Aws::String>&& value) { SetInsideCidrBlocks(std::move(value)); return *this;}
281 
289  inline CreateTransitGatewayConnectPeerRequest& AddInsideCidrBlocks(const Aws::String& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
290 
298  inline CreateTransitGatewayConnectPeerRequest& AddInsideCidrBlocks(Aws::String&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(std::move(value)); return *this; }
299 
307  inline CreateTransitGatewayConnectPeerRequest& AddInsideCidrBlocks(const char* value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
308 
309 
313  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
314 
318  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
319 
323  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
324 
328  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
329 
333  inline CreateTransitGatewayConnectPeerRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
334 
338  inline CreateTransitGatewayConnectPeerRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
339 
343  inline CreateTransitGatewayConnectPeerRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
344 
348  inline CreateTransitGatewayConnectPeerRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
349 
350 
357  inline bool GetDryRun() const{ return m_dryRun; }
358 
365  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
366 
373  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
374 
381  inline CreateTransitGatewayConnectPeerRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
382 
383  private:
384 
385  Aws::String m_transitGatewayAttachmentId;
386  bool m_transitGatewayAttachmentIdHasBeenSet;
387 
388  Aws::String m_transitGatewayAddress;
389  bool m_transitGatewayAddressHasBeenSet;
390 
391  Aws::String m_peerAddress;
392  bool m_peerAddressHasBeenSet;
393 
395  bool m_bgpOptionsHasBeenSet;
396 
397  Aws::Vector<Aws::String> m_insideCidrBlocks;
398  bool m_insideCidrBlocksHasBeenSet;
399 
400  Aws::Vector<TagSpecification> m_tagSpecifications;
401  bool m_tagSpecificationsHasBeenSet;
402 
403  bool m_dryRun;
404  bool m_dryRunHasBeenSet;
405  };
406 
407 } // namespace Model
408 } // namespace EC2
409 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::GetPeerAddress
const Aws::String & GetPeerAddress() const
Definition: CreateTransitGatewayConnectPeerRequest.h:152
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithTransitGatewayAddress
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAddress(const char *value)
Definition: CreateTransitGatewayConnectPeerRequest.h:145
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAttachmentId(const char *value)
Definition: CreateTransitGatewayConnectPeerRequest.h:80
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:70
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::GetInsideCidrBlocks
const Aws::Vector< Aws::String > & GetInsideCidrBlocks() const
Definition: CreateTransitGatewayConnectPeerRequest.h:235
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithTransitGatewayAddress
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAddress(Aws::String &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:137
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithPeerAddress
CreateTransitGatewayConnectPeerRequest & WithPeerAddress(const char *value)
Definition: CreateTransitGatewayConnectPeerRequest.h:194
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetTransitGatewayAddress
void SetTransitGatewayAddress(const Aws::String &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:105
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::PeerAddressHasBeenSet
bool PeerAddressHasBeenSet() const
Definition: CreateTransitGatewayConnectPeerRequest.h:158
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetPeerAddress
void SetPeerAddress(Aws::String &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:170
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:328
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayConnectPeerRequest.h:357
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithPeerAddress
CreateTransitGatewayConnectPeerRequest & WithPeerAddress(const Aws::String &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:182
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:60
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithTagSpecifications
CreateTransitGatewayConnectPeerRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:333
AWSVector.h
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::AddInsideCidrBlocks
CreateTransitGatewayConnectPeerRequest & AddInsideCidrBlocks(const char *value)
Definition: CreateTransitGatewayConnectPeerRequest.h:307
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetTransitGatewayAddress
void SetTransitGatewayAddress(const char *value)
Definition: CreateTransitGatewayConnectPeerRequest.h:121
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:55
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:323
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetInsideCidrBlocks
void SetInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:262
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetBgpOptions
void SetBgpOptions(TransitGatewayConnectRequestBgpOptions &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:215
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateTransitGatewayConnectPeerRequest.h:313
TransitGatewayConnectRequestBgpOptions.h
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTransitGatewayConnectPeerRequest.h:373
EC2Request.h
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetPeerAddress
void SetPeerAddress(const char *value)
Definition: CreateTransitGatewayConnectPeerRequest.h:176
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithPeerAddress
CreateTransitGatewayConnectPeerRequest & WithPeerAddress(Aws::String &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:188
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions
Definition: TransitGatewayConnectRequestBgpOptions.h:30
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: CreateTransitGatewayConnectPeerRequest.h:50
AWSString.h
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::GetTransitGatewayAddress
const Aws::String & GetTransitGatewayAddress() const
Definition: CreateTransitGatewayConnectPeerRequest.h:89
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::AddInsideCidrBlocks
CreateTransitGatewayConnectPeerRequest & AddInsideCidrBlocks(const Aws::String &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:289
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::InsideCidrBlocksHasBeenSet
bool InsideCidrBlocksHasBeenSet() const
Definition: CreateTransitGatewayConnectPeerRequest.h:244
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: CreateTransitGatewayConnectPeerRequest.h:65
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateTransitGatewayConnectPeerRequest.h:318
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::AddTagSpecifications
CreateTransitGatewayConnectPeerRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:348
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetPeerAddress
void SetPeerAddress(const Aws::String &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:164
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetInsideCidrBlocks
void SetInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:253
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::BgpOptionsHasBeenSet
bool BgpOptionsHasBeenSet() const
Definition: CreateTransitGatewayConnectPeerRequest.h:205
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest
Definition: CreateTransitGatewayConnectPeerRequest.h:25
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::TransitGatewayAddressHasBeenSet
bool TransitGatewayAddressHasBeenSet() const
Definition: CreateTransitGatewayConnectPeerRequest.h:97
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTransitGatewayConnectPeerRequest.h:365
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithTagSpecifications
CreateTransitGatewayConnectPeerRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:338
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::GetBgpOptions
const TransitGatewayConnectRequestBgpOptions & GetBgpOptions() const
Definition: CreateTransitGatewayConnectPeerRequest.h:200
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithInsideCidrBlocks
CreateTransitGatewayConnectPeerRequest & WithInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:271
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::AddInsideCidrBlocks
CreateTransitGatewayConnectPeerRequest & AddInsideCidrBlocks(Aws::String &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:298
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetBgpOptions
void SetBgpOptions(const TransitGatewayConnectRequestBgpOptions &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:210
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::SetTransitGatewayAddress
void SetTransitGatewayAddress(Aws::String &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:113
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithInsideCidrBlocks
CreateTransitGatewayConnectPeerRequest & WithInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:280
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithBgpOptions
CreateTransitGatewayConnectPeerRequest & WithBgpOptions(TransitGatewayConnectRequestBgpOptions &&value)
Definition: CreateTransitGatewayConnectPeerRequest.h:225
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithDryRun
CreateTransitGatewayConnectPeerRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayConnectPeerRequest.h:381
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: CreateTransitGatewayConnectPeerRequest.h:45
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithBgpOptions
CreateTransitGatewayConnectPeerRequest & WithBgpOptions(const TransitGatewayConnectRequestBgpOptions &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:220
EC2_EXPORTS.h
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::CreateTransitGatewayConnectPeerRequest
CreateTransitGatewayConnectPeerRequest()
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::WithTransitGatewayAddress
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAddress(const Aws::String &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:129
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTransitGatewayConnectPeerRequest.h:33
Aws::EC2::Model::CreateTransitGatewayConnectPeerRequest::AddTagSpecifications
CreateTransitGatewayConnectPeerRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateTransitGatewayConnectPeerRequest.h:343