AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Endpoint.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/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/EndpointEventBus.h>
12#include <aws/eventbridge/model/EndpointState.h>
13#include <aws/eventbridge/model/ReplicationConfig.h>
14#include <aws/eventbridge/model/RoutingConfig.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EventBridge {
26namespace Model {
27
38class Endpoint {
39 public:
40 AWS_EVENTBRIDGE_API Endpoint() = default;
41 AWS_EVENTBRIDGE_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
42 AWS_EVENTBRIDGE_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template <typename NameT = Aws::String>
52 void SetName(NameT&& value) {
53 m_nameHasBeenSet = true;
54 m_name = std::forward<NameT>(value);
55 }
56 template <typename NameT = Aws::String>
57 Endpoint& WithName(NameT&& value) {
58 SetName(std::forward<NameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
75 Endpoint& WithDescription(DescriptionT&& value) {
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetArn() const { return m_arn; }
86 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
87 template <typename ArnT = Aws::String>
88 void SetArn(ArnT&& value) {
89 m_arnHasBeenSet = true;
90 m_arn = std::forward<ArnT>(value);
91 }
92 template <typename ArnT = Aws::String>
93 Endpoint& WithArn(ArnT&& value) {
94 SetArn(std::forward<ArnT>(value));
95 return *this;
96 }
98
100
103 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
104 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
105 template <typename RoutingConfigT = RoutingConfig>
106 void SetRoutingConfig(RoutingConfigT&& value) {
107 m_routingConfigHasBeenSet = true;
108 m_routingConfig = std::forward<RoutingConfigT>(value);
109 }
110 template <typename RoutingConfigT = RoutingConfig>
111 Endpoint& WithRoutingConfig(RoutingConfigT&& value) {
112 SetRoutingConfig(std::forward<RoutingConfigT>(value));
113 return *this;
114 }
116
118
124 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
125 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
126 template <typename ReplicationConfigT = ReplicationConfig>
127 void SetReplicationConfig(ReplicationConfigT&& value) {
128 m_replicationConfigHasBeenSet = true;
129 m_replicationConfig = std::forward<ReplicationConfigT>(value);
130 }
131 template <typename ReplicationConfigT = ReplicationConfig>
132 Endpoint& WithReplicationConfig(ReplicationConfigT&& value) {
133 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
143 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
144 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
145 void SetEventBuses(EventBusesT&& value) {
146 m_eventBusesHasBeenSet = true;
147 m_eventBuses = std::forward<EventBusesT>(value);
148 }
149 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
150 Endpoint& WithEventBuses(EventBusesT&& value) {
151 SetEventBuses(std::forward<EventBusesT>(value));
152 return *this;
153 }
154 template <typename EventBusesT = EndpointEventBus>
155 Endpoint& AddEventBuses(EventBusesT&& value) {
156 m_eventBusesHasBeenSet = true;
157 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
167 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
168 template <typename RoleArnT = Aws::String>
169 void SetRoleArn(RoleArnT&& value) {
170 m_roleArnHasBeenSet = true;
171 m_roleArn = std::forward<RoleArnT>(value);
172 }
173 template <typename RoleArnT = Aws::String>
174 Endpoint& WithRoleArn(RoleArnT&& value) {
175 SetRoleArn(std::forward<RoleArnT>(value));
176 return *this;
177 }
179
181
186 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
187 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
188 template <typename EndpointIdT = Aws::String>
189 void SetEndpointId(EndpointIdT&& value) {
190 m_endpointIdHasBeenSet = true;
191 m_endpointId = std::forward<EndpointIdT>(value);
192 }
193 template <typename EndpointIdT = Aws::String>
194 Endpoint& WithEndpointId(EndpointIdT&& value) {
195 SetEndpointId(std::forward<EndpointIdT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
205 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
206 template <typename EndpointUrlT = Aws::String>
207 void SetEndpointUrl(EndpointUrlT&& value) {
208 m_endpointUrlHasBeenSet = true;
209 m_endpointUrl = std::forward<EndpointUrlT>(value);
210 }
211 template <typename EndpointUrlT = Aws::String>
212 Endpoint& WithEndpointUrl(EndpointUrlT&& value) {
213 SetEndpointUrl(std::forward<EndpointUrlT>(value));
214 return *this;
215 }
217
219
222 inline EndpointState GetState() const { return m_state; }
223 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
224 inline void SetState(EndpointState value) {
225 m_stateHasBeenSet = true;
226 m_state = value;
227 }
229 SetState(value);
230 return *this;
231 }
233
235
238 inline const Aws::String& GetStateReason() const { return m_stateReason; }
239 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
240 template <typename StateReasonT = Aws::String>
241 void SetStateReason(StateReasonT&& value) {
242 m_stateReasonHasBeenSet = true;
243 m_stateReason = std::forward<StateReasonT>(value);
244 }
245 template <typename StateReasonT = Aws::String>
246 Endpoint& WithStateReason(StateReasonT&& value) {
247 SetStateReason(std::forward<StateReasonT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
257 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
258 template <typename CreationTimeT = Aws::Utils::DateTime>
259 void SetCreationTime(CreationTimeT&& value) {
260 m_creationTimeHasBeenSet = true;
261 m_creationTime = std::forward<CreationTimeT>(value);
262 }
263 template <typename CreationTimeT = Aws::Utils::DateTime>
264 Endpoint& WithCreationTime(CreationTimeT&& value) {
265 SetCreationTime(std::forward<CreationTimeT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
275 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
276 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
277 void SetLastModifiedTime(LastModifiedTimeT&& value) {
278 m_lastModifiedTimeHasBeenSet = true;
279 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
280 }
281 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
282 Endpoint& WithLastModifiedTime(LastModifiedTimeT&& value) {
283 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
284 return *this;
285 }
287 private:
288 Aws::String m_name;
289
290 Aws::String m_description;
291
292 Aws::String m_arn;
293
294 RoutingConfig m_routingConfig;
295
296 ReplicationConfig m_replicationConfig;
297
299
300 Aws::String m_roleArn;
301
302 Aws::String m_endpointId;
303
304 Aws::String m_endpointUrl;
305
307
308 Aws::String m_stateReason;
309
310 Aws::Utils::DateTime m_creationTime{};
311
312 Aws::Utils::DateTime m_lastModifiedTime{};
313 bool m_nameHasBeenSet = false;
314 bool m_descriptionHasBeenSet = false;
315 bool m_arnHasBeenSet = false;
316 bool m_routingConfigHasBeenSet = false;
317 bool m_replicationConfigHasBeenSet = false;
318 bool m_eventBusesHasBeenSet = false;
319 bool m_roleArnHasBeenSet = false;
320 bool m_endpointIdHasBeenSet = false;
321 bool m_endpointUrlHasBeenSet = false;
322 bool m_stateHasBeenSet = false;
323 bool m_stateReasonHasBeenSet = false;
324 bool m_creationTimeHasBeenSet = false;
325 bool m_lastModifiedTimeHasBeenSet = false;
326};
327
328} // namespace Model
329} // namespace EventBridge
330} // namespace Aws
Endpoint & WithArn(ArnT &&value)
Definition Endpoint.h:93
const RoutingConfig & GetRoutingConfig() const
Definition Endpoint.h:103
void SetArn(ArnT &&value)
Definition Endpoint.h:88
Endpoint & WithEndpointId(EndpointIdT &&value)
Definition Endpoint.h:194
void SetEventBuses(EventBusesT &&value)
Definition Endpoint.h:145
void SetState(EndpointState value)
Definition Endpoint.h:224
const Aws::String & GetEndpointId() const
Definition Endpoint.h:186
Endpoint & WithStateReason(StateReasonT &&value)
Definition Endpoint.h:246
void SetRoleArn(RoleArnT &&value)
Definition Endpoint.h:169
const ReplicationConfig & GetReplicationConfig() const
Definition Endpoint.h:124
Endpoint & WithName(NameT &&value)
Definition Endpoint.h:57
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Endpoint.h:274
void SetDescription(DescriptionT &&value)
Definition Endpoint.h:70
AWS_EVENTBRIDGE_API Endpoint()=default
const Aws::String & GetName() const
Definition Endpoint.h:49
Endpoint & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Endpoint.h:282
Endpoint & WithRoutingConfig(RoutingConfigT &&value)
Definition Endpoint.h:111
void SetCreationTime(CreationTimeT &&value)
Definition Endpoint.h:259
AWS_EVENTBRIDGE_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRoutingConfig(RoutingConfigT &&value)
Definition Endpoint.h:106
void SetStateReason(StateReasonT &&value)
Definition Endpoint.h:241
void SetReplicationConfig(ReplicationConfigT &&value)
Definition Endpoint.h:127
bool ReplicationConfigHasBeenSet() const
Definition Endpoint.h:125
Endpoint & WithDescription(DescriptionT &&value)
Definition Endpoint.h:75
const Aws::String & GetRoleArn() const
Definition Endpoint.h:166
Endpoint & WithState(EndpointState value)
Definition Endpoint.h:228
const Aws::String & GetEndpointUrl() const
Definition Endpoint.h:204
const Aws::String & GetDescription() const
Definition Endpoint.h:67
bool LastModifiedTimeHasBeenSet() const
Definition Endpoint.h:275
Endpoint & WithEndpointUrl(EndpointUrlT &&value)
Definition Endpoint.h:212
EndpointState GetState() const
Definition Endpoint.h:222
Endpoint & WithCreationTime(CreationTimeT &&value)
Definition Endpoint.h:264
const Aws::String & GetArn() const
Definition Endpoint.h:85
Endpoint & WithReplicationConfig(ReplicationConfigT &&value)
Definition Endpoint.h:132
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Endpoint.h:277
Endpoint & AddEventBuses(EventBusesT &&value)
Definition Endpoint.h:155
const Aws::Utils::DateTime & GetCreationTime() const
Definition Endpoint.h:256
const Aws::String & GetStateReason() const
Definition Endpoint.h:238
void SetEndpointId(EndpointIdT &&value)
Definition Endpoint.h:189
void SetEndpointUrl(EndpointUrlT &&value)
Definition Endpoint.h:207
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
Definition Endpoint.h:142
Endpoint & WithEventBuses(EventBusesT &&value)
Definition Endpoint.h:150
Endpoint & WithRoleArn(RoleArnT &&value)
Definition Endpoint.h:174
AWS_EVENTBRIDGE_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Endpoint.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue