AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37
38
40
43 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
44 inline void SetConnectionArn(const Aws::String& value) { m_connectionArn = value; }
45 inline void SetConnectionArn(Aws::String&& value) { m_connectionArn = std::move(value); }
46 inline void SetConnectionArn(const char* value) { m_connectionArn.assign(value); }
47 inline DescribeConnectionResult& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
48 inline DescribeConnectionResult& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
49 inline DescribeConnectionResult& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline void SetName(const Aws::String& value) { m_name = value; }
58 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
59 inline void SetName(const char* value) { m_name.assign(value); }
60 inline DescribeConnectionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline DescribeConnectionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline DescribeConnectionResult& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline void SetDescription(const Aws::String& value) { m_description = value; }
71 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
72 inline void SetDescription(const char* value) { m_description.assign(value); }
73 inline DescribeConnectionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
74 inline DescribeConnectionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
75 inline DescribeConnectionResult& WithDescription(const char* value) { SetDescription(value); return *this;}
77
79
82 inline const ConnectionState& GetConnectionState() const{ return m_connectionState; }
83 inline void SetConnectionState(const ConnectionState& value) { m_connectionState = value; }
84 inline void SetConnectionState(ConnectionState&& value) { m_connectionState = std::move(value); }
86 inline DescribeConnectionResult& WithConnectionState(ConnectionState&& value) { SetConnectionState(std::move(value)); return *this;}
88
90
93 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
94 inline void SetStateReason(const Aws::String& value) { m_stateReason = value; }
95 inline void SetStateReason(Aws::String&& value) { m_stateReason = std::move(value); }
96 inline void SetStateReason(const char* value) { m_stateReason.assign(value); }
97 inline DescribeConnectionResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
98 inline DescribeConnectionResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
99 inline DescribeConnectionResult& WithStateReason(const char* value) { SetStateReason(value); return *this;}
101
103
106 inline const ConnectionAuthorizationType& GetAuthorizationType() const{ return m_authorizationType; }
107 inline void SetAuthorizationType(const ConnectionAuthorizationType& value) { m_authorizationType = value; }
108 inline void SetAuthorizationType(ConnectionAuthorizationType&& value) { m_authorizationType = std::move(value); }
112
114
118 inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
119 inline void SetSecretArn(const Aws::String& value) { m_secretArn = value; }
120 inline void SetSecretArn(Aws::String&& value) { m_secretArn = std::move(value); }
121 inline void SetSecretArn(const char* value) { m_secretArn.assign(value); }
122 inline DescribeConnectionResult& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
123 inline DescribeConnectionResult& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
124 inline DescribeConnectionResult& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
126
128
131 inline const ConnectionAuthResponseParameters& GetAuthParameters() const{ return m_authParameters; }
132 inline void SetAuthParameters(const ConnectionAuthResponseParameters& value) { m_authParameters = value; }
133 inline void SetAuthParameters(ConnectionAuthResponseParameters&& value) { m_authParameters = std::move(value); }
137
139
142 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
143 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
144 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
146 inline DescribeConnectionResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
154 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; }
155 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); }
159
161
164 inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const{ return m_lastAuthorizedTime; }
165 inline void SetLastAuthorizedTime(const Aws::Utils::DateTime& value) { m_lastAuthorizedTime = value; }
166 inline void SetLastAuthorizedTime(Aws::Utils::DateTime&& value) { m_lastAuthorizedTime = std::move(value); }
170
172
173 inline const Aws::String& GetRequestId() const{ return m_requestId; }
174 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
175 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
176 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
177 inline DescribeConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
178 inline DescribeConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
179 inline DescribeConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
181 private:
182
183 Aws::String m_connectionArn;
184
185 Aws::String m_name;
186
187 Aws::String m_description;
188
189 ConnectionState m_connectionState;
190
191 Aws::String m_stateReason;
192
193 ConnectionAuthorizationType m_authorizationType;
194
195 Aws::String m_secretArn;
196
197 ConnectionAuthResponseParameters m_authParameters;
198
199 Aws::Utils::DateTime m_creationTime;
200
201 Aws::Utils::DateTime m_lastModifiedTime;
202
203 Aws::Utils::DateTime m_lastAuthorizedTime;
204
205 Aws::String m_requestId;
206 };
207
208} // namespace Model
209} // namespace CloudWatchEvents
210} // namespace Aws
const ConnectionAuthorizationType & GetAuthorizationType() const
DescribeConnectionResult & WithStateReason(const Aws::String &value)
DescribeConnectionResult & WithAuthorizationType(const ConnectionAuthorizationType &value)
DescribeConnectionResult & WithAuthParameters(ConnectionAuthResponseParameters &&value)
DescribeConnectionResult & WithConnectionArn(const Aws::String &value)
DescribeConnectionResult & WithStateReason(Aws::String &&value)
DescribeConnectionResult & WithAuthorizationType(ConnectionAuthorizationType &&value)
DescribeConnectionResult & WithDescription(const Aws::String &value)
DescribeConnectionResult & WithDescription(const char *value)
DescribeConnectionResult & WithRequestId(const char *value)
DescribeConnectionResult & WithName(const char *value)
DescribeConnectionResult & WithLastModifiedTime(const Aws::Utils::DateTime &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
DescribeConnectionResult & WithAuthParameters(const ConnectionAuthResponseParameters &value)
DescribeConnectionResult & WithLastAuthorizedTime(const Aws::Utils::DateTime &value)
DescribeConnectionResult & WithLastModifiedTime(Aws::Utils::DateTime &&value)
void SetAuthorizationType(const ConnectionAuthorizationType &value)
DescribeConnectionResult & WithConnectionArn(const char *value)
const ConnectionAuthResponseParameters & GetAuthParameters() const
DescribeConnectionResult & WithCreationTime(const Aws::Utils::DateTime &value)
DescribeConnectionResult & WithRequestId(const Aws::String &value)
DescribeConnectionResult & WithSecretArn(Aws::String &&value)
void SetLastAuthorizedTime(const Aws::Utils::DateTime &value)
void SetAuthParameters(ConnectionAuthResponseParameters &&value)
DescribeConnectionResult & WithConnectionState(const ConnectionState &value)
void SetAuthParameters(const ConnectionAuthResponseParameters &value)
AWS_CLOUDWATCHEVENTS_API DescribeConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeConnectionResult & WithConnectionState(ConnectionState &&value)
DescribeConnectionResult & WithName(const Aws::String &value)
DescribeConnectionResult & WithConnectionArn(Aws::String &&value)
DescribeConnectionResult & WithStateReason(const char *value)
DescribeConnectionResult & WithSecretArn(const char *value)
DescribeConnectionResult & WithCreationTime(Aws::Utils::DateTime &&value)
DescribeConnectionResult & WithRequestId(Aws::String &&value)
AWS_CLOUDWATCHEVENTS_API DescribeConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeConnectionResult & WithName(Aws::String &&value)
DescribeConnectionResult & WithDescription(Aws::String &&value)
DescribeConnectionResult & WithLastAuthorizedTime(Aws::Utils::DateTime &&value)
void SetAuthorizationType(ConnectionAuthorizationType &&value)
DescribeConnectionResult & WithSecretArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue