AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTransitGatewayPeeringAttachmentRequest.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/ec2/model/CreateTransitGatewayPeeringAttachmentRequestOptions.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 "CreateTransitGatewayPeeringAttachment"; }
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 CreateTransitGatewayPeeringAttachmentRequest& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetPeerTransitGatewayId() const { return m_peerTransitGatewayId; }
60 inline bool PeerTransitGatewayIdHasBeenSet() const { return m_peerTransitGatewayIdHasBeenSet; }
61 template<typename PeerTransitGatewayIdT = Aws::String>
62 void SetPeerTransitGatewayId(PeerTransitGatewayIdT&& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = std::forward<PeerTransitGatewayIdT>(value); }
63 template<typename PeerTransitGatewayIdT = Aws::String>
64 CreateTransitGatewayPeeringAttachmentRequest& WithPeerTransitGatewayId(PeerTransitGatewayIdT&& value) { SetPeerTransitGatewayId(std::forward<PeerTransitGatewayIdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetPeerAccountId() const { return m_peerAccountId; }
73 inline bool PeerAccountIdHasBeenSet() const { return m_peerAccountIdHasBeenSet; }
74 template<typename PeerAccountIdT = Aws::String>
75 void SetPeerAccountId(PeerAccountIdT&& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = std::forward<PeerAccountIdT>(value); }
76 template<typename PeerAccountIdT = Aws::String>
77 CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(PeerAccountIdT&& value) { SetPeerAccountId(std::forward<PeerAccountIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetPeerRegion() const { return m_peerRegion; }
85 inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; }
86 template<typename PeerRegionT = Aws::String>
87 void SetPeerRegion(PeerRegionT&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::forward<PeerRegionT>(value); }
88 template<typename PeerRegionT = Aws::String>
89 CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(PeerRegionT&& value) { SetPeerRegion(std::forward<PeerRegionT>(value)); return *this;}
91
93
96 inline const CreateTransitGatewayPeeringAttachmentRequestOptions& GetOptions() const { return m_options; }
97 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
98 template<typename OptionsT = CreateTransitGatewayPeeringAttachmentRequestOptions>
99 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
100 template<typename OptionsT = CreateTransitGatewayPeeringAttachmentRequestOptions>
101 CreateTransitGatewayPeeringAttachmentRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
103
105
108 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
109 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
110 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
111 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
112 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
113 CreateTransitGatewayPeeringAttachmentRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
114 template<typename TagSpecificationsT = TagSpecification>
115 CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
117
119
125 inline bool GetDryRun() const { return m_dryRun; }
126 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
127 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
128 inline CreateTransitGatewayPeeringAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
130 private:
131
132 Aws::String m_transitGatewayId;
133 bool m_transitGatewayIdHasBeenSet = false;
134
135 Aws::String m_peerTransitGatewayId;
136 bool m_peerTransitGatewayIdHasBeenSet = false;
137
138 Aws::String m_peerAccountId;
139 bool m_peerAccountIdHasBeenSet = false;
140
141 Aws::String m_peerRegion;
142 bool m_peerRegionHasBeenSet = false;
143
145 bool m_optionsHasBeenSet = false;
146
147 Aws::Vector<TagSpecification> m_tagSpecifications;
148 bool m_tagSpecificationsHasBeenSet = false;
149
150 bool m_dryRun{false};
151 bool m_dryRunHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace EC2
156} // namespace Aws
CreateTransitGatewayPeeringAttachmentRequest & WithOptions(OptionsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const CreateTransitGatewayPeeringAttachmentRequestOptions & GetOptions() const
CreateTransitGatewayPeeringAttachmentRequest & WithPeerAccountId(PeerAccountIdT &&value)
CreateTransitGatewayPeeringAttachmentRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayPeeringAttachmentRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerRegion(PeerRegionT &&value)
CreateTransitGatewayPeeringAttachmentRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateTransitGatewayPeeringAttachmentRequest & WithPeerTransitGatewayId(PeerTransitGatewayIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector