AWS SDK for C++  1.9.67
AWS SDK for C++
CreateTransitGatewayVpcAttachmentRequest.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 "CreateTransitGatewayVpcAttachment"; }
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& GetTransitGatewayId() const{ return m_transitGatewayId; }
46 
50  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
51 
55  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
56 
60  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
61 
65  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
66 
70  inline CreateTransitGatewayVpcAttachmentRequest& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
71 
75  inline CreateTransitGatewayVpcAttachmentRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
76 
80  inline CreateTransitGatewayVpcAttachmentRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
81 
82 
86  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
87 
91  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
92 
96  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
97 
101  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
102 
106  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
107 
111  inline CreateTransitGatewayVpcAttachmentRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
112 
116  inline CreateTransitGatewayVpcAttachmentRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
117 
121  inline CreateTransitGatewayVpcAttachmentRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
122 
123 
130  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
131 
138  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
139 
146  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
147 
154  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
155 
162  inline CreateTransitGatewayVpcAttachmentRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
163 
170  inline CreateTransitGatewayVpcAttachmentRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
171 
178  inline CreateTransitGatewayVpcAttachmentRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
179 
186  inline CreateTransitGatewayVpcAttachmentRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
187 
194  inline CreateTransitGatewayVpcAttachmentRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
195 
196 
200  inline const CreateTransitGatewayVpcAttachmentRequestOptions& GetOptions() const{ return m_options; }
201 
205  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
206 
210  inline void SetOptions(const CreateTransitGatewayVpcAttachmentRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
211 
215  inline void SetOptions(CreateTransitGatewayVpcAttachmentRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
216 
221 
225  inline CreateTransitGatewayVpcAttachmentRequest& WithOptions(CreateTransitGatewayVpcAttachmentRequestOptions&& value) { SetOptions(std::move(value)); return *this;}
226 
227 
231  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
232 
236  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
237 
241  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
242 
246  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
247 
251  inline CreateTransitGatewayVpcAttachmentRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
252 
256  inline CreateTransitGatewayVpcAttachmentRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
257 
261  inline CreateTransitGatewayVpcAttachmentRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
262 
266  inline CreateTransitGatewayVpcAttachmentRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
267 
268 
275  inline bool GetDryRun() const{ return m_dryRun; }
276 
283  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
284 
291  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
292 
299  inline CreateTransitGatewayVpcAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
300 
301  private:
302 
303  Aws::String m_transitGatewayId;
304  bool m_transitGatewayIdHasBeenSet;
305 
306  Aws::String m_vpcId;
307  bool m_vpcIdHasBeenSet;
308 
309  Aws::Vector<Aws::String> m_subnetIds;
310  bool m_subnetIdsHasBeenSet;
311 
313  bool m_optionsHasBeenSet;
314 
315  Aws::Vector<TagSpecification> m_tagSpecifications;
316  bool m_tagSpecificationsHasBeenSet;
317 
318  bool m_dryRun;
319  bool m_dryRunHasBeenSet;
320  };
321 
322 } // namespace Model
323 } // namespace EC2
324 } // namespace Aws
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithSubnetIds
CreateTransitGatewayVpcAttachmentRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:170
TagSpecification.h
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::AddSubnetIds
CreateTransitGatewayVpcAttachmentRequest & AddSubnetIds(const Aws::String &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:178
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithVpcId
CreateTransitGatewayVpcAttachmentRequest & WithVpcId(const Aws::String &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:111
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:205
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithSubnetIds
CreateTransitGatewayVpcAttachmentRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:162
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetOptions
void SetOptions(CreateTransitGatewayVpcAttachmentRequestOptions &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:215
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:146
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::AddTagSpecifications
CreateTransitGatewayVpcAttachmentRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:261
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetOptions
void SetOptions(const CreateTransitGatewayVpcAttachmentRequestOptions &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:210
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:101
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithTagSpecifications
CreateTransitGatewayVpcAttachmentRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:251
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:91
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:60
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:236
AWSVector.h
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithVpcId
CreateTransitGatewayVpcAttachmentRequest & WithVpcId(Aws::String &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:116
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:86
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithTagSpecifications
CreateTransitGatewayVpcAttachmentRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:256
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:246
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:130
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithTransitGatewayId
CreateTransitGatewayVpcAttachmentRequest & WithTransitGatewayId(Aws::String &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:75
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:275
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:138
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:283
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetVpcId
void SetVpcId(const char *value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:106
EC2Request.h
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:231
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:154
CreateTransitGatewayVpcAttachmentRequestOptions.h
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithOptions
CreateTransitGatewayVpcAttachmentRequest & WithOptions(const CreateTransitGatewayVpcAttachmentRequestOptions &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:220
AWSString.h
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithTransitGatewayId
CreateTransitGatewayVpcAttachmentRequest & WithTransitGatewayId(const char *value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:80
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:241
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:55
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:50
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:65
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithTransitGatewayId
CreateTransitGatewayVpcAttachmentRequest & WithTransitGatewayId(const Aws::String &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:70
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::AddSubnetIds
CreateTransitGatewayVpcAttachmentRequest & AddSubnetIds(const char *value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:194
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::CreateTransitGatewayVpcAttachmentRequest
CreateTransitGatewayVpcAttachmentRequest()
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithVpcId
CreateTransitGatewayVpcAttachmentRequest & WithVpcId(const char *value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:121
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithDryRun
CreateTransitGatewayVpcAttachmentRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:299
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:96
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTransitGatewayVpcAttachmentRequest.h:33
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::CreateTransitGatewayVpcAttachmentRequestOptions
Definition: CreateTransitGatewayVpcAttachmentRequestOptions.h:34
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest
Definition: CreateTransitGatewayVpcAttachmentRequest.h:25
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::AddTagSpecifications
CreateTransitGatewayVpcAttachmentRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:266
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:291
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::AddSubnetIds
CreateTransitGatewayVpcAttachmentRequest & AddSubnetIds(Aws::String &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:186
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::GetOptions
const CreateTransitGatewayVpcAttachmentRequestOptions & GetOptions() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:200
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: CreateTransitGatewayVpcAttachmentRequest.h:45
EC2_EXPORTS.h
Aws::EC2::Model::CreateTransitGatewayVpcAttachmentRequest::WithOptions
CreateTransitGatewayVpcAttachmentRequest & WithOptions(CreateTransitGatewayVpcAttachmentRequestOptions &&value)
Definition: CreateTransitGatewayVpcAttachmentRequest.h:225