AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Peering.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/PeeringType.h>
10#include <aws/networkmanager/model/PeeringState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/networkmanager/model/Tag.h>
14#include <aws/networkmanager/model/PeeringError.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace NetworkManager
28{
29namespace Model
30{
31
37 class Peering
38 {
39 public:
40 AWS_NETWORKMANAGER_API Peering() = default;
41 AWS_NETWORKMANAGER_API Peering(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKMANAGER_API Peering& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
51 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
52 template<typename CoreNetworkIdT = Aws::String>
53 void SetCoreNetworkId(CoreNetworkIdT&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
54 template<typename CoreNetworkIdT = Aws::String>
55 Peering& WithCoreNetworkId(CoreNetworkIdT&& value) { SetCoreNetworkId(std::forward<CoreNetworkIdT>(value)); return *this;}
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) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = std::forward<CoreNetworkArnT>(value); }
66 template<typename CoreNetworkArnT = Aws::String>
67 Peering& WithCoreNetworkArn(CoreNetworkArnT&& value) { SetCoreNetworkArn(std::forward<CoreNetworkArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetPeeringId() const { return m_peeringId; }
75 inline bool PeeringIdHasBeenSet() const { return m_peeringIdHasBeenSet; }
76 template<typename PeeringIdT = Aws::String>
77 void SetPeeringId(PeeringIdT&& value) { m_peeringIdHasBeenSet = true; m_peeringId = std::forward<PeeringIdT>(value); }
78 template<typename PeeringIdT = Aws::String>
79 Peering& WithPeeringId(PeeringIdT&& value) { SetPeeringId(std::forward<PeeringIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
87 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
88 template<typename OwnerAccountIdT = Aws::String>
89 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
90 template<typename OwnerAccountIdT = Aws::String>
91 Peering& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
93
95
98 inline PeeringType GetPeeringType() const { return m_peeringType; }
99 inline bool PeeringTypeHasBeenSet() const { return m_peeringTypeHasBeenSet; }
100 inline void SetPeeringType(PeeringType value) { m_peeringTypeHasBeenSet = true; m_peeringType = value; }
101 inline Peering& WithPeeringType(PeeringType value) { SetPeeringType(value); return *this;}
103
105
108 inline PeeringState GetState() const { return m_state; }
109 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
110 inline void SetState(PeeringState value) { m_stateHasBeenSet = true; m_state = value; }
111 inline Peering& WithState(PeeringState value) { SetState(value); return *this;}
113
115
118 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
119 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
120 template<typename EdgeLocationT = Aws::String>
121 void SetEdgeLocation(EdgeLocationT&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::forward<EdgeLocationT>(value); }
122 template<typename EdgeLocationT = Aws::String>
123 Peering& WithEdgeLocation(EdgeLocationT&& value) { SetEdgeLocation(std::forward<EdgeLocationT>(value)); return *this;}
125
127
130 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
131 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
132 template<typename ResourceArnT = Aws::String>
133 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
134 template<typename ResourceArnT = Aws::String>
135 Peering& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
137
139
142 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template<typename TagsT = Aws::Vector<Tag>>
145 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
146 template<typename TagsT = Aws::Vector<Tag>>
147 Peering& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
148 template<typename TagsT = Tag>
149 Peering& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
151
153
156 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
157 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
158 template<typename CreatedAtT = Aws::Utils::DateTime>
159 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
160 template<typename CreatedAtT = Aws::Utils::DateTime>
161 Peering& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
163
165
168 inline const Aws::Vector<PeeringError>& GetLastModificationErrors() const { return m_lastModificationErrors; }
169 inline bool LastModificationErrorsHasBeenSet() const { return m_lastModificationErrorsHasBeenSet; }
170 template<typename LastModificationErrorsT = Aws::Vector<PeeringError>>
171 void SetLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors = std::forward<LastModificationErrorsT>(value); }
172 template<typename LastModificationErrorsT = Aws::Vector<PeeringError>>
173 Peering& WithLastModificationErrors(LastModificationErrorsT&& value) { SetLastModificationErrors(std::forward<LastModificationErrorsT>(value)); return *this;}
174 template<typename LastModificationErrorsT = PeeringError>
175 Peering& AddLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value)); return *this; }
177 private:
178
179 Aws::String m_coreNetworkId;
180 bool m_coreNetworkIdHasBeenSet = false;
181
182 Aws::String m_coreNetworkArn;
183 bool m_coreNetworkArnHasBeenSet = false;
184
185 Aws::String m_peeringId;
186 bool m_peeringIdHasBeenSet = false;
187
188 Aws::String m_ownerAccountId;
189 bool m_ownerAccountIdHasBeenSet = false;
190
191 PeeringType m_peeringType{PeeringType::NOT_SET};
192 bool m_peeringTypeHasBeenSet = false;
193
195 bool m_stateHasBeenSet = false;
196
197 Aws::String m_edgeLocation;
198 bool m_edgeLocationHasBeenSet = false;
199
200 Aws::String m_resourceArn;
201 bool m_resourceArnHasBeenSet = false;
202
203 Aws::Vector<Tag> m_tags;
204 bool m_tagsHasBeenSet = false;
205
206 Aws::Utils::DateTime m_createdAt{};
207 bool m_createdAtHasBeenSet = false;
208
209 Aws::Vector<PeeringError> m_lastModificationErrors;
210 bool m_lastModificationErrorsHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace NetworkManager
215} // namespace Aws
Peering & AddLastModificationErrors(LastModificationErrorsT &&value)
Definition Peering.h:175
Peering & WithResourceArn(ResourceArnT &&value)
Definition Peering.h:135
void SetCoreNetworkArn(CoreNetworkArnT &&value)
Definition Peering.h:65
void SetPeeringType(PeeringType value)
Definition Peering.h:100
Peering & WithState(PeeringState value)
Definition Peering.h:111
Peering & WithPeeringId(PeeringIdT &&value)
Definition Peering.h:79
void SetResourceArn(ResourceArnT &&value)
Definition Peering.h:133
void SetPeeringId(PeeringIdT &&value)
Definition Peering.h:77
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(PeeringState value)
Definition Peering.h:110
void SetCreatedAt(CreatedAtT &&value)
Definition Peering.h:159
const Aws::String & GetCoreNetworkArn() const
Definition Peering.h:62
const Aws::Vector< PeeringError > & GetLastModificationErrors() const
Definition Peering.h:168
bool LastModificationErrorsHasBeenSet() const
Definition Peering.h:169
PeeringType GetPeeringType() const
Definition Peering.h:98
const Aws::String & GetResourceArn() const
Definition Peering.h:130
void SetOwnerAccountId(OwnerAccountIdT &&value)
Definition Peering.h:89
const Aws::String & GetEdgeLocation() const
Definition Peering.h:118
const Aws::Vector< Tag > & GetTags() const
Definition Peering.h:142
Peering & WithEdgeLocation(EdgeLocationT &&value)
Definition Peering.h:123
Peering & WithLastModificationErrors(LastModificationErrorsT &&value)
Definition Peering.h:173
Peering & AddTags(TagsT &&value)
Definition Peering.h:149
Peering & WithOwnerAccountId(OwnerAccountIdT &&value)
Definition Peering.h:91
Peering & WithCoreNetworkArn(CoreNetworkArnT &&value)
Definition Peering.h:67
AWS_NETWORKMANAGER_API Peering()=default
PeeringState GetState() const
Definition Peering.h:108
Peering & WithPeeringType(PeeringType value)
Definition Peering.h:101
Peering & WithTags(TagsT &&value)
Definition Peering.h:147
Peering & WithCoreNetworkId(CoreNetworkIdT &&value)
Definition Peering.h:55
const Aws::String & GetPeeringId() const
Definition Peering.h:74
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Peering.h:156
void SetTags(TagsT &&value)
Definition Peering.h:145
void SetLastModificationErrors(LastModificationErrorsT &&value)
Definition Peering.h:171
void SetCoreNetworkId(CoreNetworkIdT &&value)
Definition Peering.h:53
AWS_NETWORKMANAGER_API Peering(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOwnerAccountId() const
Definition Peering.h:86
void SetEdgeLocation(EdgeLocationT &&value)
Definition Peering.h:121
Peering & WithCreatedAt(CreatedAtT &&value)
Definition Peering.h:161
AWS_NETWORKMANAGER_API Peering & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCoreNetworkId() const
Definition Peering.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue