AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
53 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
54 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
55 inline Peering& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;}
56 inline Peering& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
57 inline Peering& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
59
61
64 inline const Aws::String& GetCoreNetworkArn() const{ return m_coreNetworkArn; }
65 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
66 inline void SetCoreNetworkArn(const Aws::String& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = value; }
67 inline void SetCoreNetworkArn(Aws::String&& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = std::move(value); }
68 inline void SetCoreNetworkArn(const char* value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn.assign(value); }
69 inline Peering& WithCoreNetworkArn(const Aws::String& value) { SetCoreNetworkArn(value); return *this;}
70 inline Peering& WithCoreNetworkArn(Aws::String&& value) { SetCoreNetworkArn(std::move(value)); return *this;}
71 inline Peering& WithCoreNetworkArn(const char* value) { SetCoreNetworkArn(value); return *this;}
73
75
78 inline const Aws::String& GetPeeringId() const{ return m_peeringId; }
79 inline bool PeeringIdHasBeenSet() const { return m_peeringIdHasBeenSet; }
80 inline void SetPeeringId(const Aws::String& value) { m_peeringIdHasBeenSet = true; m_peeringId = value; }
81 inline void SetPeeringId(Aws::String&& value) { m_peeringIdHasBeenSet = true; m_peeringId = std::move(value); }
82 inline void SetPeeringId(const char* value) { m_peeringIdHasBeenSet = true; m_peeringId.assign(value); }
83 inline Peering& WithPeeringId(const Aws::String& value) { SetPeeringId(value); return *this;}
84 inline Peering& WithPeeringId(Aws::String&& value) { SetPeeringId(std::move(value)); return *this;}
85 inline Peering& WithPeeringId(const char* value) { SetPeeringId(value); return *this;}
87
89
92 inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
93 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
94 inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
95 inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
96 inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
97 inline Peering& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
98 inline Peering& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
99 inline Peering& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
101
103
106 inline const PeeringType& GetPeeringType() const{ return m_peeringType; }
107 inline bool PeeringTypeHasBeenSet() const { return m_peeringTypeHasBeenSet; }
108 inline void SetPeeringType(const PeeringType& value) { m_peeringTypeHasBeenSet = true; m_peeringType = value; }
109 inline void SetPeeringType(PeeringType&& value) { m_peeringTypeHasBeenSet = true; m_peeringType = std::move(value); }
110 inline Peering& WithPeeringType(const PeeringType& value) { SetPeeringType(value); return *this;}
111 inline Peering& WithPeeringType(PeeringType&& value) { SetPeeringType(std::move(value)); return *this;}
113
115
118 inline const PeeringState& GetState() const{ return m_state; }
119 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
120 inline void SetState(const PeeringState& value) { m_stateHasBeenSet = true; m_state = value; }
121 inline void SetState(PeeringState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
122 inline Peering& WithState(const PeeringState& value) { SetState(value); return *this;}
123 inline Peering& WithState(PeeringState&& value) { SetState(std::move(value)); return *this;}
125
127
130 inline const Aws::String& GetEdgeLocation() const{ return m_edgeLocation; }
131 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
132 inline void SetEdgeLocation(const Aws::String& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = value; }
133 inline void SetEdgeLocation(Aws::String&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::move(value); }
134 inline void SetEdgeLocation(const char* value) { m_edgeLocationHasBeenSet = true; m_edgeLocation.assign(value); }
135 inline Peering& WithEdgeLocation(const Aws::String& value) { SetEdgeLocation(value); return *this;}
136 inline Peering& WithEdgeLocation(Aws::String&& value) { SetEdgeLocation(std::move(value)); return *this;}
137 inline Peering& WithEdgeLocation(const char* value) { SetEdgeLocation(value); return *this;}
139
141
144 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
145 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
146 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
147 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
148 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
149 inline Peering& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
150 inline Peering& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
151 inline Peering& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
153
155
158 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
161 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
162 inline Peering& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
163 inline Peering& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
164 inline Peering& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
165 inline Peering& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
167
169
172 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
173 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
174 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
175 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
176 inline Peering& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
177 inline Peering& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
179
181
184 inline const Aws::Vector<PeeringError>& GetLastModificationErrors() const{ return m_lastModificationErrors; }
185 inline bool LastModificationErrorsHasBeenSet() const { return m_lastModificationErrorsHasBeenSet; }
186 inline void SetLastModificationErrors(const Aws::Vector<PeeringError>& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors = value; }
187 inline void SetLastModificationErrors(Aws::Vector<PeeringError>&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors = std::move(value); }
190 inline Peering& AddLastModificationErrors(const PeeringError& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors.push_back(value); return *this; }
191 inline Peering& AddLastModificationErrors(PeeringError&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors.push_back(std::move(value)); return *this; }
193 private:
194
195 Aws::String m_coreNetworkId;
196 bool m_coreNetworkIdHasBeenSet = false;
197
198 Aws::String m_coreNetworkArn;
199 bool m_coreNetworkArnHasBeenSet = false;
200
201 Aws::String m_peeringId;
202 bool m_peeringIdHasBeenSet = false;
203
204 Aws::String m_ownerAccountId;
205 bool m_ownerAccountIdHasBeenSet = false;
206
207 PeeringType m_peeringType;
208 bool m_peeringTypeHasBeenSet = false;
209
210 PeeringState m_state;
211 bool m_stateHasBeenSet = false;
212
213 Aws::String m_edgeLocation;
214 bool m_edgeLocationHasBeenSet = false;
215
216 Aws::String m_resourceArn;
217 bool m_resourceArnHasBeenSet = false;
218
219 Aws::Vector<Tag> m_tags;
220 bool m_tagsHasBeenSet = false;
221
222 Aws::Utils::DateTime m_createdAt;
223 bool m_createdAtHasBeenSet = false;
224
225 Aws::Vector<PeeringError> m_lastModificationErrors;
226 bool m_lastModificationErrorsHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace NetworkManager
231} // namespace Aws
void SetEdgeLocation(Aws::String &&value)
Definition Peering.h:133
void SetCoreNetworkId(Aws::String &&value)
Definition Peering.h:53
void SetCoreNetworkArn(const Aws::String &value)
Definition Peering.h:66
Peering & WithPeeringId(Aws::String &&value)
Definition Peering.h:84
Peering & WithCoreNetworkId(Aws::String &&value)
Definition Peering.h:56
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Peering & WithPeeringType(const PeeringType &value)
Definition Peering.h:110
void SetCoreNetworkArn(const char *value)
Definition Peering.h:68
Peering & WithEdgeLocation(Aws::String &&value)
Definition Peering.h:136
const Aws::String & GetCoreNetworkArn() const
Definition Peering.h:64
Peering & WithCoreNetworkId(const char *value)
Definition Peering.h:57
const Aws::Vector< PeeringError > & GetLastModificationErrors() const
Definition Peering.h:184
bool LastModificationErrorsHasBeenSet() const
Definition Peering.h:185
void SetCoreNetworkId(const char *value)
Definition Peering.h:54
void SetTags(Aws::Vector< Tag > &&value)
Definition Peering.h:161
Peering & WithPeeringId(const Aws::String &value)
Definition Peering.h:83
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Peering.h:175
void SetOwnerAccountId(const char *value)
Definition Peering.h:96
AWS_NETWORKMANAGER_API Peering()
Peering & WithOwnerAccountId(Aws::String &&value)
Definition Peering.h:98
void SetPeeringId(Aws::String &&value)
Definition Peering.h:81
void SetEdgeLocation(const Aws::String &value)
Definition Peering.h:132
const Aws::String & GetResourceArn() const
Definition Peering.h:144
const Aws::String & GetEdgeLocation() const
Definition Peering.h:130
Peering & AddLastModificationErrors(PeeringError &&value)
Definition Peering.h:191
void SetPeeringId(const Aws::String &value)
Definition Peering.h:80
void SetPeeringType(PeeringType &&value)
Definition Peering.h:109
const Aws::Vector< Tag > & GetTags() const
Definition Peering.h:158
const PeeringType & GetPeeringType() const
Definition Peering.h:106
void SetResourceArn(const Aws::String &value)
Definition Peering.h:146
Peering & AddTags(Tag &&value)
Definition Peering.h:165
Peering & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Peering.h:176
void SetCoreNetworkArn(Aws::String &&value)
Definition Peering.h:67
const PeeringState & GetState() const
Definition Peering.h:118
Peering & WithTags(const Aws::Vector< Tag > &value)
Definition Peering.h:162
void SetCoreNetworkId(const Aws::String &value)
Definition Peering.h:52
Peering & WithEdgeLocation(const Aws::String &value)
Definition Peering.h:135
void SetPeeringType(const PeeringType &value)
Definition Peering.h:108
void SetLastModificationErrors(Aws::Vector< PeeringError > &&value)
Definition Peering.h:187
Peering & WithLastModificationErrors(const Aws::Vector< PeeringError > &value)
Definition Peering.h:188
Peering & WithCoreNetworkArn(const Aws::String &value)
Definition Peering.h:69
Peering & WithCoreNetworkId(const Aws::String &value)
Definition Peering.h:55
void SetOwnerAccountId(const Aws::String &value)
Definition Peering.h:94
void SetState(const PeeringState &value)
Definition Peering.h:120
Peering & WithEdgeLocation(const char *value)
Definition Peering.h:137
Peering & WithPeeringType(PeeringType &&value)
Definition Peering.h:111
Peering & WithResourceArn(Aws::String &&value)
Definition Peering.h:150
Peering & WithState(const PeeringState &value)
Definition Peering.h:122
void SetEdgeLocation(const char *value)
Definition Peering.h:134
const Aws::String & GetPeeringId() const
Definition Peering.h:78
void SetOwnerAccountId(Aws::String &&value)
Definition Peering.h:95
Peering & WithCoreNetworkArn(Aws::String &&value)
Definition Peering.h:70
Peering & WithTags(Aws::Vector< Tag > &&value)
Definition Peering.h:163
void SetResourceArn(const char *value)
Definition Peering.h:148
void SetResourceArn(Aws::String &&value)
Definition Peering.h:147
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Peering.h:172
void SetPeeringId(const char *value)
Definition Peering.h:82
Peering & WithLastModificationErrors(Aws::Vector< PeeringError > &&value)
Definition Peering.h:189
Peering & WithResourceArn(const Aws::String &value)
Definition Peering.h:149
Peering & WithState(PeeringState &&value)
Definition Peering.h:123
Peering & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Peering.h:177
Peering & AddLastModificationErrors(const PeeringError &value)
Definition Peering.h:190
Peering & AddTags(const Tag &value)
Definition Peering.h:164
void SetState(PeeringState &&value)
Definition Peering.h:121
AWS_NETWORKMANAGER_API Peering(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Peering.h:174
const Aws::String & GetOwnerAccountId() const
Definition Peering.h:92
Peering & WithOwnerAccountId(const char *value)
Definition Peering.h:99
Peering & WithCoreNetworkArn(const char *value)
Definition Peering.h:71
Peering & WithPeeringId(const char *value)
Definition Peering.h:85
void SetTags(const Aws::Vector< Tag > &value)
Definition Peering.h:160
void SetLastModificationErrors(const Aws::Vector< PeeringError > &value)
Definition Peering.h:186
Peering & WithOwnerAccountId(const Aws::String &value)
Definition Peering.h:97
AWS_NETWORKMANAGER_API Peering & operator=(Aws::Utils::Json::JsonView jsonValue)
Peering & WithResourceArn(const char *value)
Definition Peering.h:151
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