AWS SDK for C++

AWS SDK for C++ Version 1.11.796

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
35class Connector {
36 public:
37 AWS_EVS_API Connector() = default;
38 AWS_EVS_API Connector(Aws::Utils::Json::JsonView jsonValue);
41
43
46 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
47 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
48 template <typename EnvironmentIdT = Aws::String>
49 void SetEnvironmentId(EnvironmentIdT&& value) {
50 m_environmentIdHasBeenSet = true;
51 m_environmentId = std::forward<EnvironmentIdT>(value);
52 }
53 template <typename EnvironmentIdT = Aws::String>
54 Connector& WithEnvironmentId(EnvironmentIdT&& value) {
55 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
65 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
66 template <typename ConnectorIdT = Aws::String>
67 void SetConnectorId(ConnectorIdT&& value) {
68 m_connectorIdHasBeenSet = true;
69 m_connectorId = std::forward<ConnectorIdT>(value);
70 }
71 template <typename ConnectorIdT = Aws::String>
72 Connector& WithConnectorId(ConnectorIdT&& value) {
73 SetConnectorId(std::forward<ConnectorIdT>(value));
74 return *this;
75 }
77
79
82 inline ConnectorType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(ConnectorType value) {
85 m_typeHasBeenSet = true;
86 m_type = value;
87 }
89 SetType(value);
90 return *this;
91 }
93
95
99 inline const Aws::String& GetApplianceFqdn() const { return m_applianceFqdn; }
100 inline bool ApplianceFqdnHasBeenSet() const { return m_applianceFqdnHasBeenSet; }
101 template <typename ApplianceFqdnT = Aws::String>
102 void SetApplianceFqdn(ApplianceFqdnT&& value) {
103 m_applianceFqdnHasBeenSet = true;
104 m_applianceFqdn = std::forward<ApplianceFqdnT>(value);
105 }
106 template <typename ApplianceFqdnT = Aws::String>
107 Connector& WithApplianceFqdn(ApplianceFqdnT&& value) {
108 SetApplianceFqdn(std::forward<ApplianceFqdnT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
119 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
120 template <typename SecretArnT = Aws::String>
121 void SetSecretArn(SecretArnT&& value) {
122 m_secretArnHasBeenSet = true;
123 m_secretArn = std::forward<SecretArnT>(value);
124 }
125 template <typename SecretArnT = Aws::String>
126 Connector& WithSecretArn(SecretArnT&& value) {
127 SetSecretArn(std::forward<SecretArnT>(value));
128 return *this;
129 }
131
133
136 inline ConnectorState GetState() const { return m_state; }
137 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
138 inline void SetState(ConnectorState value) {
139 m_stateHasBeenSet = true;
140 m_state = value;
141 }
143 SetState(value);
144 return *this;
145 }
147
149
152 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
153 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
154 template <typename StateDetailsT = Aws::String>
155 void SetStateDetails(StateDetailsT&& value) {
156 m_stateDetailsHasBeenSet = true;
157 m_stateDetails = std::forward<StateDetailsT>(value);
158 }
159 template <typename StateDetailsT = Aws::String>
160 Connector& WithStateDetails(StateDetailsT&& value) {
161 SetStateDetails(std::forward<StateDetailsT>(value));
162 return *this;
163 }
165
167
170 inline CheckResult GetStatus() const { return m_status; }
171 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 inline void SetStatus(CheckResult value) {
173 m_statusHasBeenSet = true;
174 m_status = value;
175 }
177 SetStatus(value);
178 return *this;
179 }
181
183
186 inline const Aws::Vector<ConnectorCheck>& GetChecks() const { return m_checks; }
187 inline bool ChecksHasBeenSet() const { return m_checksHasBeenSet; }
188 template <typename ChecksT = Aws::Vector<ConnectorCheck>>
189 void SetChecks(ChecksT&& value) {
190 m_checksHasBeenSet = true;
191 m_checks = std::forward<ChecksT>(value);
192 }
193 template <typename ChecksT = Aws::Vector<ConnectorCheck>>
194 Connector& WithChecks(ChecksT&& value) {
195 SetChecks(std::forward<ChecksT>(value));
196 return *this;
197 }
198 template <typename ChecksT = ConnectorCheck>
199 Connector& AddChecks(ChecksT&& value) {
200 m_checksHasBeenSet = true;
201 m_checks.emplace_back(std::forward<ChecksT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
211 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
212 template <typename CreatedAtT = Aws::Utils::DateTime>
213 void SetCreatedAt(CreatedAtT&& value) {
214 m_createdAtHasBeenSet = true;
215 m_createdAt = std::forward<CreatedAtT>(value);
216 }
217 template <typename CreatedAtT = Aws::Utils::DateTime>
218 Connector& WithCreatedAt(CreatedAtT&& value) {
219 SetCreatedAt(std::forward<CreatedAtT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
229 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
230 template <typename ModifiedAtT = Aws::Utils::DateTime>
231 void SetModifiedAt(ModifiedAtT&& value) {
232 m_modifiedAtHasBeenSet = true;
233 m_modifiedAt = std::forward<ModifiedAtT>(value);
234 }
235 template <typename ModifiedAtT = Aws::Utils::DateTime>
236 Connector& WithModifiedAt(ModifiedAtT&& value) {
237 SetModifiedAt(std::forward<ModifiedAtT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_environmentId;
243
244 Aws::String m_connectorId;
245
247
248 Aws::String m_applianceFqdn;
249
250 Aws::String m_secretArn;
251
253
254 Aws::String m_stateDetails;
255
257
259
260 Aws::Utils::DateTime m_createdAt{};
261
262 Aws::Utils::DateTime m_modifiedAt{};
263 bool m_environmentIdHasBeenSet = false;
264 bool m_connectorIdHasBeenSet = false;
265 bool m_typeHasBeenSet = false;
266 bool m_applianceFqdnHasBeenSet = false;
267 bool m_secretArnHasBeenSet = false;
268 bool m_stateHasBeenSet = false;
269 bool m_stateDetailsHasBeenSet = false;
270 bool m_statusHasBeenSet = false;
271 bool m_checksHasBeenSet = false;
272 bool m_createdAtHasBeenSet = false;
273 bool m_modifiedAtHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace EVS
278} // namespace Aws
bool StateDetailsHasBeenSet() const
Definition Connector.h:153
ConnectorState GetState() const
Definition Connector.h:136
void SetSecretArn(SecretArnT &&value)
Definition Connector.h:121
AWS_EVS_API Connector()=default
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Connector.h:228
AWS_EVS_API Connector(Aws::Utils::Json::JsonView jsonValue)
Connector & WithType(ConnectorType value)
Definition Connector.h:88
Connector & WithStatus(CheckResult value)
Definition Connector.h:176
ConnectorType GetType() const
Definition Connector.h:82
void SetStatus(CheckResult value)
Definition Connector.h:172
Connector & WithState(ConnectorState value)
Definition Connector.h:142
void SetApplianceFqdn(ApplianceFqdnT &&value)
Definition Connector.h:102
const Aws::String & GetEnvironmentId() const
Definition Connector.h:46
bool SecretArnHasBeenSet() const
Definition Connector.h:119
Connector & WithEnvironmentId(EnvironmentIdT &&value)
Definition Connector.h:54
bool ApplianceFqdnHasBeenSet() const
Definition Connector.h:100
bool CreatedAtHasBeenSet() const
Definition Connector.h:211
Connector & AddChecks(ChecksT &&value)
Definition Connector.h:199
Connector & WithModifiedAt(ModifiedAtT &&value)
Definition Connector.h:236
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Connector.h:210
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ModifiedAtHasBeenSet() const
Definition Connector.h:229
Connector & WithConnectorId(ConnectorIdT &&value)
Definition Connector.h:72
AWS_EVS_API Connector & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStateDetails() const
Definition Connector.h:152
void SetCreatedAt(CreatedAtT &&value)
Definition Connector.h:213
void SetChecks(ChecksT &&value)
Definition Connector.h:189
const Aws::Vector< ConnectorCheck > & GetChecks() const
Definition Connector.h:186
Connector & WithChecks(ChecksT &&value)
Definition Connector.h:194
CheckResult GetStatus() const
Definition Connector.h:170
void SetStateDetails(StateDetailsT &&value)
Definition Connector.h:155
const Aws::String & GetApplianceFqdn() const
Definition Connector.h:99
void SetEnvironmentId(EnvironmentIdT &&value)
Definition Connector.h:49
bool ConnectorIdHasBeenSet() const
Definition Connector.h:65
bool ChecksHasBeenSet() const
Definition Connector.h:187
Connector & WithSecretArn(SecretArnT &&value)
Definition Connector.h:126
Connector & WithApplianceFqdn(ApplianceFqdnT &&value)
Definition Connector.h:107
bool EnvironmentIdHasBeenSet() const
Definition Connector.h:47
Connector & WithStateDetails(StateDetailsT &&value)
Definition Connector.h:160
Connector & WithCreatedAt(CreatedAtT &&value)
Definition Connector.h:218
bool StatusHasBeenSet() const
Definition Connector.h:171
void SetModifiedAt(ModifiedAtT &&value)
Definition Connector.h:231
void SetType(ConnectorType value)
Definition Connector.h:84
const Aws::String & GetSecretArn() const
Definition Connector.h:118
bool TypeHasBeenSet() const
Definition Connector.h:83
void SetState(ConnectorState value)
Definition Connector.h:138
void SetConnectorId(ConnectorIdT &&value)
Definition Connector.h:67
const Aws::String & GetConnectorId() const
Definition Connector.h:64
bool StateHasBeenSet() const
Definition Connector.h:137
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue