AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Peering.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/PeeringError.h>
12#include <aws/networkmanager/model/PeeringState.h>
13#include <aws/networkmanager/model/PeeringType.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
33class Peering {
34 public:
35 AWS_NETWORKMANAGER_API Peering() = default;
36 AWS_NETWORKMANAGER_API Peering(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKMANAGER_API Peering& 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 Peering& WithCoreNetworkId(CoreNetworkIdT&& value) {
53 SetCoreNetworkId(std::forward<CoreNetworkIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetCoreNetworkArn() const { return m_coreNetworkArn; }
63 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
64 template <typename CoreNetworkArnT = Aws::String>
65 void SetCoreNetworkArn(CoreNetworkArnT&& value) {
66 m_coreNetworkArnHasBeenSet = true;
67 m_coreNetworkArn = std::forward<CoreNetworkArnT>(value);
68 }
69 template <typename CoreNetworkArnT = Aws::String>
70 Peering& WithCoreNetworkArn(CoreNetworkArnT&& value) {
71 SetCoreNetworkArn(std::forward<CoreNetworkArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetPeeringId() const { return m_peeringId; }
81 inline bool PeeringIdHasBeenSet() const { return m_peeringIdHasBeenSet; }
82 template <typename PeeringIdT = Aws::String>
83 void SetPeeringId(PeeringIdT&& value) {
84 m_peeringIdHasBeenSet = true;
85 m_peeringId = std::forward<PeeringIdT>(value);
86 }
87 template <typename PeeringIdT = Aws::String>
88 Peering& WithPeeringId(PeeringIdT&& value) {
89 SetPeeringId(std::forward<PeeringIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
99 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
100 template <typename OwnerAccountIdT = Aws::String>
101 void SetOwnerAccountId(OwnerAccountIdT&& value) {
102 m_ownerAccountIdHasBeenSet = true;
103 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
104 }
105 template <typename OwnerAccountIdT = Aws::String>
106 Peering& WithOwnerAccountId(OwnerAccountIdT&& value) {
107 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
108 return *this;
109 }
111
113
116 inline PeeringType GetPeeringType() const { return m_peeringType; }
117 inline bool PeeringTypeHasBeenSet() const { return m_peeringTypeHasBeenSet; }
118 inline void SetPeeringType(PeeringType value) {
119 m_peeringTypeHasBeenSet = true;
120 m_peeringType = value;
121 }
123 SetPeeringType(value);
124 return *this;
125 }
127
129
132 inline PeeringState GetState() const { return m_state; }
133 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
134 inline void SetState(PeeringState value) {
135 m_stateHasBeenSet = true;
136 m_state = value;
137 }
139 SetState(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
149 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
150 template <typename EdgeLocationT = Aws::String>
151 void SetEdgeLocation(EdgeLocationT&& value) {
152 m_edgeLocationHasBeenSet = true;
153 m_edgeLocation = std::forward<EdgeLocationT>(value);
154 }
155 template <typename EdgeLocationT = Aws::String>
156 Peering& WithEdgeLocation(EdgeLocationT&& value) {
157 SetEdgeLocation(std::forward<EdgeLocationT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
167 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
168 template <typename ResourceArnT = Aws::String>
169 void SetResourceArn(ResourceArnT&& value) {
170 m_resourceArnHasBeenSet = true;
171 m_resourceArn = std::forward<ResourceArnT>(value);
172 }
173 template <typename ResourceArnT = Aws::String>
174 Peering& WithResourceArn(ResourceArnT&& value) {
175 SetResourceArn(std::forward<ResourceArnT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 template <typename TagsT = Aws::Vector<Tag>>
187 void SetTags(TagsT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags = std::forward<TagsT>(value);
190 }
191 template <typename TagsT = Aws::Vector<Tag>>
192 Peering& WithTags(TagsT&& value) {
193 SetTags(std::forward<TagsT>(value));
194 return *this;
195 }
196 template <typename TagsT = Tag>
197 Peering& AddTags(TagsT&& value) {
198 m_tagsHasBeenSet = true;
199 m_tags.emplace_back(std::forward<TagsT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
209 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
210 template <typename CreatedAtT = Aws::Utils::DateTime>
211 void SetCreatedAt(CreatedAtT&& value) {
212 m_createdAtHasBeenSet = true;
213 m_createdAt = std::forward<CreatedAtT>(value);
214 }
215 template <typename CreatedAtT = Aws::Utils::DateTime>
216 Peering& WithCreatedAt(CreatedAtT&& value) {
217 SetCreatedAt(std::forward<CreatedAtT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Vector<PeeringError>& GetLastModificationErrors() const { return m_lastModificationErrors; }
227 inline bool LastModificationErrorsHasBeenSet() const { return m_lastModificationErrorsHasBeenSet; }
228 template <typename LastModificationErrorsT = Aws::Vector<PeeringError>>
229 void SetLastModificationErrors(LastModificationErrorsT&& value) {
230 m_lastModificationErrorsHasBeenSet = true;
231 m_lastModificationErrors = std::forward<LastModificationErrorsT>(value);
232 }
233 template <typename LastModificationErrorsT = Aws::Vector<PeeringError>>
234 Peering& WithLastModificationErrors(LastModificationErrorsT&& value) {
235 SetLastModificationErrors(std::forward<LastModificationErrorsT>(value));
236 return *this;
237 }
238 template <typename LastModificationErrorsT = PeeringError>
239 Peering& AddLastModificationErrors(LastModificationErrorsT&& value) {
240 m_lastModificationErrorsHasBeenSet = true;
241 m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_coreNetworkId;
247
248 Aws::String m_coreNetworkArn;
249
250 Aws::String m_peeringId;
251
252 Aws::String m_ownerAccountId;
253
254 PeeringType m_peeringType{PeeringType::NOT_SET};
255
257
258 Aws::String m_edgeLocation;
259
260 Aws::String m_resourceArn;
261
262 Aws::Vector<Tag> m_tags;
263
264 Aws::Utils::DateTime m_createdAt{};
265
266 Aws::Vector<PeeringError> m_lastModificationErrors;
267 bool m_coreNetworkIdHasBeenSet = false;
268 bool m_coreNetworkArnHasBeenSet = false;
269 bool m_peeringIdHasBeenSet = false;
270 bool m_ownerAccountIdHasBeenSet = false;
271 bool m_peeringTypeHasBeenSet = false;
272 bool m_stateHasBeenSet = false;
273 bool m_edgeLocationHasBeenSet = false;
274 bool m_resourceArnHasBeenSet = false;
275 bool m_tagsHasBeenSet = false;
276 bool m_createdAtHasBeenSet = false;
277 bool m_lastModificationErrorsHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace NetworkManager
282} // namespace Aws
Peering & AddLastModificationErrors(LastModificationErrorsT &&value)
Definition Peering.h:239
Peering & WithResourceArn(ResourceArnT &&value)
Definition Peering.h:174
void SetCoreNetworkArn(CoreNetworkArnT &&value)
Definition Peering.h:65
void SetPeeringType(PeeringType value)
Definition Peering.h:118
Peering & WithState(PeeringState value)
Definition Peering.h:138
Peering & WithPeeringId(PeeringIdT &&value)
Definition Peering.h:88
void SetResourceArn(ResourceArnT &&value)
Definition Peering.h:169
void SetPeeringId(PeeringIdT &&value)
Definition Peering.h:83
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(PeeringState value)
Definition Peering.h:134
void SetCreatedAt(CreatedAtT &&value)
Definition Peering.h:211
const Aws::String & GetCoreNetworkArn() const
Definition Peering.h:62
const Aws::Vector< PeeringError > & GetLastModificationErrors() const
Definition Peering.h:226
bool LastModificationErrorsHasBeenSet() const
Definition Peering.h:227
PeeringType GetPeeringType() const
Definition Peering.h:116
const Aws::String & GetResourceArn() const
Definition Peering.h:166
void SetOwnerAccountId(OwnerAccountIdT &&value)
Definition Peering.h:101
const Aws::String & GetEdgeLocation() const
Definition Peering.h:148
const Aws::Vector< Tag > & GetTags() const
Definition Peering.h:184
Peering & WithEdgeLocation(EdgeLocationT &&value)
Definition Peering.h:156
Peering & WithLastModificationErrors(LastModificationErrorsT &&value)
Definition Peering.h:234
Peering & AddTags(TagsT &&value)
Definition Peering.h:197
Peering & WithOwnerAccountId(OwnerAccountIdT &&value)
Definition Peering.h:106
Peering & WithCoreNetworkArn(CoreNetworkArnT &&value)
Definition Peering.h:70
AWS_NETWORKMANAGER_API Peering()=default
PeeringState GetState() const
Definition Peering.h:132
Peering & WithPeeringType(PeeringType value)
Definition Peering.h:122
Peering & WithTags(TagsT &&value)
Definition Peering.h:192
Peering & WithCoreNetworkId(CoreNetworkIdT &&value)
Definition Peering.h:52
const Aws::String & GetPeeringId() const
Definition Peering.h:80
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Peering.h:208
void SetTags(TagsT &&value)
Definition Peering.h:187
void SetLastModificationErrors(LastModificationErrorsT &&value)
Definition Peering.h:229
void SetCoreNetworkId(CoreNetworkIdT &&value)
Definition Peering.h:47
AWS_NETWORKMANAGER_API Peering(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOwnerAccountId() const
Definition Peering.h:98
void SetEdgeLocation(EdgeLocationT &&value)
Definition Peering.h:151
Peering & WithCreatedAt(CreatedAtT &&value)
Definition Peering.h:216
AWS_NETWORKMANAGER_API Peering & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCoreNetworkId() const
Definition Peering.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue