AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateConnectPeerRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmanager/model/BgpOptions.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/networkmanager/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace NetworkManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NETWORKMANAGER_API CreateConnectPeerRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateConnectPeer"; }
35
36 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetConnectAttachmentId() const{ return m_connectAttachmentId; }
44 inline bool ConnectAttachmentIdHasBeenSet() const { return m_connectAttachmentIdHasBeenSet; }
45 inline void SetConnectAttachmentId(const Aws::String& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = value; }
46 inline void SetConnectAttachmentId(Aws::String&& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = std::move(value); }
47 inline void SetConnectAttachmentId(const char* value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId.assign(value); }
49 inline CreateConnectPeerRequest& WithConnectAttachmentId(Aws::String&& value) { SetConnectAttachmentId(std::move(value)); return *this;}
50 inline CreateConnectPeerRequest& WithConnectAttachmentId(const char* value) { SetConnectAttachmentId(value); return *this;}
52
54
58 inline const Aws::String& GetCoreNetworkAddress() const{ return m_coreNetworkAddress; }
59 inline bool CoreNetworkAddressHasBeenSet() const { return m_coreNetworkAddressHasBeenSet; }
60 inline void SetCoreNetworkAddress(const Aws::String& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = value; }
61 inline void SetCoreNetworkAddress(Aws::String&& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = std::move(value); }
62 inline void SetCoreNetworkAddress(const char* value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress.assign(value); }
64 inline CreateConnectPeerRequest& WithCoreNetworkAddress(Aws::String&& value) { SetCoreNetworkAddress(std::move(value)); return *this;}
65 inline CreateConnectPeerRequest& WithCoreNetworkAddress(const char* value) { SetCoreNetworkAddress(value); return *this;}
67
69
72 inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
73 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
74 inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
75 inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
76 inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
77 inline CreateConnectPeerRequest& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;}
78 inline CreateConnectPeerRequest& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
79 inline CreateConnectPeerRequest& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
81
83
87 inline const BgpOptions& GetBgpOptions() const{ return m_bgpOptions; }
88 inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; }
89 inline void SetBgpOptions(const BgpOptions& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = value; }
90 inline void SetBgpOptions(BgpOptions&& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = std::move(value); }
91 inline CreateConnectPeerRequest& WithBgpOptions(const BgpOptions& value) { SetBgpOptions(value); return *this;}
92 inline CreateConnectPeerRequest& WithBgpOptions(BgpOptions&& value) { SetBgpOptions(std::move(value)); return *this;}
94
96
99 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const{ return m_insideCidrBlocks; }
100 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
101 inline void SetInsideCidrBlocks(const Aws::Vector<Aws::String>& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = value; }
102 inline void SetInsideCidrBlocks(Aws::Vector<Aws::String>&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::move(value); }
105 inline CreateConnectPeerRequest& AddInsideCidrBlocks(const Aws::String& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
106 inline CreateConnectPeerRequest& AddInsideCidrBlocks(Aws::String&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(std::move(value)); return *this; }
107 inline CreateConnectPeerRequest& AddInsideCidrBlocks(const char* value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
109
111
114 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
117 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 inline CreateConnectPeerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
119 inline CreateConnectPeerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
120 inline CreateConnectPeerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
121 inline CreateConnectPeerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
123
125
128 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
129 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
130 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
131 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
132 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
133 inline CreateConnectPeerRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
134 inline CreateConnectPeerRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
135 inline CreateConnectPeerRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
137
139
143 inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
144 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
145 inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
146 inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
147 inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
148 inline CreateConnectPeerRequest& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
149 inline CreateConnectPeerRequest& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
150 inline CreateConnectPeerRequest& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
152 private:
153
154 Aws::String m_connectAttachmentId;
155 bool m_connectAttachmentIdHasBeenSet = false;
156
157 Aws::String m_coreNetworkAddress;
158 bool m_coreNetworkAddressHasBeenSet = false;
159
160 Aws::String m_peerAddress;
161 bool m_peerAddressHasBeenSet = false;
162
163 BgpOptions m_bgpOptions;
164 bool m_bgpOptionsHasBeenSet = false;
165
166 Aws::Vector<Aws::String> m_insideCidrBlocks;
167 bool m_insideCidrBlocksHasBeenSet = false;
168
169 Aws::Vector<Tag> m_tags;
170 bool m_tagsHasBeenSet = false;
171
172 Aws::String m_clientToken;
173 bool m_clientTokenHasBeenSet = false;
174
175 Aws::String m_subnetArn;
176 bool m_subnetArnHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace NetworkManager
181} // namespace Aws
CreateConnectPeerRequest & WithPeerAddress(const char *value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
void SetInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
CreateConnectPeerRequest & WithCoreNetworkAddress(Aws::String &&value)
CreateConnectPeerRequest & WithConnectAttachmentId(const Aws::String &value)
CreateConnectPeerRequest & AddInsideCidrBlocks(const char *value)
CreateConnectPeerRequest & WithConnectAttachmentId(const char *value)
CreateConnectPeerRequest & AddTags(const Tag &value)
CreateConnectPeerRequest & WithInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
CreateConnectPeerRequest & WithConnectAttachmentId(Aws::String &&value)
CreateConnectPeerRequest & WithBgpOptions(const BgpOptions &value)
CreateConnectPeerRequest & WithSubnetArn(const char *value)
virtual const char * GetServiceRequestName() const override
void SetInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
CreateConnectPeerRequest & WithPeerAddress(Aws::String &&value)
CreateConnectPeerRequest & WithClientToken(const char *value)
CreateConnectPeerRequest & WithBgpOptions(BgpOptions &&value)
CreateConnectPeerRequest & WithSubnetArn(const Aws::String &value)
CreateConnectPeerRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Aws::String > & GetInsideCidrBlocks() const
CreateConnectPeerRequest & AddInsideCidrBlocks(Aws::String &&value)
CreateConnectPeerRequest & WithPeerAddress(const Aws::String &value)
CreateConnectPeerRequest & WithClientToken(const Aws::String &value)
CreateConnectPeerRequest & WithSubnetArn(Aws::String &&value)
CreateConnectPeerRequest & AddInsideCidrBlocks(const Aws::String &value)
CreateConnectPeerRequest & WithTags(const Aws::Vector< Tag > &value)
CreateConnectPeerRequest & WithCoreNetworkAddress(const Aws::String &value)
CreateConnectPeerRequest & WithClientToken(Aws::String &&value)
CreateConnectPeerRequest & WithCoreNetworkAddress(const char *value)
CreateConnectPeerRequest & WithInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector