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/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/model/ConnectionState.h>
10#include <aws/events/model/ConnectionAuthorizationType.h>
11#include <aws/events/model/ConnectionAuthResponseParameters.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CloudWatchEvents
28{
29namespace Model
30{
32 {
33 public:
34 AWS_CLOUDWATCHEVENTS_API DescribeConnectionResult() = default;
37
38
40
43 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
44 template<typename ConnectionArnT = Aws::String>
45 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
46 template<typename ConnectionArnT = Aws::String>
47 DescribeConnectionResult& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 DescribeConnectionResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 DescribeConnectionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
76 inline ConnectionState GetConnectionState() const { return m_connectionState; }
77 inline void SetConnectionState(ConnectionState value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
80
82
85 inline const Aws::String& GetStateReason() const { return m_stateReason; }
86 template<typename StateReasonT = Aws::String>
87 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
88 template<typename StateReasonT = Aws::String>
89 DescribeConnectionResult& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
91
93
96 inline ConnectionAuthorizationType GetAuthorizationType() const { return m_authorizationType; }
97 inline void SetAuthorizationType(ConnectionAuthorizationType value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
100
102
106 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
107 template<typename SecretArnT = Aws::String>
108 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
109 template<typename SecretArnT = Aws::String>
110 DescribeConnectionResult& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
112
114
117 inline const ConnectionAuthResponseParameters& GetAuthParameters() const { return m_authParameters; }
118 template<typename AuthParametersT = ConnectionAuthResponseParameters>
119 void SetAuthParameters(AuthParametersT&& value) { m_authParametersHasBeenSet = true; m_authParameters = std::forward<AuthParametersT>(value); }
120 template<typename AuthParametersT = ConnectionAuthResponseParameters>
121 DescribeConnectionResult& WithAuthParameters(AuthParametersT&& value) { SetAuthParameters(std::forward<AuthParametersT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
129 template<typename CreationTimeT = Aws::Utils::DateTime>
130 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
131 template<typename CreationTimeT = Aws::Utils::DateTime>
132 DescribeConnectionResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
140 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
141 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
142 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
143 DescribeConnectionResult& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const { return m_lastAuthorizedTime; }
151 template<typename LastAuthorizedTimeT = Aws::Utils::DateTime>
152 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) { m_lastAuthorizedTimeHasBeenSet = true; m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value); }
153 template<typename LastAuthorizedTimeT = Aws::Utils::DateTime>
154 DescribeConnectionResult& WithLastAuthorizedTime(LastAuthorizedTimeT&& value) { SetLastAuthorizedTime(std::forward<LastAuthorizedTimeT>(value)); return *this;}
156
158
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 template<typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
162 template<typename RequestIdT = Aws::String>
163 DescribeConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
165 private:
166
167 Aws::String m_connectionArn;
168 bool m_connectionArnHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
176 ConnectionState m_connectionState{ConnectionState::NOT_SET};
177 bool m_connectionStateHasBeenSet = false;
178
179 Aws::String m_stateReason;
180 bool m_stateReasonHasBeenSet = false;
181
183 bool m_authorizationTypeHasBeenSet = false;
184
185 Aws::String m_secretArn;
186 bool m_secretArnHasBeenSet = false;
187
188 ConnectionAuthResponseParameters m_authParameters;
189 bool m_authParametersHasBeenSet = false;
190
191 Aws::Utils::DateTime m_creationTime{};
192 bool m_creationTimeHasBeenSet = false;
193
194 Aws::Utils::DateTime m_lastModifiedTime{};
195 bool m_lastModifiedTimeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_lastAuthorizedTime{};
198 bool m_lastAuthorizedTimeHasBeenSet = false;
199
200 Aws::String m_requestId;
201 bool m_requestIdHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace CloudWatchEvents
206} // 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