AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeConnectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/ConnectionAuthResponseParameters.h>
12#include <aws/eventbridge/model/ConnectionAuthorizationType.h>
13#include <aws/eventbridge/model/ConnectionState.h>
14#include <aws/eventbridge/model/DescribeConnectionConnectivityParameters.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace EventBridge {
28namespace Model {
30 public:
31 AWS_EVENTBRIDGE_API DescribeConnectionResult() = default;
34
36
39 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
40 template <typename ConnectionArnT = Aws::String>
41 void SetConnectionArn(ConnectionArnT&& value) {
42 m_connectionArnHasBeenSet = true;
43 m_connectionArn = std::forward<ConnectionArnT>(value);
44 }
45 template <typename ConnectionArnT = Aws::String>
47 SetConnectionArn(std::forward<ConnectionArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
94 return m_invocationConnectivityParameters;
95 }
96 template <typename InvocationConnectivityParametersT = DescribeConnectionConnectivityParameters>
97 void SetInvocationConnectivityParameters(InvocationConnectivityParametersT&& value) {
98 m_invocationConnectivityParametersHasBeenSet = true;
99 m_invocationConnectivityParameters = std::forward<InvocationConnectivityParametersT>(value);
100 }
101 template <typename InvocationConnectivityParametersT = DescribeConnectionConnectivityParameters>
102 DescribeConnectionResult& WithInvocationConnectivityParameters(InvocationConnectivityParametersT&& value) {
103 SetInvocationConnectivityParameters(std::forward<InvocationConnectivityParametersT>(value));
104 return *this;
105 }
107
109
112 inline ConnectionState GetConnectionState() const { return m_connectionState; }
114 m_connectionStateHasBeenSet = true;
115 m_connectionState = value;
116 }
118 SetConnectionState(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetStateReason() const { return m_stateReason; }
128 template <typename StateReasonT = Aws::String>
129 void SetStateReason(StateReasonT&& value) {
130 m_stateReasonHasBeenSet = true;
131 m_stateReason = std::forward<StateReasonT>(value);
132 }
133 template <typename StateReasonT = Aws::String>
135 SetStateReason(std::forward<StateReasonT>(value));
136 return *this;
137 }
139
141
144 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
146 m_authorizationTypeHasBeenSet = true;
147 m_authorizationType = value;
148 }
151 return *this;
152 }
154
156
160 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
161 template <typename SecretArnT = Aws::String>
162 void SetSecretArn(SecretArnT&& value) {
163 m_secretArnHasBeenSet = true;
164 m_secretArn = std::forward<SecretArnT>(value);
165 }
166 template <typename SecretArnT = Aws::String>
168 SetSecretArn(std::forward<SecretArnT>(value));
169 return *this;
170 }
172
174
181 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
182 template <typename KmsKeyIdentifierT = Aws::String>
183 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
184 m_kmsKeyIdentifierHasBeenSet = true;
185 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
186 }
187 template <typename KmsKeyIdentifierT = Aws::String>
188 DescribeConnectionResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
189 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
190 return *this;
191 }
193
195
198 inline const ConnectionAuthResponseParameters& GetAuthParameters() const { return m_authParameters; }
199 template <typename AuthParametersT = ConnectionAuthResponseParameters>
200 void SetAuthParameters(AuthParametersT&& value) {
201 m_authParametersHasBeenSet = true;
202 m_authParameters = std::forward<AuthParametersT>(value);
203 }
204 template <typename AuthParametersT = ConnectionAuthResponseParameters>
206 SetAuthParameters(std::forward<AuthParametersT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
216 template <typename CreationTimeT = Aws::Utils::DateTime>
217 void SetCreationTime(CreationTimeT&& value) {
218 m_creationTimeHasBeenSet = true;
219 m_creationTime = std::forward<CreationTimeT>(value);
220 }
221 template <typename CreationTimeT = Aws::Utils::DateTime>
223 SetCreationTime(std::forward<CreationTimeT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
233 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
234 void SetLastModifiedTime(LastModifiedTimeT&& value) {
235 m_lastModifiedTimeHasBeenSet = true;
236 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
237 }
238 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
239 DescribeConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
240 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
250 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
251 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) {
252 m_lastAuthorizedTimeHasBeenSet = true;
253 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
254 }
255 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
256 DescribeConnectionResult& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) {
257 SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value));
258 return *this;
259 }
261
263
264 inline const Aws::String& GetRequestId() const { return m_requestId; }
265 template <typename RequestIdT = Aws::String>
266 void SetRequestId(RequestIdT&& value) {
267 m_requestIdHasBeenSet = true;
268 m_requestId = std::forward<RequestIdT>(value);
269 }
270 template <typename RequestIdT = Aws::String>
272 SetRequestId(std::forward<RequestIdT>(value));
273 return *this;
274 }
276 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
277
278 private:
279 Aws::String m_connectionArn;
280
281 Aws::String m_name;
282
283 Aws::String m_description;
284
285 DescribeConnectionConnectivityParameters m_invocationConnectivityParameters;
286
287 ConnectionState m_connectionState{ConnectionState::NOT_SET};
288
289 Aws::String m_stateReason;
290
292
293 Aws::String m_secretArn;
294
295 Aws::String m_kmsKeyIdentifier;
296
297 ConnectionAuthResponseParameters m_authParameters;
298
299 Aws::Utils::DateTime m_creationTime{};
300
301 Aws::Utils::DateTime m_lastModifiedTime{};
302
303 Aws::Utils::DateTime m_lastAuthorizedTime{};
304
305 Aws::String m_requestId;
306 Aws::Http::HttpResponseCode m_HttpResponseCode;
307 bool m_connectionArnHasBeenSet = false;
308 bool m_nameHasBeenSet = false;
309 bool m_descriptionHasBeenSet = false;
310 bool m_invocationConnectivityParametersHasBeenSet = false;
311 bool m_connectionStateHasBeenSet = false;
312 bool m_stateReasonHasBeenSet = false;
313 bool m_authorizationTypeHasBeenSet = false;
314 bool m_secretArnHasBeenSet = false;
315 bool m_kmsKeyIdentifierHasBeenSet = false;
316 bool m_authParametersHasBeenSet = false;
317 bool m_creationTimeHasBeenSet = false;
318 bool m_lastModifiedTimeHasBeenSet = false;
319 bool m_lastAuthorizedTimeHasBeenSet = false;
320 bool m_requestIdHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace EventBridge
325} // namespace Aws
DescribeConnectionResult & WithSecretArn(SecretArnT &&value)
void SetAuthorizationType(ConnectionAuthorizationType value)
void SetInvocationConnectivityParameters(InvocationConnectivityParametersT &&value)
DescribeConnectionResult & WithConnectionArn(ConnectionArnT &&value)
DescribeConnectionResult & WithInvocationConnectivityParameters(InvocationConnectivityParametersT &&value)
DescribeConnectionResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
DescribeConnectionResult & WithCreationTime(CreationTimeT &&value)
AWS_EVENTBRIDGE_API DescribeConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeConnectionResult & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
DescribeConnectionResult & WithAuthorizationType(ConnectionAuthorizationType value)
DescribeConnectionResult & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API DescribeConnectionResult()=default
const ConnectionAuthResponseParameters & GetAuthParameters() const
DescribeConnectionResult & WithAuthParameters(AuthParametersT &&value)
DescribeConnectionResult & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
DescribeConnectionResult & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DescribeConnectionResult & WithStateReason(StateReasonT &&value)
AWS_EVENTBRIDGE_API DescribeConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeConnectionResult & WithConnectionState(ConnectionState value)
DescribeConnectionResult & WithRequestId(RequestIdT &&value)
const DescribeConnectionConnectivityParameters & GetInvocationConnectivityParameters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue