AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
Connector.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/evs/EVS_EXPORTS.h>
11#include <aws/evs/model/CheckResult.h>
12#include <aws/evs/model/ConnectorCheck.h>
13#include <aws/evs/model/ConnectorState.h>
14#include <aws/evs/model/ConnectorType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EVS {
26namespace Model {
27
36class Connector {
37 public:
38 AWS_EVS_API Connector() = default;
39 AWS_EVS_API Connector(Aws::Utils::Json::JsonView jsonValue);
42
44
47 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
48 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
49 template <typename EnvironmentIdT = Aws::String>
50 void SetEnvironmentId(EnvironmentIdT&& value) {
51 m_environmentIdHasBeenSet = true;
52 m_environmentId = std::forward<EnvironmentIdT>(value);
53 }
54 template <typename EnvironmentIdT = Aws::String>
55 Connector& WithEnvironmentId(EnvironmentIdT&& value) {
56 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
66 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
67 template <typename ConnectorIdT = Aws::String>
68 void SetConnectorId(ConnectorIdT&& value) {
69 m_connectorIdHasBeenSet = true;
70 m_connectorId = std::forward<ConnectorIdT>(value);
71 }
72 template <typename ConnectorIdT = Aws::String>
73 Connector& WithConnectorId(ConnectorIdT&& value) {
74 SetConnectorId(std::forward<ConnectorIdT>(value));
75 return *this;
76 }
78
80
83 inline ConnectorType GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 inline void SetType(ConnectorType value) {
86 m_typeHasBeenSet = true;
87 m_type = value;
88 }
90 SetType(value);
91 return *this;
92 }
94
96
100 inline const Aws::String& GetApplianceFqdn() const { return m_applianceFqdn; }
101 inline bool ApplianceFqdnHasBeenSet() const { return m_applianceFqdnHasBeenSet; }
102 template <typename ApplianceFqdnT = Aws::String>
103 void SetApplianceFqdn(ApplianceFqdnT&& value) {
104 m_applianceFqdnHasBeenSet = true;
105 m_applianceFqdn = std::forward<ApplianceFqdnT>(value);
106 }
107 template <typename ApplianceFqdnT = Aws::String>
108 Connector& WithApplianceFqdn(ApplianceFqdnT&& value) {
109 SetApplianceFqdn(std::forward<ApplianceFqdnT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
120 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
121 template <typename SecretArnT = Aws::String>
122 void SetSecretArn(SecretArnT&& value) {
123 m_secretArnHasBeenSet = true;
124 m_secretArn = std::forward<SecretArnT>(value);
125 }
126 template <typename SecretArnT = Aws::String>
127 Connector& WithSecretArn(SecretArnT&& value) {
128 SetSecretArn(std::forward<SecretArnT>(value));
129 return *this;
130 }
132
134
137 inline ConnectorState GetState() const { return m_state; }
138 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
139 inline void SetState(ConnectorState value) {
140 m_stateHasBeenSet = true;
141 m_state = value;
142 }
144 SetState(value);
145 return *this;
146 }
148
150
153 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
154 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
155 template <typename StateDetailsT = Aws::String>
156 void SetStateDetails(StateDetailsT&& value) {
157 m_stateDetailsHasBeenSet = true;
158 m_stateDetails = std::forward<StateDetailsT>(value);
159 }
160 template <typename StateDetailsT = Aws::String>
161 Connector& WithStateDetails(StateDetailsT&& value) {
162 SetStateDetails(std::forward<StateDetailsT>(value));
163 return *this;
164 }
166
168
171 inline CheckResult GetStatus() const { return m_status; }
172 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
173 inline void SetStatus(CheckResult value) {
174 m_statusHasBeenSet = true;
175 m_status = value;
176 }
178 SetStatus(value);
179 return *this;
180 }
182
184
187 inline const Aws::Vector<ConnectorCheck>& GetChecks() const { return m_checks; }
188 inline bool ChecksHasBeenSet() const { return m_checksHasBeenSet; }
189 template <typename ChecksT = Aws::Vector<ConnectorCheck>>
190 void SetChecks(ChecksT&& value) {
191 m_checksHasBeenSet = true;
192 m_checks = std::forward<ChecksT>(value);
193 }
194 template <typename ChecksT = Aws::Vector<ConnectorCheck>>
195 Connector& WithChecks(ChecksT&& value) {
196 SetChecks(std::forward<ChecksT>(value));
197 return *this;
198 }
199 template <typename ChecksT = ConnectorCheck>
200 Connector& AddChecks(ChecksT&& value) {
201 m_checksHasBeenSet = true;
202 m_checks.emplace_back(std::forward<ChecksT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
212 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
213 template <typename CreatedAtT = Aws::Utils::DateTime>
214 void SetCreatedAt(CreatedAtT&& value) {
215 m_createdAtHasBeenSet = true;
216 m_createdAt = std::forward<CreatedAtT>(value);
217 }
218 template <typename CreatedAtT = Aws::Utils::DateTime>
219 Connector& WithCreatedAt(CreatedAtT&& value) {
220 SetCreatedAt(std::forward<CreatedAtT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
230 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
231 template <typename ModifiedAtT = Aws::Utils::DateTime>
232 void SetModifiedAt(ModifiedAtT&& value) {
233 m_modifiedAtHasBeenSet = true;
234 m_modifiedAt = std::forward<ModifiedAtT>(value);
235 }
236 template <typename ModifiedAtT = Aws::Utils::DateTime>
237 Connector& WithModifiedAt(ModifiedAtT&& value) {
238 SetModifiedAt(std::forward<ModifiedAtT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_environmentId;
244
245 Aws::String m_connectorId;
246
248
249 Aws::String m_applianceFqdn;
250
251 Aws::String m_secretArn;
252
254
255 Aws::String m_stateDetails;
256
258
260
261 Aws::Utils::DateTime m_createdAt{};
262
263 Aws::Utils::DateTime m_modifiedAt{};
264 bool m_environmentIdHasBeenSet = false;
265 bool m_connectorIdHasBeenSet = false;
266 bool m_typeHasBeenSet = false;
267 bool m_applianceFqdnHasBeenSet = false;
268 bool m_secretArnHasBeenSet = false;
269 bool m_stateHasBeenSet = false;
270 bool m_stateDetailsHasBeenSet = false;
271 bool m_statusHasBeenSet = false;
272 bool m_checksHasBeenSet = false;
273 bool m_createdAtHasBeenSet = false;
274 bool m_modifiedAtHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace EVS
279} // namespace Aws
bool StateDetailsHasBeenSet() const
Definition Connector.h:154
ConnectorState GetState() const
Definition Connector.h:137
void SetSecretArn(SecretArnT &&value)
Definition Connector.h:122
AWS_EVS_API Connector()=default
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Connector.h:229
AWS_EVS_API Connector(Aws::Utils::Json::JsonView jsonValue)
Connector & WithType(ConnectorType value)
Definition Connector.h:89
Connector & WithStatus(CheckResult value)
Definition Connector.h:177
ConnectorType GetType() const
Definition Connector.h:83
void SetStatus(CheckResult value)
Definition Connector.h:173
Connector & WithState(ConnectorState value)
Definition Connector.h:143
void SetApplianceFqdn(ApplianceFqdnT &&value)
Definition Connector.h:103
const Aws::String & GetEnvironmentId() const
Definition Connector.h:47
bool SecretArnHasBeenSet() const
Definition Connector.h:120
Connector & WithEnvironmentId(EnvironmentIdT &&value)
Definition Connector.h:55
bool ApplianceFqdnHasBeenSet() const
Definition Connector.h:101
bool CreatedAtHasBeenSet() const
Definition Connector.h:212
Connector & AddChecks(ChecksT &&value)
Definition Connector.h:200
Connector & WithModifiedAt(ModifiedAtT &&value)
Definition Connector.h:237
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Connector.h:211
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ModifiedAtHasBeenSet() const
Definition Connector.h:230
Connector & WithConnectorId(ConnectorIdT &&value)
Definition Connector.h:73
AWS_EVS_API Connector & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStateDetails() const
Definition Connector.h:153
void SetCreatedAt(CreatedAtT &&value)
Definition Connector.h:214
void SetChecks(ChecksT &&value)
Definition Connector.h:190
const Aws::Vector< ConnectorCheck > & GetChecks() const
Definition Connector.h:187
Connector & WithChecks(ChecksT &&value)
Definition Connector.h:195
CheckResult GetStatus() const
Definition Connector.h:171
void SetStateDetails(StateDetailsT &&value)
Definition Connector.h:156
const Aws::String & GetApplianceFqdn() const
Definition Connector.h:100
void SetEnvironmentId(EnvironmentIdT &&value)
Definition Connector.h:50
bool ConnectorIdHasBeenSet() const
Definition Connector.h:66
bool ChecksHasBeenSet() const
Definition Connector.h:188
Connector & WithSecretArn(SecretArnT &&value)
Definition Connector.h:127
Connector & WithApplianceFqdn(ApplianceFqdnT &&value)
Definition Connector.h:108
bool EnvironmentIdHasBeenSet() const
Definition Connector.h:48
Connector & WithStateDetails(StateDetailsT &&value)
Definition Connector.h:161
Connector & WithCreatedAt(CreatedAtT &&value)
Definition Connector.h:219
bool StatusHasBeenSet() const
Definition Connector.h:172
void SetModifiedAt(ModifiedAtT &&value)
Definition Connector.h:232
void SetType(ConnectorType value)
Definition Connector.h:85
const Aws::String & GetSecretArn() const
Definition Connector.h:119
bool TypeHasBeenSet() const
Definition Connector.h:84
void SetState(ConnectorState value)
Definition Connector.h:139
void SetConnectorId(ConnectorIdT &&value)
Definition Connector.h:68
const Aws::String & GetConnectorId() const
Definition Connector.h:65
bool StateHasBeenSet() const
Definition Connector.h:138
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue