AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ConnectAttachmentIdT = Aws::String>
46 void SetConnectAttachmentId(ConnectAttachmentIdT&& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = std::forward<ConnectAttachmentIdT>(value); }
47 template<typename ConnectAttachmentIdT = Aws::String>
48 CreateConnectPeerRequest& WithConnectAttachmentId(ConnectAttachmentIdT&& value) { SetConnectAttachmentId(std::forward<ConnectAttachmentIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetCoreNetworkAddress() const { return m_coreNetworkAddress; }
57 inline bool CoreNetworkAddressHasBeenSet() const { return m_coreNetworkAddressHasBeenSet; }
58 template<typename CoreNetworkAddressT = Aws::String>
59 void SetCoreNetworkAddress(CoreNetworkAddressT&& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = std::forward<CoreNetworkAddressT>(value); }
60 template<typename CoreNetworkAddressT = Aws::String>
61 CreateConnectPeerRequest& WithCoreNetworkAddress(CoreNetworkAddressT&& value) { SetCoreNetworkAddress(std::forward<CoreNetworkAddressT>(value)); return *this;}
63
65
68 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
69 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
70 template<typename PeerAddressT = Aws::String>
71 void SetPeerAddress(PeerAddressT&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
72 template<typename PeerAddressT = Aws::String>
73 CreateConnectPeerRequest& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
75
77
81 inline const BgpOptions& GetBgpOptions() const { return m_bgpOptions; }
82 inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; }
83 template<typename BgpOptionsT = BgpOptions>
84 void SetBgpOptions(BgpOptionsT&& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = std::forward<BgpOptionsT>(value); }
85 template<typename BgpOptionsT = BgpOptions>
86 CreateConnectPeerRequest& WithBgpOptions(BgpOptionsT&& value) { SetBgpOptions(std::forward<BgpOptionsT>(value)); return *this;}
88
90
93 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const { return m_insideCidrBlocks; }
94 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
95 template<typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
96 void SetInsideCidrBlocks(InsideCidrBlocksT&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::forward<InsideCidrBlocksT>(value); }
97 template<typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
98 CreateConnectPeerRequest& WithInsideCidrBlocks(InsideCidrBlocksT&& value) { SetInsideCidrBlocks(std::forward<InsideCidrBlocksT>(value)); return *this;}
99 template<typename InsideCidrBlocksT = Aws::String>
100 CreateConnectPeerRequest& AddInsideCidrBlocks(InsideCidrBlocksT&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.emplace_back(std::forward<InsideCidrBlocksT>(value)); return *this; }
102
104
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Vector<Tag>>
112 CreateConnectPeerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsT = Tag>
114 CreateConnectPeerRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
116
118
121 inline const Aws::String& GetClientToken() const { return m_clientToken; }
122 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
123 template<typename ClientTokenT = Aws::String>
124 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
125 template<typename ClientTokenT = Aws::String>
126 CreateConnectPeerRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
128
130
134 inline const Aws::String& GetSubnetArn() const { return m_subnetArn; }
135 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
136 template<typename SubnetArnT = Aws::String>
137 void SetSubnetArn(SubnetArnT&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::forward<SubnetArnT>(value); }
138 template<typename SubnetArnT = Aws::String>
139 CreateConnectPeerRequest& WithSubnetArn(SubnetArnT&& value) { SetSubnetArn(std::forward<SubnetArnT>(value)); return *this;}
141 private:
142
143 Aws::String m_connectAttachmentId;
144 bool m_connectAttachmentIdHasBeenSet = false;
145
146 Aws::String m_coreNetworkAddress;
147 bool m_coreNetworkAddressHasBeenSet = false;
148
149 Aws::String m_peerAddress;
150 bool m_peerAddressHasBeenSet = false;
151
152 BgpOptions m_bgpOptions;
153 bool m_bgpOptionsHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_insideCidrBlocks;
156 bool m_insideCidrBlocksHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160
162 bool m_clientTokenHasBeenSet = true;
163
164 Aws::String m_subnetArn;
165 bool m_subnetArnHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace NetworkManager
170} // namespace Aws
CreateConnectPeerRequest & WithInsideCidrBlocks(InsideCidrBlocksT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateConnectPeerRequest & WithBgpOptions(BgpOptionsT &&value)
CreateConnectPeerRequest & WithPeerAddress(PeerAddressT &&value)
virtual const char * GetServiceRequestName() const override
CreateConnectPeerRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< Aws::String > & GetInsideCidrBlocks() const
CreateConnectPeerRequest & WithSubnetArn(SubnetArnT &&value)
AWS_NETWORKMANAGER_API CreateConnectPeerRequest()=default
CreateConnectPeerRequest & AddInsideCidrBlocks(InsideCidrBlocksT &&value)
CreateConnectPeerRequest & WithCoreNetworkAddress(CoreNetworkAddressT &&value)
CreateConnectPeerRequest & WithConnectAttachmentId(ConnectAttachmentIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector