AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline Endpoint& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline Endpoint& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline Endpoint& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline Endpoint& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline Endpoint& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline Endpoint& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
83 inline const Aws::String& GetArn() const{ return m_arn; }
84 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
85 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
86 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
87 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
88 inline Endpoint& WithArn(const Aws::String& value) { SetArn(value); return *this;}
89 inline Endpoint& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
90 inline Endpoint& WithArn(const char* value) { SetArn(value); return *this;}
92
94
97 inline const RoutingConfig& GetRoutingConfig() const{ return m_routingConfig; }
98 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
99 inline void SetRoutingConfig(const RoutingConfig& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
100 inline void SetRoutingConfig(RoutingConfig&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
101 inline Endpoint& WithRoutingConfig(const RoutingConfig& value) { SetRoutingConfig(value); return *this;}
102 inline Endpoint& WithRoutingConfig(RoutingConfig&& value) { SetRoutingConfig(std::move(value)); return *this;}
104
106
112 inline const ReplicationConfig& GetReplicationConfig() const{ return m_replicationConfig; }
113 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
114 inline void SetReplicationConfig(const ReplicationConfig& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = value; }
115 inline void SetReplicationConfig(ReplicationConfig&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::move(value); }
116 inline Endpoint& WithReplicationConfig(const ReplicationConfig& value) { SetReplicationConfig(value); return *this;}
117 inline Endpoint& WithReplicationConfig(ReplicationConfig&& value) { SetReplicationConfig(std::move(value)); return *this;}
119
121
124 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const{ return m_eventBuses; }
125 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
126 inline void SetEventBuses(const Aws::Vector<EndpointEventBus>& value) { m_eventBusesHasBeenSet = true; m_eventBuses = value; }
127 inline void SetEventBuses(Aws::Vector<EndpointEventBus>&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::move(value); }
128 inline Endpoint& WithEventBuses(const Aws::Vector<EndpointEventBus>& value) { SetEventBuses(value); return *this;}
129 inline Endpoint& WithEventBuses(Aws::Vector<EndpointEventBus>&& value) { SetEventBuses(std::move(value)); return *this;}
130 inline Endpoint& AddEventBuses(const EndpointEventBus& value) { m_eventBusesHasBeenSet = true; m_eventBuses.push_back(value); return *this; }
131 inline Endpoint& AddEventBuses(EndpointEventBus&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.push_back(std::move(value)); return *this; }
133
135
138 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
139 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
140 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
141 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
142 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
143 inline Endpoint& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
144 inline Endpoint& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
145 inline Endpoint& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
147
149
154 inline const Aws::String& GetEndpointId() const{ return m_endpointId; }
155 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
156 inline void SetEndpointId(const Aws::String& value) { m_endpointIdHasBeenSet = true; m_endpointId = value; }
157 inline void SetEndpointId(Aws::String&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::move(value); }
158 inline void SetEndpointId(const char* value) { m_endpointIdHasBeenSet = true; m_endpointId.assign(value); }
159 inline Endpoint& WithEndpointId(const Aws::String& value) { SetEndpointId(value); return *this;}
160 inline Endpoint& WithEndpointId(Aws::String&& value) { SetEndpointId(std::move(value)); return *this;}
161 inline Endpoint& WithEndpointId(const char* value) { SetEndpointId(value); return *this;}
163
165
168 inline const Aws::String& GetEndpointUrl() const{ return m_endpointUrl; }
169 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
170 inline void SetEndpointUrl(const Aws::String& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = value; }
171 inline void SetEndpointUrl(Aws::String&& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = std::move(value); }
172 inline void SetEndpointUrl(const char* value) { m_endpointUrlHasBeenSet = true; m_endpointUrl.assign(value); }
173 inline Endpoint& WithEndpointUrl(const Aws::String& value) { SetEndpointUrl(value); return *this;}
174 inline Endpoint& WithEndpointUrl(Aws::String&& value) { SetEndpointUrl(std::move(value)); return *this;}
175 inline Endpoint& WithEndpointUrl(const char* value) { SetEndpointUrl(value); return *this;}
177
179
182 inline const EndpointState& GetState() const{ return m_state; }
183 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
184 inline void SetState(const EndpointState& value) { m_stateHasBeenSet = true; m_state = value; }
185 inline void SetState(EndpointState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
186 inline Endpoint& WithState(const EndpointState& value) { SetState(value); return *this;}
187 inline Endpoint& WithState(EndpointState&& value) { SetState(std::move(value)); return *this;}
189
191
194 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
195 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
196 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
197 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
198 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
199 inline Endpoint& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
200 inline Endpoint& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
201 inline Endpoint& WithStateReason(const char* value) { SetStateReason(value); return *this;}
203
205
208 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
209 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
210 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
211 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
212 inline Endpoint& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
213 inline Endpoint& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
215
217
220 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
221 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
222 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
223 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
224 inline Endpoint& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
225 inline Endpoint& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
227 private:
228
229 Aws::String m_name;
230 bool m_nameHasBeenSet = false;
231
232 Aws::String m_description;
233 bool m_descriptionHasBeenSet = false;
234
235 Aws::String m_arn;
236 bool m_arnHasBeenSet = false;
237
238 RoutingConfig m_routingConfig;
239 bool m_routingConfigHasBeenSet = false;
240
241 ReplicationConfig m_replicationConfig;
242 bool m_replicationConfigHasBeenSet = false;
243
245 bool m_eventBusesHasBeenSet = false;
246
247 Aws::String m_roleArn;
248 bool m_roleArnHasBeenSet = false;
249
250 Aws::String m_endpointId;
251 bool m_endpointIdHasBeenSet = false;
252
253 Aws::String m_endpointUrl;
254 bool m_endpointUrlHasBeenSet = false;
255
256 EndpointState m_state;
257 bool m_stateHasBeenSet = false;
258
259 Aws::String m_stateReason;
260 bool m_stateReasonHasBeenSet = false;
261
262 Aws::Utils::DateTime m_creationTime;
263 bool m_creationTimeHasBeenSet = false;
264
265 Aws::Utils::DateTime m_lastModifiedTime;
266 bool m_lastModifiedTimeHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace EventBridge
271} // namespace Aws
Endpoint & WithRoleArn(Aws::String &&value)
Definition Endpoint.h:144
void SetReplicationConfig(const ReplicationConfig &value)
Definition Endpoint.h:114
const RoutingConfig & GetRoutingConfig() const
Definition Endpoint.h:97
Endpoint & WithArn(const Aws::String &value)
Definition Endpoint.h:88
AWS_EVENTBRIDGE_API Endpoint()
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Endpoint.h:222
Endpoint & WithArn(const char *value)
Definition Endpoint.h:90
void SetRoleArn(Aws::String &&value)
Definition Endpoint.h:141
Endpoint & AddEventBuses(const EndpointEventBus &value)
Definition Endpoint.h:130
Endpoint & WithRoutingConfig(const RoutingConfig &value)
Definition Endpoint.h:101
Endpoint & WithStateReason(Aws::String &&value)
Definition Endpoint.h:200
Endpoint & WithRoleArn(const char *value)
Definition Endpoint.h:145
void SetArn(const char *value)
Definition Endpoint.h:87
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Endpoint.h:210
Endpoint & WithStateReason(const char *value)
Definition Endpoint.h:201
Endpoint & WithEndpointId(Aws::String &&value)
Definition Endpoint.h:160
void SetStateReason(Aws::String &&value)
Definition Endpoint.h:197
Endpoint & WithDescription(const char *value)
Definition Endpoint.h:76
const Aws::String & GetEndpointId() const
Definition Endpoint.h:154
Endpoint & WithEndpointId(const Aws::String &value)
Definition Endpoint.h:159
Endpoint & WithName(Aws::String &&value)
Definition Endpoint.h:61
void SetDescription(const char *value)
Definition Endpoint.h:73
void SetState(const EndpointState &value)
Definition Endpoint.h:184
Endpoint & WithEventBuses(const Aws::Vector< EndpointEventBus > &value)
Definition Endpoint.h:128
Endpoint & WithReplicationConfig(const ReplicationConfig &value)
Definition Endpoint.h:116
const ReplicationConfig & GetReplicationConfig() const
Definition Endpoint.h:112
Endpoint & WithStateReason(const Aws::String &value)
Definition Endpoint.h:199
void SetEndpointId(const char *value)
Definition Endpoint.h:158
Endpoint & AddEventBuses(EndpointEventBus &&value)
Definition Endpoint.h:131
Endpoint & WithState(EndpointState &&value)
Definition Endpoint.h:187
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Endpoint.h:220
Endpoint & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Endpoint.h:224
Endpoint & WithEndpointUrl(Aws::String &&value)
Definition Endpoint.h:174
void SetEndpointUrl(const Aws::String &value)
Definition Endpoint.h:170
Endpoint & WithArn(Aws::String &&value)
Definition Endpoint.h:89
Endpoint & WithRoleArn(const Aws::String &value)
Definition Endpoint.h:143
void SetRoutingConfig(RoutingConfig &&value)
Definition Endpoint.h:100
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Endpoint.h:211
const Aws::String & GetName() const
Definition Endpoint.h:55
void SetEndpointUrl(Aws::String &&value)
Definition Endpoint.h:171
void SetName(const char *value)
Definition Endpoint.h:59
void SetEndpointId(Aws::String &&value)
Definition Endpoint.h:157
void SetDescription(Aws::String &&value)
Definition Endpoint.h:72
Endpoint & WithName(const Aws::String &value)
Definition Endpoint.h:60
void SetReplicationConfig(ReplicationConfig &&value)
Definition Endpoint.h:115
AWS_EVENTBRIDGE_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithDescription(Aws::String &&value)
Definition Endpoint.h:75
Endpoint & WithDescription(const Aws::String &value)
Definition Endpoint.h:74
Endpoint & WithRoutingConfig(RoutingConfig &&value)
Definition Endpoint.h:102
bool ReplicationConfigHasBeenSet() const
Definition Endpoint.h:113
const EndpointState & GetState() const
Definition Endpoint.h:182
void SetDescription(const Aws::String &value)
Definition Endpoint.h:71
const Aws::String & GetRoleArn() const
Definition Endpoint.h:138
void SetEventBuses(Aws::Vector< EndpointEventBus > &&value)
Definition Endpoint.h:127
Endpoint & WithEndpointId(const char *value)
Definition Endpoint.h:161
const Aws::String & GetEndpointUrl() const
Definition Endpoint.h:168
const Aws::String & GetDescription() const
Definition Endpoint.h:69
Endpoint & WithName(const char *value)
Definition Endpoint.h:62
Endpoint & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Endpoint.h:225
Endpoint & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Endpoint.h:212
void SetEndpointId(const Aws::String &value)
Definition Endpoint.h:156
void SetArn(Aws::String &&value)
Definition Endpoint.h:86
Endpoint & WithEventBuses(Aws::Vector< EndpointEventBus > &&value)
Definition Endpoint.h:129
void SetRoutingConfig(const RoutingConfig &value)
Definition Endpoint.h:99
bool LastModifiedTimeHasBeenSet() const
Definition Endpoint.h:221
Endpoint & WithReplicationConfig(ReplicationConfig &&value)
Definition Endpoint.h:117
void SetState(EndpointState &&value)
Definition Endpoint.h:185
void SetName(const Aws::String &value)
Definition Endpoint.h:57
void SetEventBuses(const Aws::Vector< EndpointEventBus > &value)
Definition Endpoint.h:126
void SetStateReason(const Aws::String &value)
Definition Endpoint.h:196
const Aws::String & GetArn() const
Definition Endpoint.h:83
const Aws::Utils::DateTime & GetCreationTime() const
Definition Endpoint.h:208
const Aws::String & GetStateReason() const
Definition Endpoint.h:194
void SetStateReason(const char *value)
Definition Endpoint.h:198
void SetEndpointUrl(const char *value)
Definition Endpoint.h:172
Endpoint & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Endpoint.h:213
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
Definition Endpoint.h:124
void SetRoleArn(const Aws::String &value)
Definition Endpoint.h:140
Endpoint & WithEndpointUrl(const Aws::String &value)
Definition Endpoint.h:173
Endpoint & WithEndpointUrl(const char *value)
Definition Endpoint.h:175
void SetArn(const Aws::String &value)
Definition Endpoint.h:85
AWS_EVENTBRIDGE_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithState(const EndpointState &value)
Definition Endpoint.h:186
void SetRoleArn(const char *value)
Definition Endpoint.h:142
void SetName(Aws::String &&value)
Definition Endpoint.h:58
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Endpoint.h:223
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue