AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Endpoint.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{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace EventBridge
28{
29namespace Model
30{
31
43 {
44 public:
45 AWS_EVENTBRIDGE_API Endpoint() = default;
46 AWS_EVENTBRIDGE_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
47 AWS_EVENTBRIDGE_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 Endpoint& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 Endpoint& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline const Aws::String& GetArn() const { return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 template<typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
83 template<typename ArnT = Aws::String>
84 Endpoint& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
86
88
91 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
92 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
93 template<typename RoutingConfigT = RoutingConfig>
94 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
95 template<typename RoutingConfigT = RoutingConfig>
96 Endpoint& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
98
100
106 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
107 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
108 template<typename ReplicationConfigT = ReplicationConfig>
109 void SetReplicationConfig(ReplicationConfigT&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::forward<ReplicationConfigT>(value); }
110 template<typename ReplicationConfigT = ReplicationConfig>
111 Endpoint& WithReplicationConfig(ReplicationConfigT&& value) { SetReplicationConfig(std::forward<ReplicationConfigT>(value)); return *this;}
113
115
118 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
119 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
120 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
121 void SetEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::forward<EventBusesT>(value); }
122 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
123 Endpoint& WithEventBuses(EventBusesT&& value) { SetEventBuses(std::forward<EventBusesT>(value)); return *this;}
124 template<typename EventBusesT = EndpointEventBus>
125 Endpoint& AddEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.emplace_back(std::forward<EventBusesT>(value)); return *this; }
127
129
132 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
133 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
134 template<typename RoleArnT = Aws::String>
135 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
136 template<typename RoleArnT = Aws::String>
137 Endpoint& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
139
141
146 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
147 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
148 template<typename EndpointIdT = Aws::String>
149 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
150 template<typename EndpointIdT = Aws::String>
151 Endpoint& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
153
155
158 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
159 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
160 template<typename EndpointUrlT = Aws::String>
161 void SetEndpointUrl(EndpointUrlT&& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = std::forward<EndpointUrlT>(value); }
162 template<typename EndpointUrlT = Aws::String>
163 Endpoint& WithEndpointUrl(EndpointUrlT&& value) { SetEndpointUrl(std::forward<EndpointUrlT>(value)); return *this;}
165
167
170 inline EndpointState GetState() const { return m_state; }
171 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
172 inline void SetState(EndpointState value) { m_stateHasBeenSet = true; m_state = value; }
173 inline Endpoint& WithState(EndpointState value) { SetState(value); return *this;}
175
177
180 inline const Aws::String& GetStateReason() const { return m_stateReason; }
181 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
182 template<typename StateReasonT = Aws::String>
183 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
184 template<typename StateReasonT = Aws::String>
185 Endpoint& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
187
189
192 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
193 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
194 template<typename CreationTimeT = Aws::Utils::DateTime>
195 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
196 template<typename CreationTimeT = Aws::Utils::DateTime>
197 Endpoint& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
199
201
204 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
205 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
206 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
207 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
208 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
209 Endpoint& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
211 private:
212
213 Aws::String m_name;
214 bool m_nameHasBeenSet = false;
215
216 Aws::String m_description;
217 bool m_descriptionHasBeenSet = false;
218
219 Aws::String m_arn;
220 bool m_arnHasBeenSet = false;
221
222 RoutingConfig m_routingConfig;
223 bool m_routingConfigHasBeenSet = false;
224
225 ReplicationConfig m_replicationConfig;
226 bool m_replicationConfigHasBeenSet = false;
227
229 bool m_eventBusesHasBeenSet = false;
230
231 Aws::String m_roleArn;
232 bool m_roleArnHasBeenSet = false;
233
234 Aws::String m_endpointId;
235 bool m_endpointIdHasBeenSet = false;
236
237 Aws::String m_endpointUrl;
238 bool m_endpointUrlHasBeenSet = false;
239
241 bool m_stateHasBeenSet = false;
242
243 Aws::String m_stateReason;
244 bool m_stateReasonHasBeenSet = false;
245
246 Aws::Utils::DateTime m_creationTime{};
247 bool m_creationTimeHasBeenSet = false;
248
249 Aws::Utils::DateTime m_lastModifiedTime{};
250 bool m_lastModifiedTimeHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace EventBridge
255} // namespace Aws
Endpoint & WithArn(ArnT &&value)
Definition Endpoint.h:84
const RoutingConfig & GetRoutingConfig() const
Definition Endpoint.h:91
void SetArn(ArnT &&value)
Definition Endpoint.h:82
Endpoint & WithEndpointId(EndpointIdT &&value)
Definition Endpoint.h:151
void SetEventBuses(EventBusesT &&value)
Definition Endpoint.h:121
void SetState(EndpointState value)
Definition Endpoint.h:172
const Aws::String & GetEndpointId() const
Definition Endpoint.h:146
Endpoint & WithStateReason(StateReasonT &&value)
Definition Endpoint.h:185
void SetRoleArn(RoleArnT &&value)
Definition Endpoint.h:135
const ReplicationConfig & GetReplicationConfig() const
Definition Endpoint.h:106
Endpoint & WithName(NameT &&value)
Definition Endpoint.h:60
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Endpoint.h:204
void SetDescription(DescriptionT &&value)
Definition Endpoint.h:70
AWS_EVENTBRIDGE_API Endpoint()=default
const Aws::String & GetName() const
Definition Endpoint.h:55
Endpoint & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Endpoint.h:209
Endpoint & WithRoutingConfig(RoutingConfigT &&value)
Definition Endpoint.h:96
void SetCreationTime(CreationTimeT &&value)
Definition Endpoint.h:195
AWS_EVENTBRIDGE_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRoutingConfig(RoutingConfigT &&value)
Definition Endpoint.h:94
void SetStateReason(StateReasonT &&value)
Definition Endpoint.h:183
void SetReplicationConfig(ReplicationConfigT &&value)
Definition Endpoint.h:109
bool ReplicationConfigHasBeenSet() const
Definition Endpoint.h:107
Endpoint & WithDescription(DescriptionT &&value)
Definition Endpoint.h:72
const Aws::String & GetRoleArn() const
Definition Endpoint.h:132
Endpoint & WithState(EndpointState value)
Definition Endpoint.h:173
const Aws::String & GetEndpointUrl() const
Definition Endpoint.h:158
const Aws::String & GetDescription() const
Definition Endpoint.h:67
bool LastModifiedTimeHasBeenSet() const
Definition Endpoint.h:205
Endpoint & WithEndpointUrl(EndpointUrlT &&value)
Definition Endpoint.h:163
EndpointState GetState() const
Definition Endpoint.h:170
Endpoint & WithCreationTime(CreationTimeT &&value)
Definition Endpoint.h:197
const Aws::String & GetArn() const
Definition Endpoint.h:79
Endpoint & WithReplicationConfig(ReplicationConfigT &&value)
Definition Endpoint.h:111
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Endpoint.h:207
Endpoint & AddEventBuses(EventBusesT &&value)
Definition Endpoint.h:125
const Aws::Utils::DateTime & GetCreationTime() const
Definition Endpoint.h:192
const Aws::String & GetStateReason() const
Definition Endpoint.h:180
void SetEndpointId(EndpointIdT &&value)
Definition Endpoint.h:149
void SetEndpointUrl(EndpointUrlT &&value)
Definition Endpoint.h:161
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
Definition Endpoint.h:118
Endpoint & WithEventBuses(EventBusesT &&value)
Definition Endpoint.h:123
Endpoint & WithRoleArn(RoleArnT &&value)
Definition Endpoint.h:137
AWS_EVENTBRIDGE_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Endpoint.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue