AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeConnectionResult.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/DescribeConnectionConnectivityParameters.h>
10#include <aws/eventbridge/model/ConnectionState.h>
11#include <aws/eventbridge/model/ConnectionAuthorizationType.h>
12#include <aws/eventbridge/model/ConnectionAuthResponseParameters.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace EventBridge
29{
30namespace Model
31{
33 {
34 public:
35 AWS_EVENTBRIDGE_API DescribeConnectionResult() = default;
38
39
41
44 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
45 template<typename ConnectionArnT = Aws::String>
46 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
47 template<typename ConnectionArnT = Aws::String>
48 DescribeConnectionResult& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 DescribeConnectionResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 DescribeConnectionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
80 inline const DescribeConnectionConnectivityParameters& GetInvocationConnectivityParameters() const { return m_invocationConnectivityParameters; }
81 template<typename InvocationConnectivityParametersT = DescribeConnectionConnectivityParameters>
82 void SetInvocationConnectivityParameters(InvocationConnectivityParametersT&& value) { m_invocationConnectivityParametersHasBeenSet = true; m_invocationConnectivityParameters = std::forward<InvocationConnectivityParametersT>(value); }
83 template<typename InvocationConnectivityParametersT = DescribeConnectionConnectivityParameters>
84 DescribeConnectionResult& WithInvocationConnectivityParameters(InvocationConnectivityParametersT&& value) { SetInvocationConnectivityParameters(std::forward<InvocationConnectivityParametersT>(value)); return *this;}
86
88
91 inline ConnectionState GetConnectionState() const { return m_connectionState; }
92 inline void SetConnectionState(ConnectionState value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
95
97
100 inline const Aws::String& GetStateReason() const { return m_stateReason; }
101 template<typename StateReasonT = Aws::String>
102 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
103 template<typename StateReasonT = Aws::String>
104 DescribeConnectionResult& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
106
108
111 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
112 inline void SetAuthorizationType(ConnectionAuthorizationType value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
115
117
121 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
122 template<typename SecretArnT = Aws::String>
123 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
124 template<typename SecretArnT = Aws::String>
125 DescribeConnectionResult& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
127
129
136 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
137 template<typename KmsKeyIdentifierT = Aws::String>
138 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
139 template<typename KmsKeyIdentifierT = Aws::String>
140 DescribeConnectionResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
142
144
147 inline const ConnectionAuthResponseParameters& GetAuthParameters() const { return m_authParameters; }
148 template<typename AuthParametersT = ConnectionAuthResponseParameters>
149 void SetAuthParameters(AuthParametersT&& value) { m_authParametersHasBeenSet = true; m_authParameters = std::forward<AuthParametersT>(value); }
150 template<typename AuthParametersT = ConnectionAuthResponseParameters>
151 DescribeConnectionResult& WithAuthParameters(AuthParametersT&& value) { SetAuthParameters(std::forward<AuthParametersT>(value)); return *this;}
153
155
158 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
159 template<typename CreationTimeT = Aws::Utils::DateTime>
160 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
161 template<typename CreationTimeT = Aws::Utils::DateTime>
162 DescribeConnectionResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
170 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
171 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
172 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
173 DescribeConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
175
177
180 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
181 template<typename LastAuthorizedTimeT = Aws::Utils::DateTime>
182 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) { m_lastAuthorizedTimeHasBeenSet = true; m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value); }
183 template<typename LastAuthorizedTimeT = Aws::Utils::DateTime>
184 DescribeConnectionResult& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) { SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value)); return *this;}
186
188
189 inline const Aws::String& GetRequestId() const { return m_requestId; }
190 template<typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
192 template<typename RequestIdT = Aws::String>
193 DescribeConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
195 private:
196
197 Aws::String m_connectionArn;
198 bool m_connectionArnHasBeenSet = false;
199
200 Aws::String m_name;
201 bool m_nameHasBeenSet = false;
202
203 Aws::String m_description;
204 bool m_descriptionHasBeenSet = false;
205
206 DescribeConnectionConnectivityParameters m_invocationConnectivityParameters;
207 bool m_invocationConnectivityParametersHasBeenSet = false;
208
209 ConnectionState m_connectionState{ConnectionState::NOT_SET};
210 bool m_connectionStateHasBeenSet = false;
211
212 Aws::String m_stateReason;
213 bool m_stateReasonHasBeenSet = false;
214
216 bool m_authorizationTypeHasBeenSet = false;
217
218 Aws::String m_secretArn;
219 bool m_secretArnHasBeenSet = false;
220
221 Aws::String m_kmsKeyIdentifier;
222 bool m_kmsKeyIdentifierHasBeenSet = false;
223
224 ConnectionAuthResponseParameters m_authParameters;
225 bool m_authParametersHasBeenSet = false;
226
227 Aws::Utils::DateTime m_creationTime{};
228 bool m_creationTimeHasBeenSet = false;
229
230 Aws::Utils::DateTime m_lastModifiedTime{};
231 bool m_lastModifiedTimeHasBeenSet = false;
232
233 Aws::Utils::DateTime m_lastAuthorizedTime{};
234 bool m_lastAuthorizedTimeHasBeenSet = false;
235
236 Aws::String m_requestId;
237 bool m_requestIdHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace EventBridge
242} // 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