7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/events/CloudWatchEvents_EXPORTS.h>
10#include <aws/events/model/ConnectionAuthorizationType.h>
11#include <aws/events/model/ConnectionState.h>
22namespace CloudWatchEvents {
43 template <
typename ConnectionArnT = Aws::String>
45 m_connectionArnHasBeenSet =
true;
46 m_connectionArn = std::forward<ConnectionArnT>(value);
48 template <
typename ConnectionArnT = Aws::String>
61 template <
typename NameT = Aws::String>
63 m_nameHasBeenSet =
true;
64 m_name = std::forward<NameT>(value);
66 template <
typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
80 m_connectionStateHasBeenSet =
true;
81 m_connectionState = value;
95 template <
typename StateReasonT = Aws::String>
97 m_stateReasonHasBeenSet =
true;
98 m_stateReason = std::forward<StateReasonT>(value);
100 template <
typename StateReasonT = Aws::String>
114 m_authorizationTypeHasBeenSet =
true;
115 m_authorizationType = value;
129 template <
typename CreationTimeT = Aws::Utils::DateTime>
131 m_creationTimeHasBeenSet =
true;
132 m_creationTime = std::forward<CreationTimeT>(value);
134 template <
typename CreationTimeT = Aws::Utils::DateTime>
147 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
149 m_lastModifiedTimeHasBeenSet =
true;
150 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
152 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
165 template <
typename LastAuthorizedTimeT = Aws::Utils::DateTime>
167 m_lastAuthorizedTimeHasBeenSet =
true;
168 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
170 template <
typename LastAuthorizedTimeT = Aws::Utils::DateTime>
192 bool m_connectionArnHasBeenSet =
false;
193 bool m_nameHasBeenSet =
false;
194 bool m_connectionStateHasBeenSet =
false;
195 bool m_stateReasonHasBeenSet =
false;
196 bool m_authorizationTypeHasBeenSet =
false;
197 bool m_creationTimeHasBeenSet =
false;
198 bool m_lastModifiedTimeHasBeenSet =
false;
199 bool m_lastAuthorizedTimeHasBeenSet =
false;
Connection & WithAuthorizationType(ConnectionAuthorizationType value)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
bool NameHasBeenSet() const
void SetAuthorizationType(ConnectionAuthorizationType value)
bool CreationTimeHasBeenSet() const
bool LastModifiedTimeHasBeenSet() const
void SetConnectionState(ConnectionState value)
Connection & WithCreationTime(CreationTimeT &&value)
void SetName(NameT &&value)
ConnectionAuthorizationType GetAuthorizationType() const
bool ConnectionStateHasBeenSet() const
bool StateReasonHasBeenSet() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetStateReason() const
void SetStateReason(StateReasonT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetName() const
Connection & WithName(NameT &&value)
bool LastAuthorizedTimeHasBeenSet() const
Connection & WithConnectionState(ConnectionState value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
ConnectionState GetConnectionState() const
Connection & WithConnectionArn(ConnectionArnT &&value)
Connection & WithLastModifiedTime(LastModifiedTimeT &&value)
bool ConnectionArnHasBeenSet() const
AWS_CLOUDWATCHEVENTS_API Connection(Aws::Utils::Json::JsonView jsonValue)
Connection & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
void SetCreationTime(CreationTimeT &&value)
Connection & WithStateReason(StateReasonT &&value)
const Aws::String & GetConnectionArn() const
void SetConnectionArn(ConnectionArnT &&value)
AWS_CLOUDWATCHEVENTS_API Connection()=default
bool AuthorizationTypeHasBeenSet() const
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
void SetLastAuthorizedTime(LastAuthorizedTimeT &&value)
AWS_CLOUDWATCHEVENTS_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectionAuthorizationType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue