AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeEndpointResult.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 {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace EventBridge {
28namespace Model {
30 public:
31 AWS_EVENTBRIDGE_API DescribeEndpointResult() = default;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 DescribeEndpointResult& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetArn() const { return m_arn; }
74 template <typename ArnT = Aws::String>
75 void SetArn(ArnT&& value) {
76 m_arnHasBeenSet = true;
77 m_arn = std::forward<ArnT>(value);
78 }
79 template <typename ArnT = Aws::String>
81 SetArn(std::forward<ArnT>(value));
82 return *this;
83 }
85
87
91 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
92 template <typename RoutingConfigT = RoutingConfig>
93 void SetRoutingConfig(RoutingConfigT&& value) {
94 m_routingConfigHasBeenSet = true;
95 m_routingConfig = std::forward<RoutingConfigT>(value);
96 }
97 template <typename RoutingConfigT = RoutingConfig>
98 DescribeEndpointResult& WithRoutingConfig(RoutingConfigT&& value) {
99 SetRoutingConfig(std::forward<RoutingConfigT>(value));
100 return *this;
101 }
103
105
109 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
110 template <typename ReplicationConfigT = ReplicationConfig>
111 void SetReplicationConfig(ReplicationConfigT&& value) {
112 m_replicationConfigHasBeenSet = true;
113 m_replicationConfig = std::forward<ReplicationConfigT>(value);
114 }
115 template <typename ReplicationConfigT = ReplicationConfig>
116 DescribeEndpointResult& WithReplicationConfig(ReplicationConfigT&& value) {
117 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
128 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
129 void SetEventBuses(EventBusesT&& value) {
130 m_eventBusesHasBeenSet = true;
131 m_eventBuses = std::forward<EventBusesT>(value);
132 }
133 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
135 SetEventBuses(std::forward<EventBusesT>(value));
136 return *this;
137 }
138 template <typename EventBusesT = EndpointEventBus>
139 DescribeEndpointResult& AddEventBuses(EventBusesT&& value) {
140 m_eventBusesHasBeenSet = true;
141 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
151 template <typename RoleArnT = Aws::String>
152 void SetRoleArn(RoleArnT&& value) {
153 m_roleArnHasBeenSet = true;
154 m_roleArn = std::forward<RoleArnT>(value);
155 }
156 template <typename RoleArnT = Aws::String>
158 SetRoleArn(std::forward<RoleArnT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
168 template <typename EndpointIdT = Aws::String>
169 void SetEndpointId(EndpointIdT&& value) {
170 m_endpointIdHasBeenSet = true;
171 m_endpointId = std::forward<EndpointIdT>(value);
172 }
173 template <typename EndpointIdT = Aws::String>
175 SetEndpointId(std::forward<EndpointIdT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
185 template <typename EndpointUrlT = Aws::String>
186 void SetEndpointUrl(EndpointUrlT&& value) {
187 m_endpointUrlHasBeenSet = true;
188 m_endpointUrl = std::forward<EndpointUrlT>(value);
189 }
190 template <typename EndpointUrlT = Aws::String>
192 SetEndpointUrl(std::forward<EndpointUrlT>(value));
193 return *this;
194 }
196
198
201 inline EndpointState GetState() const { return m_state; }
202 inline void SetState(EndpointState value) {
203 m_stateHasBeenSet = true;
204 m_state = value;
205 }
207 SetState(value);
208 return *this;
209 }
211
213
217 inline const Aws::String& GetStateReason() const { return m_stateReason; }
218 template <typename StateReasonT = Aws::String>
219 void SetStateReason(StateReasonT&& value) {
220 m_stateReasonHasBeenSet = true;
221 m_stateReason = std::forward<StateReasonT>(value);
222 }
223 template <typename StateReasonT = Aws::String>
225 SetStateReason(std::forward<StateReasonT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
235 template <typename CreationTimeT = Aws::Utils::DateTime>
236 void SetCreationTime(CreationTimeT&& value) {
237 m_creationTimeHasBeenSet = true;
238 m_creationTime = std::forward<CreationTimeT>(value);
239 }
240 template <typename CreationTimeT = Aws::Utils::DateTime>
241 DescribeEndpointResult& WithCreationTime(CreationTimeT&& value) {
242 SetCreationTime(std::forward<CreationTimeT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
252 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
253 void SetLastModifiedTime(LastModifiedTimeT&& value) {
254 m_lastModifiedTimeHasBeenSet = true;
255 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
256 }
257 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
258 DescribeEndpointResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
259 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
260 return *this;
261 }
263
265
266 inline const Aws::String& GetRequestId() const { return m_requestId; }
267 template <typename RequestIdT = Aws::String>
268 void SetRequestId(RequestIdT&& value) {
269 m_requestIdHasBeenSet = true;
270 m_requestId = std::forward<RequestIdT>(value);
271 }
272 template <typename RequestIdT = Aws::String>
274 SetRequestId(std::forward<RequestIdT>(value));
275 return *this;
276 }
278 private:
279 Aws::String m_name;
280
281 Aws::String m_description;
282
283 Aws::String m_arn;
284
285 RoutingConfig m_routingConfig;
286
287 ReplicationConfig m_replicationConfig;
288
290
291 Aws::String m_roleArn;
292
293 Aws::String m_endpointId;
294
295 Aws::String m_endpointUrl;
296
298
299 Aws::String m_stateReason;
300
301 Aws::Utils::DateTime m_creationTime{};
302
303 Aws::Utils::DateTime m_lastModifiedTime{};
304
305 Aws::String m_requestId;
306 bool m_nameHasBeenSet = false;
307 bool m_descriptionHasBeenSet = false;
308 bool m_arnHasBeenSet = false;
309 bool m_routingConfigHasBeenSet = false;
310 bool m_replicationConfigHasBeenSet = false;
311 bool m_eventBusesHasBeenSet = false;
312 bool m_roleArnHasBeenSet = false;
313 bool m_endpointIdHasBeenSet = false;
314 bool m_endpointUrlHasBeenSet = false;
315 bool m_stateHasBeenSet = false;
316 bool m_stateReasonHasBeenSet = false;
317 bool m_creationTimeHasBeenSet = false;
318 bool m_lastModifiedTimeHasBeenSet = false;
319 bool m_requestIdHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace EventBridge
324} // 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)
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