AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
49 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
50 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
55
57
63 inline const Aws::String& GetTransitGatewayAddress() const{ return m_transitGatewayAddress; }
64 inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; }
65 inline void SetTransitGatewayAddress(const Aws::String& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = value; }
66 inline void SetTransitGatewayAddress(Aws::String&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::move(value); }
67 inline void SetTransitGatewayAddress(const char* value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress.assign(value); }
72
74
78 inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
79 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
80 inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
81 inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
82 inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
84 inline CreateTransitGatewayConnectPeerRequest& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
85 inline CreateTransitGatewayConnectPeerRequest& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
87
89
92 inline const TransitGatewayConnectRequestBgpOptions& GetBgpOptions() const{ return m_bgpOptions; }
93 inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; }
94 inline void SetBgpOptions(const TransitGatewayConnectRequestBgpOptions& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = value; }
95 inline void SetBgpOptions(TransitGatewayConnectRequestBgpOptions&& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = std::move(value); }
99
101
108 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const{ return m_insideCidrBlocks; }
109 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
110 inline void SetInsideCidrBlocks(const Aws::Vector<Aws::String>& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = value; }
111 inline void SetInsideCidrBlocks(Aws::Vector<Aws::String>&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::move(value); }
114 inline CreateTransitGatewayConnectPeerRequest& AddInsideCidrBlocks(const Aws::String& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
115 inline CreateTransitGatewayConnectPeerRequest& AddInsideCidrBlocks(Aws::String&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(std::move(value)); return *this; }
116 inline CreateTransitGatewayConnectPeerRequest& AddInsideCidrBlocks(const char* value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
118
120
123 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
124 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
125 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
126 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
129 inline CreateTransitGatewayConnectPeerRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
130 inline CreateTransitGatewayConnectPeerRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
132
134
140 inline bool GetDryRun() const{ return m_dryRun; }
141 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
142 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
143 inline CreateTransitGatewayConnectPeerRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
145 private:
146
147 Aws::String m_transitGatewayAttachmentId;
148 bool m_transitGatewayAttachmentIdHasBeenSet = false;
149
150 Aws::String m_transitGatewayAddress;
151 bool m_transitGatewayAddressHasBeenSet = false;
152
153 Aws::String m_peerAddress;
154 bool m_peerAddressHasBeenSet = false;
155
157 bool m_bgpOptionsHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_insideCidrBlocks;
160 bool m_insideCidrBlocksHasBeenSet = false;
161
162 Aws::Vector<TagSpecification> m_tagSpecifications;
163 bool m_tagSpecificationsHasBeenSet = false;
164
165 bool m_dryRun;
166 bool m_dryRunHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
CreateTransitGatewayConnectPeerRequest & AddInsideCidrBlocks(const Aws::String &value)
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAttachmentId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTransitGatewayConnectPeerRequest & WithBgpOptions(TransitGatewayConnectRequestBgpOptions &&value)
const TransitGatewayConnectRequestBgpOptions & GetBgpOptions() const
CreateTransitGatewayConnectPeerRequest & WithInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
void SetBgpOptions(TransitGatewayConnectRequestBgpOptions &&value)
CreateTransitGatewayConnectPeerRequest & WithPeerAddress(const Aws::String &value)
CreateTransitGatewayConnectPeerRequest & WithDryRun(bool value)
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAddress(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAttachmentId(Aws::String &&value)
CreateTransitGatewayConnectPeerRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAttachmentId(const Aws::String &value)
void SetBgpOptions(const TransitGatewayConnectRequestBgpOptions &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateTransitGatewayConnectPeerRequest & WithPeerAddress(Aws::String &&value)
CreateTransitGatewayConnectPeerRequest & AddTagSpecifications(const TagSpecification &value)
CreateTransitGatewayConnectPeerRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateTransitGatewayConnectPeerRequest & AddTagSpecifications(TagSpecification &&value)
CreateTransitGatewayConnectPeerRequest & WithInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAddress(Aws::String &&value)
CreateTransitGatewayConnectPeerRequest & WithPeerAddress(const char *value)
CreateTransitGatewayConnectPeerRequest & WithTransitGatewayAddress(const Aws::String &value)
CreateTransitGatewayConnectPeerRequest & WithBgpOptions(const TransitGatewayConnectRequestBgpOptions &value)
CreateTransitGatewayConnectPeerRequest & AddInsideCidrBlocks(Aws::String &&value)
CreateTransitGatewayConnectPeerRequest & AddInsideCidrBlocks(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector