AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEventsEndpointDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsEventsEndpointReplicationConfigDetails.h>
11#include <aws/securityhub/model/AwsEventsEndpointRoutingConfigDetails.h>
12#include <aws/securityhub/model/AwsEventsEndpointEventBusesDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_SECURITYHUB_API AwsEventsEndpointDetails() = default;
43 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 AwsEventsEndpointDetails& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 AwsEventsEndpointDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
76 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
77 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
78 template<typename EndpointIdT = Aws::String>
79 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
80 template<typename EndpointIdT = Aws::String>
81 AwsEventsEndpointDetails& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
83
85
88 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
89 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
90 template<typename EndpointUrlT = Aws::String>
91 void SetEndpointUrl(EndpointUrlT&& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = std::forward<EndpointUrlT>(value); }
92 template<typename EndpointUrlT = Aws::String>
93 AwsEventsEndpointDetails& WithEndpointUrl(EndpointUrlT&& value) { SetEndpointUrl(std::forward<EndpointUrlT>(value)); return *this;}
95
97
100 inline const Aws::Vector<AwsEventsEndpointEventBusesDetails>& GetEventBuses() const { return m_eventBuses; }
101 inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; }
102 template<typename EventBusesT = Aws::Vector<AwsEventsEndpointEventBusesDetails>>
103 void SetEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::forward<EventBusesT>(value); }
104 template<typename EventBusesT = Aws::Vector<AwsEventsEndpointEventBusesDetails>>
105 AwsEventsEndpointDetails& WithEventBuses(EventBusesT&& value) { SetEventBuses(std::forward<EventBusesT>(value)); return *this;}
106 template<typename EventBusesT = AwsEventsEndpointEventBusesDetails>
107 AwsEventsEndpointDetails& AddEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.emplace_back(std::forward<EventBusesT>(value)); return *this; }
109
111
114 inline const Aws::String& GetName() const { return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 template<typename NameT = Aws::String>
117 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
118 template<typename NameT = Aws::String>
119 AwsEventsEndpointDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
121
123
129 inline const AwsEventsEndpointReplicationConfigDetails& GetReplicationConfig() const { return m_replicationConfig; }
130 inline bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; }
131 template<typename ReplicationConfigT = AwsEventsEndpointReplicationConfigDetails>
132 void SetReplicationConfig(ReplicationConfigT&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::forward<ReplicationConfigT>(value); }
133 template<typename ReplicationConfigT = AwsEventsEndpointReplicationConfigDetails>
134 AwsEventsEndpointDetails& WithReplicationConfig(ReplicationConfigT&& value) { SetReplicationConfig(std::forward<ReplicationConfigT>(value)); return *this;}
136
138
141 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
142 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
143 template<typename RoleArnT = Aws::String>
144 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
145 template<typename RoleArnT = Aws::String>
146 AwsEventsEndpointDetails& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
148
150
153 inline const AwsEventsEndpointRoutingConfigDetails& GetRoutingConfig() const { return m_routingConfig; }
154 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
155 template<typename RoutingConfigT = AwsEventsEndpointRoutingConfigDetails>
156 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
157 template<typename RoutingConfigT = AwsEventsEndpointRoutingConfigDetails>
158 AwsEventsEndpointDetails& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
160
162
165 inline const Aws::String& GetState() const { return m_state; }
166 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
167 template<typename StateT = Aws::String>
168 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
169 template<typename StateT = Aws::String>
170 AwsEventsEndpointDetails& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
172
174
177 inline const Aws::String& GetStateReason() const { return m_stateReason; }
178 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
179 template<typename StateReasonT = Aws::String>
180 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
181 template<typename StateReasonT = Aws::String>
182 AwsEventsEndpointDetails& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
184 private:
185
186 Aws::String m_arn;
187 bool m_arnHasBeenSet = false;
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
192 Aws::String m_endpointId;
193 bool m_endpointIdHasBeenSet = false;
194
195 Aws::String m_endpointUrl;
196 bool m_endpointUrlHasBeenSet = false;
197
199 bool m_eventBusesHasBeenSet = false;
200
201 Aws::String m_name;
202 bool m_nameHasBeenSet = false;
203
205 bool m_replicationConfigHasBeenSet = false;
206
207 Aws::String m_roleArn;
208 bool m_roleArnHasBeenSet = false;
209
211 bool m_routingConfigHasBeenSet = false;
212
213 Aws::String m_state;
214 bool m_stateHasBeenSet = false;
215
216 Aws::String m_stateReason;
217 bool m_stateReasonHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace SecurityHub
222} // 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