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/core/utils/DateTime.h>
24namespace CloudWatchEvents
49 template<
typename ConnectionArnT = Aws::String>
50 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet =
true; m_connectionArn = std::forward<ConnectionArnT>(value); }
51 template<
typename ConnectionArnT = Aws::String>
61 template<
typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
63 template<
typename NameT = Aws::String>
83 template<
typename StateReasonT = Aws::String>
84 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet =
true; m_stateReason = std::forward<StateReasonT>(value); }
85 template<
typename StateReasonT = Aws::String>
105 template<
typename CreationTimeT = Aws::Utils::DateTime>
106 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
107 template<
typename CreationTimeT = Aws::Utils::DateTime>
117 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
118 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet =
true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
119 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
129 template<
typename LastAuthorizedTimeT = Aws::Utils::DateTime>
130 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) { m_lastAuthorizedTimeHasBeenSet =
true; m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value); }
131 template<
typename LastAuthorizedTimeT = Aws::Utils::DateTime>
137 bool m_connectionArnHasBeenSet =
false;
140 bool m_nameHasBeenSet =
false;
143 bool m_connectionStateHasBeenSet =
false;
146 bool m_stateReasonHasBeenSet =
false;
149 bool m_authorizationTypeHasBeenSet =
false;
152 bool m_creationTimeHasBeenSet =
false;
155 bool m_lastModifiedTimeHasBeenSet =
false;
158 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