AWS SDK for C++  1.9.123
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 
135  inline const Aws::String& GetPeerAccountId() const{ return m_peerAccountId; }
136 
141  inline bool PeerAccountIdHasBeenSet() const { return m_peerAccountIdHasBeenSet; }
142 
147  inline void SetPeerAccountId(const Aws::String& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = value; }
148 
153  inline void SetPeerAccountId(Aws::String&& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = std::move(value); }
154 
159  inline void SetPeerAccountId(const char* value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId.assign(value); }
160 
165  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(const Aws::String& value) { SetPeerAccountId(value); return *this;}
166 
171  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(Aws::String&& value) { SetPeerAccountId(std::move(value)); return *this;}
172 
177  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(const char* value) { SetPeerAccountId(value); return *this;}
178 
179 
183  inline const Aws::String& GetPeerRegion() const{ return m_peerRegion; }
184 
188  inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; }
189 
193  inline void SetPeerRegion(const Aws::String& value) { m_peerRegionHasBeenSet = true; m_peerRegion = value; }
194 
198  inline void SetPeerRegion(Aws::String&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::move(value); }
199 
203  inline void SetPeerRegion(const char* value) { m_peerRegionHasBeenSet = true; m_peerRegion.assign(value); }
204 
208  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(const Aws::String& value) { SetPeerRegion(value); return *this;}
209 
213  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(Aws::String&& value) { SetPeerRegion(std::move(value)); return *this;}
214 
218  inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(const char* value) { SetPeerRegion(value); return *this;}
219 
220 
224  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
225 
229  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
230 
234  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
235 
239  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
240 
244  inline CreateTransitGatewayPeeringAttachmentRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
245 
249  inline CreateTransitGatewayPeeringAttachmentRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
250 
254  inline CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
255 
259  inline CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
260 
261 
268  inline bool GetDryRun() const{ return m_dryRun; }
269 
276  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
277 
284  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
285 
292  inline CreateTransitGatewayPeeringAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
293 
294  private:
295 
296  Aws::String m_transitGatewayId;
297  bool m_transitGatewayIdHasBeenSet;
298 
299  Aws::String m_peerTransitGatewayId;
300  bool m_peerTransitGatewayIdHasBeenSet;
301 
302  Aws::String m_peerAccountId;
303  bool m_peerAccountIdHasBeenSet;
304 
305  Aws::String m_peerRegion;
306  bool m_peerRegionHasBeenSet;
307 
308  Aws::Vector<TagSpecification> m_tagSpecifications;
309  bool m_tagSpecificationsHasBeenSet;
310 
311  bool m_dryRun;
312  bool m_dryRunHasBeenSet;
313  };
314 
315 } // namespace Model
316 } // namespace EC2
317 } // 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:224
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerAccountId
void SetPeerAccountId(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:147
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:276
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerRegion
void SetPeerRegion(const char *value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:203
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:229
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerAccountId
CreateTransitGatewayPeeringAttachmentRequest & WithPeerAccountId(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:165
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:159
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:234
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:171
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerRegion
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:213
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::AddTagSpecifications
CreateTransitGatewayPeeringAttachmentRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:254
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithTagSpecifications
CreateTransitGatewayPeeringAttachmentRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:244
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::PeerTransitGatewayIdHasBeenSet
bool PeerTransitGatewayIdHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:92
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:268
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithPeerRegion
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:208
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::PeerAccountIdHasBeenSet
bool PeerAccountIdHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:141
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:284
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:218
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:183
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::WithDryRun
CreateTransitGatewayPeeringAttachmentRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:292
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::PeerRegionHasBeenSet
bool PeerRegionHasBeenSet() const
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:188
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerRegion
void SetPeerRegion(const Aws::String &value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:193
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::SetPeerAccountId
void SetPeerAccountId(Aws::String &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:153
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:177
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:239
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:249
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:135
Aws::EC2::Model::CreateTransitGatewayPeeringAttachmentRequest::AddTagSpecifications
CreateTransitGatewayPeeringAttachmentRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateTransitGatewayPeeringAttachmentRequest.h:259
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:198