AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTransitGatewayConnectPeerRequest.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/TransitGatewayConnectRequestBgpOptions.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 "CreateTransitGatewayConnectPeer"; }
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& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
47 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
48 template<typename TransitGatewayAttachmentIdT = Aws::String>
49 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
50 template<typename TransitGatewayAttachmentIdT = Aws::String>
51 CreateTransitGatewayConnectPeerRequest& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value)); return *this;}
53
55
61 inline const Aws::String& GetTransitGatewayAddress() const { return m_transitGatewayAddress; }
62 inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; }
63 template<typename TransitGatewayAddressT = Aws::String>
64 void SetTransitGatewayAddress(TransitGatewayAddressT&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::forward<TransitGatewayAddressT>(value); }
65 template<typename TransitGatewayAddressT = Aws::String>
66 CreateTransitGatewayConnectPeerRequest& WithTransitGatewayAddress(TransitGatewayAddressT&& value) { SetTransitGatewayAddress(std::forward<TransitGatewayAddressT>(value)); return *this;}
68
70
74 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
75 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
76 template<typename PeerAddressT = Aws::String>
77 void SetPeerAddress(PeerAddressT&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
78 template<typename PeerAddressT = Aws::String>
79 CreateTransitGatewayConnectPeerRequest& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
81
83
86 inline const TransitGatewayConnectRequestBgpOptions& GetBgpOptions() const { return m_bgpOptions; }
87 inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; }
88 template<typename BgpOptionsT = TransitGatewayConnectRequestBgpOptions>
89 void SetBgpOptions(BgpOptionsT&& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = std::forward<BgpOptionsT>(value); }
90 template<typename BgpOptionsT = TransitGatewayConnectRequestBgpOptions>
91 CreateTransitGatewayConnectPeerRequest& WithBgpOptions(BgpOptionsT&& value) { SetBgpOptions(std::forward<BgpOptionsT>(value)); return *this;}
93
95
102 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const { return m_insideCidrBlocks; }
103 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
104 template<typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
105 void SetInsideCidrBlocks(InsideCidrBlocksT&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::forward<InsideCidrBlocksT>(value); }
106 template<typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
107 CreateTransitGatewayConnectPeerRequest& WithInsideCidrBlocks(InsideCidrBlocksT&& value) { SetInsideCidrBlocks(std::forward<InsideCidrBlocksT>(value)); return *this;}
108 template<typename InsideCidrBlocksT = Aws::String>
109 CreateTransitGatewayConnectPeerRequest& AddInsideCidrBlocks(InsideCidrBlocksT&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.emplace_back(std::forward<InsideCidrBlocksT>(value)); return *this; }
111
113
116 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
117 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
118 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
119 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
120 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
121 CreateTransitGatewayConnectPeerRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
122 template<typename TagSpecificationsT = TagSpecification>
123 CreateTransitGatewayConnectPeerRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
125
127
133 inline bool GetDryRun() const { return m_dryRun; }
134 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
135 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
136 inline CreateTransitGatewayConnectPeerRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
138 private:
139
140 Aws::String m_transitGatewayAttachmentId;
141 bool m_transitGatewayAttachmentIdHasBeenSet = false;
142
143 Aws::String m_transitGatewayAddress;
144 bool m_transitGatewayAddressHasBeenSet = false;
145
146 Aws::String m_peerAddress;
147 bool m_peerAddressHasBeenSet = false;
148
150 bool m_bgpOptionsHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_insideCidrBlocks;
153 bool m_insideCidrBlocksHasBeenSet = false;
154
155 Aws::Vector<TagSpecification> m_tagSpecifications;
156 bool m_tagSpecificationsHasBeenSet = false;
157
158 bool m_dryRun{false};
159 bool m_dryRunHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
CreateTransitGatewayConnectPeerRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateTransitGatewayConnectPeerRequest & AddInsideCidrBlocks(InsideCidrBlocksT &&value)
CreateTransitGatewayConnectPeerRequest & WithPeerAddress(PeerAddressT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTransitGatewayConnectPeerRequest & AddTagSpecifications(TagSpecificationsT &&value)
const TransitGatewayConnectRequestBgpOptions & GetBgpOptions() const
CreateTransitGatewayConnectPeerRequest & WithBgpOptions(BgpOptionsT &&value)
CreateTransitGatewayConnectPeerRequest & WithDryRun(bool value)
CreateTransitGatewayConnectPeerRequest & WithInsideCidrBlocks(InsideCidrBlocksT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAddress(TransitGatewayAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector