AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateEndpointResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/EndpointEventBus.h>
11#include <aws/eventbridge/model/EndpointState.h>
12#include <aws/eventbridge/model/ReplicationConfig.h>
13#include <aws/eventbridge/model/RoutingConfig.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace EventBridge {
27namespace Model {
29 public:
30 AWS_EVENTBRIDGE_API UpdateEndpointResult() = default;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template <typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) {
58 m_arnHasBeenSet = true;
59 m_arn = std::forward<ArnT>(value);
60 }
61 template <typename ArnT = Aws::String>
63 SetArn(std::forward<ArnT>(value));
64 return *this;
65 }
67
69
72 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
73 template <typename RoutingConfigT = RoutingConfig>
74 void SetRoutingConfig(RoutingConfigT&& value) {
75 m_routingConfigHasBeenSet = true;
76 m_routingConfig = std::forward<RoutingConfigT>(value);
77 }
78 template <typename RoutingConfigT = RoutingConfig>
79 UpdateEndpointResult& WithRoutingConfig(RoutingConfigT&& value) {
80 SetRoutingConfig(std::forward<RoutingConfigT>(value));
81 return *this;
82 }
84
86
90 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
91 template <typename ReplicationConfigT = ReplicationConfig>
92 void SetReplicationConfig(ReplicationConfigT&& value) {
93 m_replicationConfigHasBeenSet = true;
94 m_replicationConfig = std::forward<ReplicationConfigT>(value);
95 }
96 template <typename ReplicationConfigT = ReplicationConfig>
97 UpdateEndpointResult& WithReplicationConfig(ReplicationConfigT&& value) {
98 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
109 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
110 void SetEventBuses(EventBusesT&& value) {
111 m_eventBusesHasBeenSet = true;
112 m_eventBuses = std::forward<EventBusesT>(value);
113 }
114 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
115 UpdateEndpointResult& WithEventBuses(EventBusesT&& value) {
116 SetEventBuses(std::forward<EventBusesT>(value));
117 return *this;
118 }
119 template <typename EventBusesT = EndpointEventBus>
120 UpdateEndpointResult& AddEventBuses(EventBusesT&& value) {
121 m_eventBusesHasBeenSet = true;
122 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
133 template <typename RoleArnT = Aws::String>
134 void SetRoleArn(RoleArnT&& value) {
135 m_roleArnHasBeenSet = true;
136 m_roleArn = std::forward<RoleArnT>(value);
137 }
138 template <typename RoleArnT = Aws::String>
140 SetRoleArn(std::forward<RoleArnT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
150 template <typename EndpointIdT = Aws::String>
151 void SetEndpointId(EndpointIdT&& value) {
152 m_endpointIdHasBeenSet = true;
153 m_endpointId = std::forward<EndpointIdT>(value);
154 }
155 template <typename EndpointIdT = Aws::String>
156 UpdateEndpointResult& WithEndpointId(EndpointIdT&& value) {
157 SetEndpointId(std::forward<EndpointIdT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
167 template <typename EndpointUrlT = Aws::String>
168 void SetEndpointUrl(EndpointUrlT&& value) {
169 m_endpointUrlHasBeenSet = true;
170 m_endpointUrl = std::forward<EndpointUrlT>(value);
171 }
172 template <typename EndpointUrlT = Aws::String>
173 UpdateEndpointResult& WithEndpointUrl(EndpointUrlT&& value) {
174 SetEndpointUrl(std::forward<EndpointUrlT>(value));
175 return *this;
176 }
178
180
183 inline EndpointState GetState() const { return m_state; }
184 inline void SetState(EndpointState value) {
185 m_stateHasBeenSet = true;
186 m_state = value;
187 }
189 SetState(value);
190 return *this;
191 }
193
195
196 inline const Aws::String& GetRequestId() const { return m_requestId; }
197 template <typename RequestIdT = Aws::String>
198 void SetRequestId(RequestIdT&& value) {
199 m_requestIdHasBeenSet = true;
200 m_requestId = std::forward<RequestIdT>(value);
201 }
202 template <typename RequestIdT = Aws::String>
203 UpdateEndpointResult& WithRequestId(RequestIdT&& value) {
204 SetRequestId(std::forward<RequestIdT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_name;
210
211 Aws::String m_arn;
212
213 RoutingConfig m_routingConfig;
214
215 ReplicationConfig m_replicationConfig;
216
218
219 Aws::String m_roleArn;
220
221 Aws::String m_endpointId;
222
223 Aws::String m_endpointUrl;
224
226
227 Aws::String m_requestId;
228 bool m_nameHasBeenSet = false;
229 bool m_arnHasBeenSet = false;
230 bool m_routingConfigHasBeenSet = false;
231 bool m_replicationConfigHasBeenSet = false;
232 bool m_eventBusesHasBeenSet = false;
233 bool m_roleArnHasBeenSet = false;
234 bool m_endpointIdHasBeenSet = false;
235 bool m_endpointUrlHasBeenSet = false;
236 bool m_stateHasBeenSet = false;
237 bool m_requestIdHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace EventBridge
242} // namespace Aws
const ReplicationConfig & GetReplicationConfig() const
UpdateEndpointResult & WithState(EndpointState value)
AWS_EVENTBRIDGE_API UpdateEndpointResult()=default
UpdateEndpointResult & WithEndpointId(EndpointIdT &&value)
UpdateEndpointResult & WithRequestId(RequestIdT &&value)
UpdateEndpointResult & WithArn(ArnT &&value)
void SetReplicationConfig(ReplicationConfigT &&value)
UpdateEndpointResult & WithReplicationConfig(ReplicationConfigT &&value)
UpdateEndpointResult & WithRoleArn(RoleArnT &&value)
UpdateEndpointResult & WithEndpointUrl(EndpointUrlT &&value)
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
UpdateEndpointResult & WithName(NameT &&value)
AWS_EVENTBRIDGE_API UpdateEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EVENTBRIDGE_API UpdateEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateEndpointResult & WithRoutingConfig(RoutingConfigT &&value)
UpdateEndpointResult & AddEventBuses(EventBusesT &&value)
UpdateEndpointResult & WithEventBuses(EventBusesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue