AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
UpdateEndpointResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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 UpdateEndpointResult() = 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& GetArn() const { return m_arn; }
57 template <typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) {
59 m_arnHasBeenSet = true;
60 m_arn = std::forward<ArnT>(value);
61 }
62 template <typename ArnT = Aws::String>
64 SetArn(std::forward<ArnT>(value));
65 return *this;
66 }
68
70
73 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
74 template <typename RoutingConfigT = RoutingConfig>
75 void SetRoutingConfig(RoutingConfigT&& value) {
76 m_routingConfigHasBeenSet = true;
77 m_routingConfig = std::forward<RoutingConfigT>(value);
78 }
79 template <typename RoutingConfigT = RoutingConfig>
80 UpdateEndpointResult& WithRoutingConfig(RoutingConfigT&& value) {
81 SetRoutingConfig(std::forward<RoutingConfigT>(value));
82 return *this;
83 }
85
87
91 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
92 template <typename ReplicationConfigT = ReplicationConfig>
93 void SetReplicationConfig(ReplicationConfigT&& value) {
94 m_replicationConfigHasBeenSet = true;
95 m_replicationConfig = std::forward<ReplicationConfigT>(value);
96 }
97 template <typename ReplicationConfigT = ReplicationConfig>
98 UpdateEndpointResult& WithReplicationConfig(ReplicationConfigT&& value) {
99 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
110 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
111 void SetEventBuses(EventBusesT&& value) {
112 m_eventBusesHasBeenSet = true;
113 m_eventBuses = std::forward<EventBusesT>(value);
114 }
115 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
116 UpdateEndpointResult& WithEventBuses(EventBusesT&& value) {
117 SetEventBuses(std::forward<EventBusesT>(value));
118 return *this;
119 }
120 template <typename EventBusesT = EndpointEventBus>
121 UpdateEndpointResult& AddEventBuses(EventBusesT&& value) {
122 m_eventBusesHasBeenSet = true;
123 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
134 template <typename RoleArnT = Aws::String>
135 void SetRoleArn(RoleArnT&& value) {
136 m_roleArnHasBeenSet = true;
137 m_roleArn = std::forward<RoleArnT>(value);
138 }
139 template <typename RoleArnT = Aws::String>
141 SetRoleArn(std::forward<RoleArnT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
151 template <typename EndpointIdT = Aws::String>
152 void SetEndpointId(EndpointIdT&& value) {
153 m_endpointIdHasBeenSet = true;
154 m_endpointId = std::forward<EndpointIdT>(value);
155 }
156 template <typename EndpointIdT = Aws::String>
157 UpdateEndpointResult& WithEndpointId(EndpointIdT&& value) {
158 SetEndpointId(std::forward<EndpointIdT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
168 template <typename EndpointUrlT = Aws::String>
169 void SetEndpointUrl(EndpointUrlT&& value) {
170 m_endpointUrlHasBeenSet = true;
171 m_endpointUrl = std::forward<EndpointUrlT>(value);
172 }
173 template <typename EndpointUrlT = Aws::String>
174 UpdateEndpointResult& WithEndpointUrl(EndpointUrlT&& value) {
175 SetEndpointUrl(std::forward<EndpointUrlT>(value));
176 return *this;
177 }
179
181
184 inline EndpointState GetState() const { return m_state; }
185 inline void SetState(EndpointState value) {
186 m_stateHasBeenSet = true;
187 m_state = value;
188 }
190 SetState(value);
191 return *this;
192 }
194
196
197 inline const Aws::String& GetRequestId() const { return m_requestId; }
198 template <typename RequestIdT = Aws::String>
199 void SetRequestId(RequestIdT&& value) {
200 m_requestIdHasBeenSet = true;
201 m_requestId = std::forward<RequestIdT>(value);
202 }
203 template <typename RequestIdT = Aws::String>
204 UpdateEndpointResult& WithRequestId(RequestIdT&& value) {
205 SetRequestId(std::forward<RequestIdT>(value));
206 return *this;
207 }
209 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
210
211 private:
212 Aws::String m_name;
213
214 Aws::String m_arn;
215
216 RoutingConfig m_routingConfig;
217
218 ReplicationConfig m_replicationConfig;
219
221
222 Aws::String m_roleArn;
223
224 Aws::String m_endpointId;
225
226 Aws::String m_endpointUrl;
227
229
230 Aws::String m_requestId;
231 Aws::Http::HttpResponseCode m_HttpResponseCode;
232 bool m_nameHasBeenSet = false;
233 bool m_arnHasBeenSet = false;
234 bool m_routingConfigHasBeenSet = false;
235 bool m_replicationConfigHasBeenSet = false;
236 bool m_eventBusesHasBeenSet = false;
237 bool m_roleArnHasBeenSet = false;
238 bool m_endpointIdHasBeenSet = false;
239 bool m_endpointUrlHasBeenSet = false;
240 bool m_stateHasBeenSet = false;
241 bool m_requestIdHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace EventBridge
246} // namespace Aws
const ReplicationConfig & GetReplicationConfig() const
UpdateEndpointResult & WithState(EndpointState value)
AWS_EVENTBRIDGE_API UpdateEndpointResult()=default
UpdateEndpointResult & WithEndpointId(EndpointIdT &&value)
UpdateEndpointResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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