AWS SDK for C++  1.9.66
AWS SDK for C++
CreateTransitGatewayPeeringAttachmentRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace 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 "CreateTransitGatewayPeeringAttachment"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
45 
49  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
50 
54  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
55 
59  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
60 
64  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
65 
69  inline CreateTransitGatewayPeeringAttachmentRequest& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
70 
74  inline CreateTransitGatewayPeeringAttachmentRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
75 
79  inline CreateTransitGatewayPeeringAttachmentRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
80 
81 
86  inline const Aws::String& GetPeerTransitGatewayId() const{ return m_peerTransitGatewayId; }
87 
92  inline bool PeerTransitGatewayIdHasBeenSet() const { return m_peerTransitGatewayIdHasBeenSet; }
93 
98  inline void SetPeerTransitGatewayId(const Aws::String& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = value; }
99 
104  inline void SetPeerTransitGatewayId(Aws::String&& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = std::move(value); }
105 
110  inline void SetPeerTransitGatewayId(const char* value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId.assign(value); }
111 
116  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerTransitGatewayId(const Aws::String& value) { SetPeerTransitGatewayId(value); return *this;}
117 
122  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerTransitGatewayId(Aws::String&& value) { SetPeerTransitGatewayId(std::move(value)); return *this;}
123 
128  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerTransitGatewayId(const char* value) { SetPeerTransitGatewayId(value); return *this;}
129 
130 
134  inline const Aws::String& GetPeerAccountId() const{ return m_peerAccountId; }
135 
139  inline bool PeerAccountIdHasBeenSet() const { return m_peerAccountIdHasBeenSet; }
140 
144  inline void SetPeerAccountId(const Aws::String& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = value; }
145 
149  inline void SetPeerAccountId(Aws::String&& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = std::move(value); }
150 
154  inline void SetPeerAccountId(const char* value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId.assign(value); }
155 
159  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(const Aws::String& value) { SetPeerAccountId(value); return *this;}
160 
164  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(Aws::String&& value) { SetPeerAccountId(std::move(value)); return *this;}
165 
169  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(const char* value) { SetPeerAccountId(value); return *this;}
170 
171 
175  inline const Aws::String& GetPeerRegion() const{ return m_peerRegion; }
176 
180  inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; }
181 
185  inline void SetPeerRegion(const Aws::String& value) { m_peerRegionHasBeenSet = true; m_peerRegion = value; }
186 
190  inline void SetPeerRegion(Aws::String&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::move(value); }
191 
195  inline void SetPeerRegion(const char* value) { m_peerRegionHasBeenSet = true; m_peerRegion.assign(value); }
196 
200  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(const Aws::String& value) { SetPeerRegion(value); return *this;}
201 
205  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(Aws::String&& value) { SetPeerRegion(std::move(value)); return *this;}
206 
210  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(const char* value) { SetPeerRegion(value); return *this;}
211 
212 
216  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
217 
221  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
222 
226  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
227 
231  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
232 
236  inline CreateTransitGatewayPeeringAttachmentRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
237 
241  inline CreateTransitGatewayPeeringAttachmentRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
242 
246  inline CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
247 
251  inline CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
252 
253 
260  inline bool GetDryRun() const{ return m_dryRun; }
261 
268  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
269 
276  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
277 
284  inline CreateTransitGatewayPeeringAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
285 
286  private:
287 
288  Aws::String m_transitGatewayId;
289  bool m_transitGatewayIdHasBeenSet;
290 
291  Aws::String m_peerTransitGatewayId;
292  bool m_peerTransitGatewayIdHasBeenSet;
293 
294  Aws::String m_peerAccountId;
295  bool m_peerAccountIdHasBeenSet;
296 
297  Aws::String m_peerRegion;
298  bool m_peerRegionHasBeenSet;
299 
300  Aws::Vector<TagSpecification> m_tagSpecifications;
301  bool m_tagSpecificationsHasBeenSet;
302 
303  bool m_dryRun;
304  bool m_dryRunHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace EC2
309 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithTransitGatewayId
CreateTransitGatewayPeeringAttachmentRequest & WithTransitGatewayId(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:74
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:216
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerAccountId
void SetPeerAccountId(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:144
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerTransitGatewayId
CreateTransitGatewayPeeringAttachmentRequest & WithPeerTransitGatewayId(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:116
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:268
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerRegion
void SetPeerRegion(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:195
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:54
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:221
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerAccountId
CreateTransitGatewayPeeringAttachmentRequest & WithPeerAccountId(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:159
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:49
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::CreateTransitGatewayPeeringAttachmentRequest
CreateTransitGatewayPeeringAttachmentRequest()
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithTransitGatewayId
CreateTransitGatewayPeeringAttachmentRequest & WithTransitGatewayId(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:69
AWSVector.h
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerAccountId
void SetPeerAccountId(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:154
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:226
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerTransitGatewayId
void SetPeerTransitGatewayId(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:104
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerAccountId
CreateTransitGatewayPeeringAttachmentRequest & WithPeerAccountId(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:164
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerRegion
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:205
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::AddTagSpecifications
CreateTransitGatewayPeeringAttachmentRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:246
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithTagSpecifications
CreateTransitGatewayPeeringAttachmentRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:236
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::PeerTransitGatewayIdHasBeenSet
bool PeerTransitGatewayIdHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:92
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:260
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerRegion
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:200
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::PeerAccountIdHasBeenSet
bool PeerAccountIdHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:139
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithTransitGatewayId
CreateTransitGatewayPeeringAttachmentRequest & WithTransitGatewayId(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:79
EC2Request.h
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::GetPeerTransitGatewayId
const Aws::String & GetPeerTransitGatewayId() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:86
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:276
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:32
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:24
AWSString.h
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerRegion
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:210
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerTransitGatewayId
CreateTransitGatewayPeeringAttachmentRequest & WithPeerTransitGatewayId(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:122
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::GetPeerRegion
const Aws::String & GetPeerRegion() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:175
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithDryRun
CreateTransitGatewayPeeringAttachmentRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:284
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::PeerRegionHasBeenSet
bool PeerRegionHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:180
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerRegion
void SetPeerRegion(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:185
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerAccountId
void SetPeerAccountId(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:149
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerTransitGatewayId
void SetPeerTransitGatewayId(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:98
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerAccountId
CreateTransitGatewayPeeringAttachmentRequest & WithPeerAccountId(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:169
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:59
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:231
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:44
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithTagSpecifications
CreateTransitGatewayPeeringAttachmentRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:241
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerTransitGatewayId
CreateTransitGatewayPeeringAttachmentRequest & WithPeerTransitGatewayId(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:128
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::GetPeerAccountId
const Aws::String & GetPeerAccountId() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:134
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::AddTagSpecifications
CreateTransitGatewayPeeringAttachmentRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:251
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerTransitGatewayId
void SetPeerTransitGatewayId(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:110
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:64
EC2_EXPORTS.h
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerRegion
void SetPeerRegion(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:190