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/events/CloudWatchEvents_EXPORTS.h>
11#include <aws/events/model/ConnectionAuthResponseParameters.h>
12#include <aws/events/model/ConnectionAuthorizationType.h>
13#include <aws/events/model/ConnectionState.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 CloudWatchEvents {
27namespace Model {
29 public:
30 AWS_CLOUDWATCHEVENTS_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
89 inline ConnectionState GetConnectionState() const { return m_connectionState; }
91 m_connectionStateHasBeenSet = true;
92 m_connectionState = value;
93 }
95 SetConnectionState(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetStateReason() const { return m_stateReason; }
105 template <typename StateReasonT = Aws::String>
106 void SetStateReason(StateReasonT&& value) {
107 m_stateReasonHasBeenSet = true;
108 m_stateReason = std::forward<StateReasonT>(value);
109 }
110 template <typename StateReasonT = Aws::String>
112 SetStateReason(std::forward<StateReasonT>(value));
113 return *this;
114 }
116
118
121 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
123 m_authorizationTypeHasBeenSet = true;
124 m_authorizationType = value;
125 }
128 return *this;
129 }
131
133
137 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
138 template <typename SecretArnT = Aws::String>
139 void SetSecretArn(SecretArnT&& value) {
140 m_secretArnHasBeenSet = true;
141 m_secretArn = std::forward<SecretArnT>(value);
142 }
143 template <typename SecretArnT = Aws::String>
145 SetSecretArn(std::forward<SecretArnT>(value));
146 return *this;
147 }
149
151
154 inline const ConnectionAuthResponseParameters& GetAuthParameters() const { return m_authParameters; }
155 template <typename AuthParametersT = ConnectionAuthResponseParameters>
156 void SetAuthParameters(AuthParametersT&& value) {
157 m_authParametersHasBeenSet = true;
158 m_authParameters = std::forward<AuthParametersT>(value);
159 }
160 template <typename AuthParametersT = ConnectionAuthResponseParameters>
162 SetAuthParameters(std::forward<AuthParametersT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
172 template <typename CreationTimeT = Aws::Utils::DateTime>
173 void SetCreationTime(CreationTimeT&& value) {
174 m_creationTimeHasBeenSet = true;
175 m_creationTime = std::forward<CreationTimeT>(value);
176 }
177 template <typename CreationTimeT = Aws::Utils::DateTime>
179 SetCreationTime(std::forward<CreationTimeT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
189 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
190 void SetLastModifiedTime(LastModifiedTimeT&& value) {
191 m_lastModifiedTimeHasBeenSet = true;
192 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
193 }
194 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
195 DescribeConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
196 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
206 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
207 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) {
208 m_lastAuthorizedTimeHasBeenSet = true;
209 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
210 }
211 template <typename LastAuthorizedTimeT = Aws::Utils::DateTime>
212 DescribeConnectionResult& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) {
213 SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value));
214 return *this;
215 }
217
219
220 inline const Aws::String& GetRequestId() const { return m_requestId; }
221 template <typename RequestIdT = Aws::String>
222 void SetRequestId(RequestIdT&& value) {
223 m_requestIdHasBeenSet = true;
224 m_requestId = std::forward<RequestIdT>(value);
225 }
226 template <typename RequestIdT = Aws::String>
228 SetRequestId(std::forward<RequestIdT>(value));
229 return *this;
230 }
232 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
233
234 private:
235 Aws::String m_connectionArn;
236
237 Aws::String m_name;
238
239 Aws::String m_description;
240
241 ConnectionState m_connectionState{ConnectionState::NOT_SET};
242
243 Aws::String m_stateReason;
244
246
247 Aws::String m_secretArn;
248
249 ConnectionAuthResponseParameters m_authParameters;
250
251 Aws::Utils::DateTime m_creationTime{};
252
253 Aws::Utils::DateTime m_lastModifiedTime{};
254
255 Aws::Utils::DateTime m_lastAuthorizedTime{};
256
257 Aws::String m_requestId;
258 Aws::Http::HttpResponseCode m_HttpResponseCode;
259 bool m_connectionArnHasBeenSet = false;
260 bool m_nameHasBeenSet = false;
261 bool m_descriptionHasBeenSet = false;
262 bool m_connectionStateHasBeenSet = false;
263 bool m_stateReasonHasBeenSet = false;
264 bool m_authorizationTypeHasBeenSet = false;
265 bool m_secretArnHasBeenSet = false;
266 bool m_authParametersHasBeenSet = false;
267 bool m_creationTimeHasBeenSet = false;
268 bool m_lastModifiedTimeHasBeenSet = false;
269 bool m_lastAuthorizedTimeHasBeenSet = false;
270 bool m_requestIdHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace CloudWatchEvents
275} // namespace Aws
DescribeConnectionResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeConnectionResult & WithStateReason(StateReasonT &&value)
DescribeConnectionResult & WithDescription(DescriptionT &&value)
DescribeConnectionResult & WithConnectionArn(ConnectionArnT &&value)
DescribeConnectionResult & WithAuthorizationType(ConnectionAuthorizationType value)
DescribeConnectionResult & WithRequestId(RequestIdT &&value)
DescribeConnectionResult & WithCreationTime(CreationTimeT &&value)
DescribeConnectionResult & WithAuthParameters(AuthParametersT &&value)
const ConnectionAuthResponseParameters & GetAuthParameters() const
AWS_CLOUDWATCHEVENTS_API DescribeConnectionResult()=default
DescribeConnectionResult & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeConnectionResult & WithSecretArn(SecretArnT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAuthorizationType(ConnectionAuthorizationType value)
DescribeConnectionResult & WithConnectionState(ConnectionState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue