AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ConnectPeer.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/ConnectPeerConfiguration.h>
12#include <aws/networkmanager/model/ConnectPeerError.h>
13#include <aws/networkmanager/model/ConnectPeerState.h>
14#include <aws/networkmanager/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkManager {
26namespace Model {
27
34 public:
35 AWS_NETWORKMANAGER_API ConnectPeer() = default;
36 AWS_NETWORKMANAGER_API ConnectPeer(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKMANAGER_API ConnectPeer& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
45 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
46 template <typename CoreNetworkIdT = Aws::String>
47 void SetCoreNetworkId(CoreNetworkIdT&& value) {
48 m_coreNetworkIdHasBeenSet = true;
49 m_coreNetworkId = std::forward<CoreNetworkIdT>(value);
50 }
51 template <typename CoreNetworkIdT = Aws::String>
52 ConnectPeer& WithCoreNetworkId(CoreNetworkIdT&& value) {
53 SetCoreNetworkId(std::forward<CoreNetworkIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetConnectAttachmentId() const { return m_connectAttachmentId; }
63 inline bool ConnectAttachmentIdHasBeenSet() const { return m_connectAttachmentIdHasBeenSet; }
64 template <typename ConnectAttachmentIdT = Aws::String>
65 void SetConnectAttachmentId(ConnectAttachmentIdT&& value) {
66 m_connectAttachmentIdHasBeenSet = true;
67 m_connectAttachmentId = std::forward<ConnectAttachmentIdT>(value);
68 }
69 template <typename ConnectAttachmentIdT = Aws::String>
70 ConnectPeer& WithConnectAttachmentId(ConnectAttachmentIdT&& value) {
71 SetConnectAttachmentId(std::forward<ConnectAttachmentIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetConnectPeerId() const { return m_connectPeerId; }
81 inline bool ConnectPeerIdHasBeenSet() const { return m_connectPeerIdHasBeenSet; }
82 template <typename ConnectPeerIdT = Aws::String>
83 void SetConnectPeerId(ConnectPeerIdT&& value) {
84 m_connectPeerIdHasBeenSet = true;
85 m_connectPeerId = std::forward<ConnectPeerIdT>(value);
86 }
87 template <typename ConnectPeerIdT = Aws::String>
88 ConnectPeer& WithConnectPeerId(ConnectPeerIdT&& value) {
89 SetConnectPeerId(std::forward<ConnectPeerIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
99 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
100 template <typename EdgeLocationT = Aws::String>
101 void SetEdgeLocation(EdgeLocationT&& value) {
102 m_edgeLocationHasBeenSet = true;
103 m_edgeLocation = std::forward<EdgeLocationT>(value);
104 }
105 template <typename EdgeLocationT = Aws::String>
106 ConnectPeer& WithEdgeLocation(EdgeLocationT&& value) {
107 SetEdgeLocation(std::forward<EdgeLocationT>(value));
108 return *this;
109 }
111
113
116 inline ConnectPeerState GetState() const { return m_state; }
117 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 inline void SetState(ConnectPeerState value) {
119 m_stateHasBeenSet = true;
120 m_state = value;
121 }
123 SetState(value);
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
133 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
134 template <typename CreatedAtT = Aws::Utils::DateTime>
135 void SetCreatedAt(CreatedAtT&& value) {
136 m_createdAtHasBeenSet = true;
137 m_createdAt = std::forward<CreatedAtT>(value);
138 }
139 template <typename CreatedAtT = Aws::Utils::DateTime>
140 ConnectPeer& WithCreatedAt(CreatedAtT&& value) {
141 SetCreatedAt(std::forward<CreatedAtT>(value));
142 return *this;
143 }
145
147
150 inline const ConnectPeerConfiguration& GetConfiguration() const { return m_configuration; }
151 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
152 template <typename ConfigurationT = ConnectPeerConfiguration>
153 void SetConfiguration(ConfigurationT&& value) {
154 m_configurationHasBeenSet = true;
155 m_configuration = std::forward<ConfigurationT>(value);
156 }
157 template <typename ConfigurationT = ConnectPeerConfiguration>
158 ConnectPeer& WithConfiguration(ConfigurationT&& value) {
159 SetConfiguration(std::forward<ConfigurationT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 template <typename TagsT = Aws::Vector<Tag>>
171 void SetTags(TagsT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags = std::forward<TagsT>(value);
174 }
175 template <typename TagsT = Aws::Vector<Tag>>
176 ConnectPeer& WithTags(TagsT&& value) {
177 SetTags(std::forward<TagsT>(value));
178 return *this;
179 }
180 template <typename TagsT = Tag>
181 ConnectPeer& AddTags(TagsT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags.emplace_back(std::forward<TagsT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::String& GetSubnetArn() const { return m_subnetArn; }
194 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
195 template <typename SubnetArnT = Aws::String>
196 void SetSubnetArn(SubnetArnT&& value) {
197 m_subnetArnHasBeenSet = true;
198 m_subnetArn = std::forward<SubnetArnT>(value);
199 }
200 template <typename SubnetArnT = Aws::String>
201 ConnectPeer& WithSubnetArn(SubnetArnT&& value) {
202 SetSubnetArn(std::forward<SubnetArnT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Vector<ConnectPeerError>& GetLastModificationErrors() const { return m_lastModificationErrors; }
212 inline bool LastModificationErrorsHasBeenSet() const { return m_lastModificationErrorsHasBeenSet; }
213 template <typename LastModificationErrorsT = Aws::Vector<ConnectPeerError>>
214 void SetLastModificationErrors(LastModificationErrorsT&& value) {
215 m_lastModificationErrorsHasBeenSet = true;
216 m_lastModificationErrors = std::forward<LastModificationErrorsT>(value);
217 }
218 template <typename LastModificationErrorsT = Aws::Vector<ConnectPeerError>>
219 ConnectPeer& WithLastModificationErrors(LastModificationErrorsT&& value) {
220 SetLastModificationErrors(std::forward<LastModificationErrorsT>(value));
221 return *this;
222 }
223 template <typename LastModificationErrorsT = ConnectPeerError>
224 ConnectPeer& AddLastModificationErrors(LastModificationErrorsT&& value) {
225 m_lastModificationErrorsHasBeenSet = true;
226 m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_coreNetworkId;
232
233 Aws::String m_connectAttachmentId;
234
235 Aws::String m_connectPeerId;
236
237 Aws::String m_edgeLocation;
238
240
241 Aws::Utils::DateTime m_createdAt{};
242
243 ConnectPeerConfiguration m_configuration;
244
245 Aws::Vector<Tag> m_tags;
246
247 Aws::String m_subnetArn;
248
249 Aws::Vector<ConnectPeerError> m_lastModificationErrors;
250 bool m_coreNetworkIdHasBeenSet = false;
251 bool m_connectAttachmentIdHasBeenSet = false;
252 bool m_connectPeerIdHasBeenSet = false;
253 bool m_edgeLocationHasBeenSet = false;
254 bool m_stateHasBeenSet = false;
255 bool m_createdAtHasBeenSet = false;
256 bool m_configurationHasBeenSet = false;
257 bool m_tagsHasBeenSet = false;
258 bool m_subnetArnHasBeenSet = false;
259 bool m_lastModificationErrorsHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace NetworkManager
264} // namespace Aws
ConnectPeer & WithTags(TagsT &&value)
void SetCreatedAt(CreatedAtT &&value)
const ConnectPeerConfiguration & GetConfiguration() const
const Aws::String & GetCoreNetworkId() const
Definition ConnectPeer.h:44
void SetConnectAttachmentId(ConnectAttachmentIdT &&value)
Definition ConnectPeer.h:65
ConnectPeer & AddTags(TagsT &&value)
ConnectPeer & WithState(ConnectPeerState value)
ConnectPeer & WithSubnetArn(SubnetArnT &&value)
const Aws::String & GetEdgeLocation() const
Definition ConnectPeer.h:98
void SetEdgeLocation(EdgeLocationT &&value)
const Aws::String & GetConnectPeerId() const
Definition ConnectPeer.h:80
ConnectPeer & WithConnectAttachmentId(ConnectAttachmentIdT &&value)
Definition ConnectPeer.h:70
ConnectPeer & WithEdgeLocation(EdgeLocationT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetConfiguration(ConfigurationT &&value)
void SetCoreNetworkId(CoreNetworkIdT &&value)
Definition ConnectPeer.h:47
void SetState(ConnectPeerState value)
AWS_NETWORKMANAGER_API ConnectPeer()=default
const Aws::Vector< Tag > & GetTags() const
void SetSubnetArn(SubnetArnT &&value)
const Aws::Vector< ConnectPeerError > & GetLastModificationErrors() const
ConnectPeer & WithConfiguration(ConfigurationT &&value)
ConnectPeer & AddLastModificationErrors(LastModificationErrorsT &&value)
AWS_NETWORKMANAGER_API ConnectPeer(Aws::Utils::Json::JsonView jsonValue)
ConnectPeer & WithConnectPeerId(ConnectPeerIdT &&value)
Definition ConnectPeer.h:88
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API ConnectPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConnectPeerId(ConnectPeerIdT &&value)
Definition ConnectPeer.h:83
const Aws::String & GetConnectAttachmentId() const
Definition ConnectPeer.h:62
ConnectPeer & WithCreatedAt(CreatedAtT &&value)
ConnectPeerState GetState() const
ConnectPeer & WithCoreNetworkId(CoreNetworkIdT &&value)
Definition ConnectPeer.h:52
void SetLastModificationErrors(LastModificationErrorsT &&value)
ConnectPeer & WithLastModificationErrors(LastModificationErrorsT &&value)
const Aws::String & GetSubnetArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue