AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateEndpointResult.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 CreateEndpointResult() = 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 CreateEndpointResult& WithRoutingConfig(RoutingConfigT&& value) {
80 SetRoutingConfig(std::forward<RoutingConfigT>(value));
81 return *this;
82 }
84
86
89 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
90 template <typename ReplicationConfigT = ReplicationConfig>
91 void SetReplicationConfig(ReplicationConfigT&& value) {
92 m_replicationConfigHasBeenSet = true;
93 m_replicationConfig = std::forward<ReplicationConfigT>(value);
94 }
95 template <typename ReplicationConfigT = ReplicationConfig>
96 CreateEndpointResult& WithReplicationConfig(ReplicationConfigT&& value) {
97 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
107 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
108 void SetEventBuses(EventBusesT&& value) {
109 m_eventBusesHasBeenSet = true;
110 m_eventBuses = std::forward<EventBusesT>(value);
111 }
112 template <typename EventBusesT = Aws::Vector<EndpointEventBus>>
113 CreateEndpointResult& WithEventBuses(EventBusesT&& value) {
114 SetEventBuses(std::forward<EventBusesT>(value));
115 return *this;
116 }
117 template <typename EventBusesT = EndpointEventBus>
118 CreateEndpointResult& AddEventBuses(EventBusesT&& value) {
119 m_eventBusesHasBeenSet = true;
120 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
130 template <typename RoleArnT = Aws::String>
131 void SetRoleArn(RoleArnT&& value) {
132 m_roleArnHasBeenSet = true;
133 m_roleArn = std::forward<RoleArnT>(value);
134 }
135 template <typename RoleArnT = Aws::String>
137 SetRoleArn(std::forward<RoleArnT>(value));
138 return *this;
139 }
141
143
146 inline EndpointState GetState() const { return m_state; }
147 inline void SetState(EndpointState value) {
148 m_stateHasBeenSet = true;
149 m_state = value;
150 }
152 SetState(value);
153 return *this;
154 }
156
158
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 template <typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) {
162 m_requestIdHasBeenSet = true;
163 m_requestId = std::forward<RequestIdT>(value);
164 }
165 template <typename RequestIdT = Aws::String>
166 CreateEndpointResult& WithRequestId(RequestIdT&& value) {
167 SetRequestId(std::forward<RequestIdT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_name;
173
174 Aws::String m_arn;
175
176 RoutingConfig m_routingConfig;
177
178 ReplicationConfig m_replicationConfig;
179
181
182 Aws::String m_roleArn;
183
185
186 Aws::String m_requestId;
187 bool m_nameHasBeenSet = false;
188 bool m_arnHasBeenSet = false;
189 bool m_routingConfigHasBeenSet = false;
190 bool m_replicationConfigHasBeenSet = false;
191 bool m_eventBusesHasBeenSet = false;
192 bool m_roleArnHasBeenSet = false;
193 bool m_stateHasBeenSet = false;
194 bool m_requestIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace EventBridge
199} // namespace Aws
const ReplicationConfig & GetReplicationConfig() const
void SetReplicationConfig(ReplicationConfigT &&value)
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