AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTransitGatewayVpcAttachmentRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/CreateTransitGatewayVpcAttachmentRequestOptions.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace 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_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
47 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
48 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
49 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
50 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
53 inline CreateTransitGatewayVpcAttachmentRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
55
57
60 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
61 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
62 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
63 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
64 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
65 inline CreateTransitGatewayVpcAttachmentRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
66 inline CreateTransitGatewayVpcAttachmentRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
67 inline CreateTransitGatewayVpcAttachmentRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
69
71
77 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
78 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
79 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
80 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
83 inline CreateTransitGatewayVpcAttachmentRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
84 inline CreateTransitGatewayVpcAttachmentRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
85 inline CreateTransitGatewayVpcAttachmentRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
87
89
92 inline const CreateTransitGatewayVpcAttachmentRequestOptions& GetOptions() const{ return m_options; }
93 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
94 inline void SetOptions(const CreateTransitGatewayVpcAttachmentRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
95 inline void SetOptions(CreateTransitGatewayVpcAttachmentRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
99
101
104 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
105 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
106 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
107 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
110 inline CreateTransitGatewayVpcAttachmentRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
111 inline CreateTransitGatewayVpcAttachmentRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
113
115
121 inline bool GetDryRun() const{ return m_dryRun; }
122 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
123 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
124 inline CreateTransitGatewayVpcAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
126 private:
127
128 Aws::String m_transitGatewayId;
129 bool m_transitGatewayIdHasBeenSet = false;
130
131 Aws::String m_vpcId;
132 bool m_vpcIdHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_subnetIds;
135 bool m_subnetIdsHasBeenSet = false;
136
138 bool m_optionsHasBeenSet = false;
139
140 Aws::Vector<TagSpecification> m_tagSpecifications;
141 bool m_tagSpecificationsHasBeenSet = false;
142
143 bool m_dryRun;
144 bool m_dryRunHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EC2
149} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayVpcAttachmentRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetOptions(CreateTransitGatewayVpcAttachmentRequestOptions &&value)
CreateTransitGatewayVpcAttachmentRequest & WithOptions(const CreateTransitGatewayVpcAttachmentRequestOptions &value)
const CreateTransitGatewayVpcAttachmentRequestOptions & GetOptions() const
CreateTransitGatewayVpcAttachmentRequest & AddTagSpecifications(TagSpecification &&value)
CreateTransitGatewayVpcAttachmentRequest & WithVpcId(Aws::String &&value)
CreateTransitGatewayVpcAttachmentRequest & AddSubnetIds(const char *value)
CreateTransitGatewayVpcAttachmentRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateTransitGatewayVpcAttachmentRequest & WithTransitGatewayId(const Aws::String &value)
CreateTransitGatewayVpcAttachmentRequest & WithTransitGatewayId(const char *value)
void SetOptions(const CreateTransitGatewayVpcAttachmentRequestOptions &value)
CreateTransitGatewayVpcAttachmentRequest & WithOptions(CreateTransitGatewayVpcAttachmentRequestOptions &&value)
CreateTransitGatewayVpcAttachmentRequest & AddSubnetIds(const Aws::String &value)
CreateTransitGatewayVpcAttachmentRequest & WithVpcId(const char *value)
CreateTransitGatewayVpcAttachmentRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateTransitGatewayVpcAttachmentRequest & WithVpcId(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTransitGatewayVpcAttachmentRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateTransitGatewayVpcAttachmentRequest & AddSubnetIds(Aws::String &&value)
CreateTransitGatewayVpcAttachmentRequest & AddTagSpecifications(const TagSpecification &value)
CreateTransitGatewayVpcAttachmentRequest & WithTransitGatewayId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector