AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateEndpointResult.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 CreateEndpointResult() = 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 CreateEndpointResult& WithRoutingConfig(RoutingConfigT&& value) {
81 SetRoutingConfig(std::forward<RoutingConfigT>(value));
82 return *this;
83 }
85
87
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 CreateEndpointResult& WithReplicationConfig(ReplicationConfigT&& value) {
98 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
108 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
109 void SetEventBuses(EventBusesT&& value) {
110 m_eventBusesHasBeenSet = true;
111 m_eventBuses = std::forward<EventBusesT>(value);
112 }
113 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
114 CreateEndpointResult& WithEventBuses(EventBusesT&& value) {
115 SetEventBuses(std::forward<EventBusesT>(value));
116 return *this;
117 }
118 template <typename EventBusesT = EndpointEventBus>
119 CreateEndpointResult& AddEventBuses(EventBusesT&& value) {
120 m_eventBusesHasBeenSet = true;
121 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
131 template <typename RoleArnT = Aws::String>
132 void SetRoleArn(RoleArnT&& value) {
133 m_roleArnHasBeenSet = true;
134 m_roleArn = std::forward<RoleArnT>(value);
135 }
136 template <typename RoleArnT = Aws::String>
138 SetRoleArn(std::forward<RoleArnT>(value));
139 return *this;
140 }
142
144
147 inline EndpointState GetState() const { return m_state; }
148 inline void SetState(EndpointState value) {
149 m_stateHasBeenSet = true;
150 m_state = value;
151 }
153 SetState(value);
154 return *this;
155 }
157
159
160 inline const Aws::String& GetRequestId() const { return m_requestId; }
161 template <typename RequestIdT = Aws::String>
162 void SetRequestId(RequestIdT&& value) {
163 m_requestIdHasBeenSet = true;
164 m_requestId = std::forward<RequestIdT>(value);
165 }
166 template <typename RequestIdT = Aws::String>
167 CreateEndpointResult& WithRequestId(RequestIdT&& value) {
168 SetRequestId(std::forward<RequestIdT>(value));
169 return *this;
170 }
172 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
173
174 private:
175 Aws::String m_name;
176
177 Aws::String m_arn;
178
179 RoutingConfig m_routingConfig;
180
181 ReplicationConfig m_replicationConfig;
182
184
185 Aws::String m_roleArn;
186
188
189 Aws::String m_requestId;
190 Aws::Http::HttpResponseCode m_HttpResponseCode;
191 bool m_nameHasBeenSet = false;
192 bool m_arnHasBeenSet = false;
193 bool m_routingConfigHasBeenSet = false;
194 bool m_replicationConfigHasBeenSet = false;
195 bool m_eventBusesHasBeenSet = false;
196 bool m_roleArnHasBeenSet = false;
197 bool m_stateHasBeenSet = false;
198 bool m_requestIdHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace EventBridge
203} // namespace Aws
const ReplicationConfig & GetReplicationConfig() const
void SetReplicationConfig(ReplicationConfigT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_EVENTBRIDGE_API CreateEndpointResult()=default
CreateEndpointResult & WithName(NameT &&value)
CreateEndpointResult & WithEventBuses(EventBusesT &&value)
CreateEndpointResult & WithRoleArn(RoleArnT &&value)
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
CreateEndpointResult & WithReplicationConfig(ReplicationConfigT &&value)
CreateEndpointResult & WithState(EndpointState value)
AWS_EVENTBRIDGE_API CreateEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEndpointResult & AddEventBuses(EventBusesT &&value)
AWS_EVENTBRIDGE_API CreateEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEndpointResult & WithRoutingConfig(RoutingConfigT &&value)
CreateEndpointResult & WithArn(ArnT &&value)
CreateEndpointResult & WithRequestId(RequestIdT &&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