AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 template<typename TransitGatewayIdT = Aws::String>
49 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
50 template<typename TransitGatewayIdT = Aws::String>
51 CreateTransitGatewayVpcAttachmentRequest& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetVpcId() const { return m_vpcId; }
59 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
60 template<typename VpcIdT = Aws::String>
61 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
62 template<typename VpcIdT = Aws::String>
63 CreateTransitGatewayVpcAttachmentRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
65
67
73 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
74 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
75 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
76 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
77 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
78 CreateTransitGatewayVpcAttachmentRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
79 template<typename SubnetIdsT = Aws::String>
80 CreateTransitGatewayVpcAttachmentRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
82
84
87 inline const CreateTransitGatewayVpcAttachmentRequestOptions& GetOptions() const { return m_options; }
88 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
89 template<typename OptionsT = CreateTransitGatewayVpcAttachmentRequestOptions>
90 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
91 template<typename OptionsT = CreateTransitGatewayVpcAttachmentRequestOptions>
92 CreateTransitGatewayVpcAttachmentRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
94
96
99 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
100 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
101 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
102 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
103 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
104 CreateTransitGatewayVpcAttachmentRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
105 template<typename TagSpecificationsT = TagSpecification>
106 CreateTransitGatewayVpcAttachmentRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
108
110
116 inline bool GetDryRun() const { return m_dryRun; }
117 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
118 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
119 inline CreateTransitGatewayVpcAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
121 private:
122
123 Aws::String m_transitGatewayId;
124 bool m_transitGatewayIdHasBeenSet = false;
125
126 Aws::String m_vpcId;
127 bool m_vpcIdHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_subnetIds;
130 bool m_subnetIdsHasBeenSet = false;
131
133 bool m_optionsHasBeenSet = false;
134
135 Aws::Vector<TagSpecification> m_tagSpecifications;
136 bool m_tagSpecificationsHasBeenSet = false;
137
138 bool m_dryRun{false};
139 bool m_dryRunHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace EC2
144} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayVpcAttachmentRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateTransitGatewayVpcAttachmentRequest & WithOptions(OptionsT &&value)
CreateTransitGatewayVpcAttachmentRequest & WithTagSpecifications(TagSpecificationsT &&value)
const CreateTransitGatewayVpcAttachmentRequestOptions & GetOptions() const
CreateTransitGatewayVpcAttachmentRequest & WithSubnetIds(SubnetIdsT &&value)
CreateTransitGatewayVpcAttachmentRequest & AddSubnetIds(SubnetIdsT &&value)
CreateTransitGatewayVpcAttachmentRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTransitGatewayVpcAttachmentRequest & WithVpcId(VpcIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector