AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeConnectionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/ConnectionAuthResponseParameters.h>
11#include <aws/eventbridge/model/ConnectionAuthorizationType.h>
12#include <aws/eventbridge/model/ConnectionState.h>
13#include <aws/eventbridge/model/DescribeConnectionConnectivityParameters.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace EventBridge {
27namespace Model {
29 public:
30 AWS_EVENTBRIDGE_API DescribeConnectionResult() = default;
33
35
38 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
39 template <typename ConnectionArnT = Aws::String>
40 void SetConnectionArn(ConnectionArnT&& value) {
41 m_connectionArnHasBeenSet = true;
42 m_connectionArn = std::forward<ConnectionArnT>(value);
43 }
44 template <typename ConnectionArnT = Aws::String>
46 SetConnectionArn(std::forward<ConnectionArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
93 return m_invocationConnectivityParameters;
94 }
95 template <typename InvocationConnectivityParametersT = DescribeConnectionConnectivityParameters>
96 void SetInvocationConnectivityParameters(InvocationConnectivityParametersT&& value) {
97 m_invocationConnectivityParametersHasBeenSet = true;
98 m_invocationConnectivityParameters = std::forward<InvocationConnectivityParametersT>(value);
99 }
100 template <typename InvocationConnectivityParametersT = DescribeConnectionConnectivityParameters>
101 DescribeConnectionResult& WithInvocationConnectivityParameters(InvocationConnectivityParametersT&& value) {
102 SetInvocationConnectivityParameters(std::forward<InvocationConnectivityParametersT>(value));
103 return *this;
104 }
106
108
111 inline ConnectionState GetConnectionState() const { return m_connectionState; }
113 m_connectionStateHasBeenSet = true;
114 m_connectionState = value;
115 }
117 SetConnectionState(value);
118 return *this;
119 }
121
123
126 inline const Aws::String& GetStateReason() const { return m_stateReason; }
127 template <typename StateReasonT = Aws::String>
128 void SetStateReason(StateReasonT&& value) {
129 m_stateReasonHasBeenSet = true;
130 m_stateReason = std::forward<StateReasonT>(value);
131 }
132 template <typename StateReasonT = Aws::String>
134 SetStateReason(std::forward<StateReasonT>(value));
135 return *this;
136 }
138
140
143 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
145 m_authorizationTypeHasBeenSet = true;
146 m_authorizationType = value;
147 }
150 return *this;
151 }
153
155
159 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
160 template <typename SecretArnT = Aws::String>
161 void SetSecretArn(SecretArnT&& value) {
162 m_secretArnHasBeenSet = true;
163 m_secretArn = std::forward<SecretArnT>(value);
164 }
165 template <typename SecretArnT = Aws::String>
167 SetSecretArn(std::forward<SecretArnT>(value));
168 return *this;
169 }
171
173
180 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
181 template <typename KmsKeyIdentifierT = Aws::String>
182 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
183 m_kmsKeyIdentifierHasBeenSet = true;
184 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
185 }
186 template <typename KmsKeyIdentifierT = Aws::String>
187 DescribeConnectionResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
188 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
189 return *this;
190 }
192
194
197 inline const ConnectionAuthResponseParameters& GetAuthParameters() const { return m_authParameters; }
198 template <typename AuthParametersT = ConnectionAuthResponseParameters>
199 void SetAuthParameters(AuthParametersT&& value) {
200 m_authParametersHasBeenSet = true;
201 m_authParameters = std::forward<AuthParametersT>(value);
202 }
203 template <typename AuthParametersT = ConnectionAuthResponseParameters>
205 SetAuthParameters(std::forward<AuthParametersT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
215 template <typename CreationTimeT = Aws::Utils::DateTime>
216 void SetCreationTime(CreationTimeT&& value) {
217 m_creationTimeHasBeenSet = true;
218 m_creationTime = std::forward<CreationTimeT>(value);
219 }
220 template <typename CreationTimeT = Aws::Utils::DateTime>
222 SetCreationTime(std::forward<CreationTimeT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
232 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
233 void SetLastModifiedTime(LastModifiedTimeT&& value) {
234 m_lastModifiedTimeHasBeenSet = true;
235 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
236 }
237 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
238 DescribeConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
239 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
249 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
250 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) {
251 m_lastAuthorizedTimeHasBeenSet = true;
252 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
253 }
254 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
255 DescribeConnectionResult& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) {
256 SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value));
257 return *this;
258 }
260
262
263 inline const Aws::String& GetRequestId() const { return m_requestId; }
264 template <typename RequestIdT = Aws::String>
265 void SetRequestId(RequestIdT&& value) {
266 m_requestIdHasBeenSet = true;
267 m_requestId = std::forward<RequestIdT>(value);
268 }
269 template <typename RequestIdT = Aws::String>
271 SetRequestId(std::forward<RequestIdT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_connectionArn;
277
278 Aws::String m_name;
279
280 Aws::String m_description;
281
282 DescribeConnectionConnectivityParameters m_invocationConnectivityParameters;
283
284 ConnectionState m_connectionState{ConnectionState::NOT_SET};
285
286 Aws::String m_stateReason;
287
289
290 Aws::String m_secretArn;
291
292 Aws::String m_kmsKeyIdentifier;
293
294 ConnectionAuthResponseParameters m_authParameters;
295
296 Aws::Utils::DateTime m_creationTime{};
297
298 Aws::Utils::DateTime m_lastModifiedTime{};
299
300 Aws::Utils::DateTime m_lastAuthorizedTime{};
301
302 Aws::String m_requestId;
303 bool m_connectionArnHasBeenSet = false;
304 bool m_nameHasBeenSet = false;
305 bool m_descriptionHasBeenSet = false;
306 bool m_invocationConnectivityParametersHasBeenSet = false;
307 bool m_connectionStateHasBeenSet = false;
308 bool m_stateReasonHasBeenSet = false;
309 bool m_authorizationTypeHasBeenSet = false;
310 bool m_secretArnHasBeenSet = false;
311 bool m_kmsKeyIdentifierHasBeenSet = false;
312 bool m_authParametersHasBeenSet = false;
313 bool m_creationTimeHasBeenSet = false;
314 bool m_lastModifiedTimeHasBeenSet = false;
315 bool m_lastAuthorizedTimeHasBeenSet = false;
316 bool m_requestIdHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace EventBridge
321} // 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