AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeEndpointResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/eventbridge/EventBridge_EXPORTS.h>
12#include <aws/eventbridge/model/EndpointEventBus.h>
13#include <aws/eventbridge/model/EndpointState.h>
14#include <aws/eventbridge/model/ReplicationConfig.h>
15#include <aws/eventbridge/model/RoutingConfig.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace EventBridge {
29namespace Model {
31 public:
32 AWS_EVENTBRIDGE_API DescribeEndpointResult() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 DescribeEndpointResult& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetArn() const { return m_arn; }
75 template <typename ArnT = Aws::String>
76 void SetArn(ArnT&& value) {
77 m_arnHasBeenSet = true;
78 m_arn = std::forward<ArnT>(value);
79 }
80 template <typename ArnT = Aws::String>
82 SetArn(std::forward<ArnT>(value));
83 return *this;
84 }
86
88
92 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
93 template <typename RoutingConfigT = RoutingConfig>
94 void SetRoutingConfig(RoutingConfigT&& value) {
95 m_routingConfigHasBeenSet = true;
96 m_routingConfig = std::forward<RoutingConfigT>(value);
97 }
98 template <typename RoutingConfigT = RoutingConfig>
99 DescribeEndpointResult& WithRoutingConfig(RoutingConfigT&& value) {
100 SetRoutingConfig(std::forward<RoutingConfigT>(value));
101 return *this;
102 }
104
106
110 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
111 template <typename ReplicationConfigT = ReplicationConfig>
112 void SetReplicationConfig(ReplicationConfigT&& value) {
113 m_replicationConfigHasBeenSet = true;
114 m_replicationConfig = std::forward<ReplicationConfigT>(value);
115 }
116 template <typename ReplicationConfigT = ReplicationConfig>
117 DescribeEndpointResult& WithReplicationConfig(ReplicationConfigT&& value) {
118 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
129 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
130 void SetEventBuses(EventBusesT&& value) {
131 m_eventBusesHasBeenSet = true;
132 m_eventBuses = std::forward<EventBusesT>(value);
133 }
134 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
136 SetEventBuses(std::forward<EventBusesT>(value));
137 return *this;
138 }
139 template <typename EventBusesT = EndpointEventBus>
140 DescribeEndpointResult& AddEventBuses(EventBusesT&& value) {
141 m_eventBusesHasBeenSet = true;
142 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
152 template <typename RoleArnT = Aws::String>
153 void SetRoleArn(RoleArnT&& value) {
154 m_roleArnHasBeenSet = true;
155 m_roleArn = std::forward<RoleArnT>(value);
156 }
157 template <typename RoleArnT = Aws::String>
159 SetRoleArn(std::forward<RoleArnT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
169 template <typename EndpointIdT = Aws::String>
170 void SetEndpointId(EndpointIdT&& value) {
171 m_endpointIdHasBeenSet = true;
172 m_endpointId = std::forward<EndpointIdT>(value);
173 }
174 template <typename EndpointIdT = Aws::String>
176 SetEndpointId(std::forward<EndpointIdT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
186 template <typename EndpointUrlT = Aws::String>
187 void SetEndpointUrl(EndpointUrlT&& value) {
188 m_endpointUrlHasBeenSet = true;
189 m_endpointUrl = std::forward<EndpointUrlT>(value);
190 }
191 template <typename EndpointUrlT = Aws::String>
193 SetEndpointUrl(std::forward<EndpointUrlT>(value));
194 return *this;
195 }
197
199
202 inline EndpointState GetState() const { return m_state; }
203 inline void SetState(EndpointState value) {
204 m_stateHasBeenSet = true;
205 m_state = value;
206 }
208 SetState(value);
209 return *this;
210 }
212
214
218 inline const Aws::String& GetStateReason() const { return m_stateReason; }
219 template <typename StateReasonT = Aws::String>
220 void SetStateReason(StateReasonT&& value) {
221 m_stateReasonHasBeenSet = true;
222 m_stateReason = std::forward<StateReasonT>(value);
223 }
224 template <typename StateReasonT = Aws::String>
226 SetStateReason(std::forward<StateReasonT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
236 template <typename CreationTimeT = Aws::Utils::DateTime>
237 void SetCreationTime(CreationTimeT&& value) {
238 m_creationTimeHasBeenSet = true;
239 m_creationTime = std::forward<CreationTimeT>(value);
240 }
241 template <typename CreationTimeT = Aws::Utils::DateTime>
242 DescribeEndpointResult& WithCreationTime(CreationTimeT&& value) {
243 SetCreationTime(std::forward<CreationTimeT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
253 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
254 void SetLastModifiedTime(LastModifiedTimeT&& value) {
255 m_lastModifiedTimeHasBeenSet = true;
256 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
257 }
258 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
259 DescribeEndpointResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
260 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
261 return *this;
262 }
264
266
267 inline const Aws::String& GetRequestId() const { return m_requestId; }
268 template <typename RequestIdT = Aws::String>
269 void SetRequestId(RequestIdT&& value) {
270 m_requestIdHasBeenSet = true;
271 m_requestId = std::forward<RequestIdT>(value);
272 }
273 template <typename RequestIdT = Aws::String>
275 SetRequestId(std::forward<RequestIdT>(value));
276 return *this;
277 }
279 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
280
281 private:
282 Aws::String m_name;
283
284 Aws::String m_description;
285
286 Aws::String m_arn;
287
288 RoutingConfig m_routingConfig;
289
290 ReplicationConfig m_replicationConfig;
291
293
294 Aws::String m_roleArn;
295
296 Aws::String m_endpointId;
297
298 Aws::String m_endpointUrl;
299
301
302 Aws::String m_stateReason;
303
304 Aws::Utils::DateTime m_creationTime{};
305
306 Aws::Utils::DateTime m_lastModifiedTime{};
307
308 Aws::String m_requestId;
309 Aws::Http::HttpResponseCode m_HttpResponseCode;
310 bool m_nameHasBeenSet = false;
311 bool m_descriptionHasBeenSet = false;
312 bool m_arnHasBeenSet = false;
313 bool m_routingConfigHasBeenSet = false;
314 bool m_replicationConfigHasBeenSet = false;
315 bool m_eventBusesHasBeenSet = false;
316 bool m_roleArnHasBeenSet = false;
317 bool m_endpointIdHasBeenSet = false;
318 bool m_endpointUrlHasBeenSet = false;
319 bool m_stateHasBeenSet = false;
320 bool m_stateReasonHasBeenSet = false;
321 bool m_creationTimeHasBeenSet = false;
322 bool m_lastModifiedTimeHasBeenSet = false;
323 bool m_requestIdHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace EventBridge
328} // namespace Aws
const Aws::Utils::DateTime & GetLastModifiedTime() const
DescribeEndpointResult & WithEndpointUrl(EndpointUrlT &&value)
DescribeEndpointResult & WithStateReason(StateReasonT &&value)
const ReplicationConfig & GetReplicationConfig() const
DescribeEndpointResult & AddEventBuses(EventBusesT &&value)
DescribeEndpointResult & WithArn(ArnT &&value)
DescribeEndpointResult & WithState(EndpointState value)
DescribeEndpointResult & WithEndpointId(EndpointIdT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeEndpointResult & WithRoutingConfig(RoutingConfigT &&value)
DescribeEndpointResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API DescribeEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeEndpointResult & WithEventBuses(EventBusesT &&value)
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
AWS_EVENTBRIDGE_API DescribeEndpointResult()=default
DescribeEndpointResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeEndpointResult & WithCreationTime(CreationTimeT &&value)
DescribeEndpointResult & WithReplicationConfig(ReplicationConfigT &&value)
DescribeEndpointResult & WithName(NameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeEndpointResult & WithRoleArn(RoleArnT &&value)
DescribeEndpointResult & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API DescribeEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue