AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsEventsEndpointDetails.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsEventsEndpointEventBusesDetails.h>
11#include <aws/securityhub/model/AwsEventsEndpointReplicationConfigDetails.h>
12#include <aws/securityhub/model/AwsEventsEndpointRoutingConfigDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
34 public:
35 AWS_SECURITYHUB_API AwsEventsEndpointDetails() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
83 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
84 template <typename EndpointIdT = Aws::String>
85 void SetEndpointId(EndpointIdT&& value) {
86 m_endpointIdHasBeenSet = true;
87 m_endpointId = std::forward<EndpointIdT>(value);
88 }
89 template <typename EndpointIdT = Aws::String>
91 SetEndpointId(std::forward<EndpointIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
101 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
102 template <typename EndpointUrlT = Aws::String>
103 void SetEndpointUrl(EndpointUrlT&& value) {
104 m_endpointUrlHasBeenSet = true;
105 m_endpointUrl = std::forward<EndpointUrlT>(value);
106 }
107 template <typename EndpointUrlT = Aws::String>
109 SetEndpointUrl(std::forward<EndpointUrlT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<AwsEventsEndpointEventBusesDetails>& GetEventBuses() const { return m_eventBuses; }
119 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
120 template <typename EventBusesT = Aws::Vector<AwsEventsEndpointEventBusesDetails>>
121 void SetEventBuses(EventBusesT&& value) {
122 m_eventBusesHasBeenSet = true;
123 m_eventBuses = std::forward<EventBusesT>(value);
124 }
125 template <typename EventBusesT = Aws::Vector<AwsEventsEndpointEventBusesDetails>>
127 SetEventBuses(std::forward<EventBusesT>(value));
128 return *this;
129 }
130 template <typename EventBusesT = AwsEventsEndpointEventBusesDetails>
132 m_eventBusesHasBeenSet = true;
133 m_eventBuses.emplace_back(std::forward<EventBusesT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetName() const { return m_name; }
143 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
144 template <typename NameT = Aws::String>
145 void SetName(NameT&& value) {
146 m_nameHasBeenSet = true;
147 m_name = std::forward<NameT>(value);
148 }
149 template <typename NameT = Aws::String>
151 SetName(std::forward<NameT>(value));
152 return *this;
153 }
155
157
163 inline const AwsEventsEndpointReplicationConfigDetails& GetReplicationConfig() const { return m_replicationConfig; }
164 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
165 template <typename ReplicationConfigT = AwsEventsEndpointReplicationConfigDetails>
166 void SetReplicationConfig(ReplicationConfigT&& value) {
167 m_replicationConfigHasBeenSet = true;
168 m_replicationConfig = std::forward<ReplicationConfigT>(value);
169 }
170 template <typename ReplicationConfigT = AwsEventsEndpointReplicationConfigDetails>
171 AwsEventsEndpointDetails& WithReplicationConfig(ReplicationConfigT&& value) {
172 SetReplicationConfig(std::forward<ReplicationConfigT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
182 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
183 template <typename RoleArnT = Aws::String>
184 void SetRoleArn(RoleArnT&& value) {
185 m_roleArnHasBeenSet = true;
186 m_roleArn = std::forward<RoleArnT>(value);
187 }
188 template <typename RoleArnT = Aws::String>
190 SetRoleArn(std::forward<RoleArnT>(value));
191 return *this;
192 }
194
196
199 inline const AwsEventsEndpointRoutingConfigDetails& GetRoutingConfig() const { return m_routingConfig; }
200 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
201 template <typename RoutingConfigT = AwsEventsEndpointRoutingConfigDetails>
202 void SetRoutingConfig(RoutingConfigT&& value) {
203 m_routingConfigHasBeenSet = true;
204 m_routingConfig = std::forward<RoutingConfigT>(value);
205 }
206 template <typename RoutingConfigT = AwsEventsEndpointRoutingConfigDetails>
208 SetRoutingConfig(std::forward<RoutingConfigT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetState() const { return m_state; }
218 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
219 template <typename StateT = Aws::String>
220 void SetState(StateT&& value) {
221 m_stateHasBeenSet = true;
222 m_state = std::forward<StateT>(value);
223 }
224 template <typename StateT = Aws::String>
226 SetState(std::forward<StateT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::String& GetStateReason() const { return m_stateReason; }
236 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
237 template <typename StateReasonT = Aws::String>
238 void SetStateReason(StateReasonT&& value) {
239 m_stateReasonHasBeenSet = true;
240 m_stateReason = std::forward<StateReasonT>(value);
241 }
242 template <typename StateReasonT = Aws::String>
244 SetStateReason(std::forward<StateReasonT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_arn;
250
251 Aws::String m_description;
252
253 Aws::String m_endpointId;
254
255 Aws::String m_endpointUrl;
256
258
259 Aws::String m_name;
260
262
263 Aws::String m_roleArn;
264
266
267 Aws::String m_state;
268
269 Aws::String m_stateReason;
270 bool m_arnHasBeenSet = false;
271 bool m_descriptionHasBeenSet = false;
272 bool m_endpointIdHasBeenSet = false;
273 bool m_endpointUrlHasBeenSet = false;
274 bool m_eventBusesHasBeenSet = false;
275 bool m_nameHasBeenSet = false;
276 bool m_replicationConfigHasBeenSet = false;
277 bool m_roleArnHasBeenSet = false;
278 bool m_routingConfigHasBeenSet = false;
279 bool m_stateHasBeenSet = false;
280 bool m_stateReasonHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace SecurityHub
285} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEventsEndpointDetails & WithName(NameT &&value)
const Aws::Vector< AwsEventsEndpointEventBusesDetails > & GetEventBuses() const
AwsEventsEndpointDetails & WithState(StateT &&value)
AwsEventsEndpointDetails & WithEventBuses(EventBusesT &&value)
AwsEventsEndpointDetails & WithStateReason(StateReasonT &&value)
const AwsEventsEndpointReplicationConfigDetails & GetReplicationConfig() const
AwsEventsEndpointDetails & WithEndpointId(EndpointIdT &&value)
AwsEventsEndpointDetails & WithArn(ArnT &&value)
AwsEventsEndpointDetails & WithRoleArn(RoleArnT &&value)
AwsEventsEndpointDetails & WithReplicationConfig(ReplicationConfigT &&value)
AwsEventsEndpointDetails & WithRoutingConfig(RoutingConfigT &&value)
AwsEventsEndpointDetails & WithDescription(DescriptionT &&value)
const AwsEventsEndpointRoutingConfigDetails & GetRoutingConfig() const
AwsEventsEndpointDetails & AddEventBuses(EventBusesT &&value)
AWS_SECURITYHUB_API AwsEventsEndpointDetails()=default
AWS_SECURITYHUB_API AwsEventsEndpointDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsEventsEndpointDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEventsEndpointDetails & WithEndpointUrl(EndpointUrlT &&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