AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeEndpointResult.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/RoutingConfig.h>
10#include <aws/eventbridge/model/ReplicationConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/eventbridge/model/EndpointState.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/eventbridge/model/EndpointEventBus.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace EventBridge
30{
31namespace Model
32{
34 {
35 public:
36 AWS_EVENTBRIDGE_API DescribeEndpointResult() = default;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 DescribeEndpointResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 DescribeEndpointResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
67 inline const Aws::String& GetArn() const { return m_arn; }
68 template<typename ArnT = Aws::String>
69 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
70 template<typename ArnT = Aws::String>
71 DescribeEndpointResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
73
75
79 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
80 template<typename RoutingConfigT = RoutingConfig>
81 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
82 template<typename RoutingConfigT = RoutingConfig>
83 DescribeEndpointResult& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
85
87
91 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
92 template<typename ReplicationConfigT = ReplicationConfig>
93 void SetReplicationConfig(ReplicationConfigT&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::forward<ReplicationConfigT>(value); }
94 template<typename ReplicationConfigT = ReplicationConfig>
95 DescribeEndpointResult& WithReplicationConfig(ReplicationConfigT&& value) { SetReplicationConfig(std::forward<ReplicationConfigT>(value)); return *this;}
97
99
103 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
104 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
105 void SetEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::forward<EventBusesT>(value); }
106 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
107 DescribeEndpointResult& WithEventBuses(EventBusesT&& value) { SetEventBuses(std::forward<EventBusesT>(value)); return *this;}
108 template<typename EventBusesT = EndpointEventBus>
109 DescribeEndpointResult& AddEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.emplace_back(std::forward<EventBusesT>(value)); return *this; }
111
113
116 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
117 template<typename RoleArnT = Aws::String>
118 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
119 template<typename RoleArnT = Aws::String>
120 DescribeEndpointResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
122
124
127 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
128 template<typename EndpointIdT = Aws::String>
129 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
130 template<typename EndpointIdT = Aws::String>
131 DescribeEndpointResult& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
133
135
138 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
139 template<typename EndpointUrlT = Aws::String>
140 void SetEndpointUrl(EndpointUrlT&& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = std::forward<EndpointUrlT>(value); }
141 template<typename EndpointUrlT = Aws::String>
142 DescribeEndpointResult& WithEndpointUrl(EndpointUrlT&& value) { SetEndpointUrl(std::forward<EndpointUrlT>(value)); return *this;}
144
146
149 inline EndpointState GetState() const { return m_state; }
150 inline void SetState(EndpointState value) { m_stateHasBeenSet = true; m_state = value; }
151 inline DescribeEndpointResult& WithState(EndpointState value) { SetState(value); return *this;}
153
155
159 inline const Aws::String& GetStateReason() const { return m_stateReason; }
160 template<typename StateReasonT = Aws::String>
161 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
162 template<typename StateReasonT = Aws::String>
163 DescribeEndpointResult& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
171 template<typename CreationTimeT = Aws::Utils::DateTime>
172 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
173 template<typename CreationTimeT = Aws::Utils::DateTime>
174 DescribeEndpointResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
176
178
181 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
182 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
183 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
184 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
185 DescribeEndpointResult& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
187
189
190 inline const Aws::String& GetRequestId() const { return m_requestId; }
191 template<typename RequestIdT = Aws::String>
192 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
193 template<typename RequestIdT = Aws::String>
194 DescribeEndpointResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
196 private:
197
198 Aws::String m_name;
199 bool m_nameHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
204 Aws::String m_arn;
205 bool m_arnHasBeenSet = false;
206
207 RoutingConfig m_routingConfig;
208 bool m_routingConfigHasBeenSet = false;
209
210 ReplicationConfig m_replicationConfig;
211 bool m_replicationConfigHasBeenSet = false;
212
214 bool m_eventBusesHasBeenSet = false;
215
216 Aws::String m_roleArn;
217 bool m_roleArnHasBeenSet = false;
218
219 Aws::String m_endpointId;
220 bool m_endpointIdHasBeenSet = false;
221
222 Aws::String m_endpointUrl;
223 bool m_endpointUrlHasBeenSet = false;
224
226 bool m_stateHasBeenSet = false;
227
228 Aws::String m_stateReason;
229 bool m_stateReasonHasBeenSet = false;
230
231 Aws::Utils::DateTime m_creationTime{};
232 bool m_creationTimeHasBeenSet = false;
233
234 Aws::Utils::DateTime m_lastModifiedTime{};
235 bool m_lastModifiedTimeHasBeenSet = false;
236
237 Aws::String m_requestId;
238 bool m_requestIdHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace EventBridge
243} // 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)
void SetReplicationConfig(ReplicationConfigT &&value)
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