7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/ConnectionAuthorizationType.h>
11#include <aws/eventbridge/model/ConnectionState.h>
22namespace EventBridge {
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>
115 m_authorizationTypeHasBeenSet =
true;
116 m_authorizationType = value;
130 template <
typename CreationTimeT = Aws::Utils::DateTime>
132 m_creationTimeHasBeenSet =
true;
133 m_creationTime = std::forward<CreationTimeT>(value);
135 template <
typename CreationTimeT = Aws::Utils::DateTime>
148 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
150 m_lastModifiedTimeHasBeenSet =
true;
151 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
153 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
166 template <
typename LastAuthorizedTimeT = Aws::Utils::DateTime>
168 m_lastAuthorizedTimeHasBeenSet =
true;
169 m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value);
171 template <
typename LastAuthorizedTimeT = Aws::Utils::DateTime>
193 bool m_connectionArnHasBeenSet =
false;
194 bool m_nameHasBeenSet =
false;
195 bool m_connectionStateHasBeenSet =
false;
196 bool m_stateReasonHasBeenSet =
false;
197 bool m_authorizationTypeHasBeenSet =
false;
198 bool m_creationTimeHasBeenSet =
false;
199 bool m_lastModifiedTimeHasBeenSet =
false;
200 bool m_lastAuthorizedTimeHasBeenSet =
false;
Connection & WithAuthorizationType(ConnectionAuthorizationType value)
bool CreationTimeHasBeenSet() const
Connection & WithConnectionState(ConnectionState value)
const Aws::String & GetName() const
AWS_EVENTBRIDGE_API Connection(Aws::Utils::Json::JsonView jsonValue)
bool ConnectionArnHasBeenSet() const
AWS_EVENTBRIDGE_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LastAuthorizedTimeHasBeenSet() const
Connection & WithLastAuthorizedTime(LastAuthorizedTimeT &&value)
void SetAuthorizationType(ConnectionAuthorizationType value)
ConnectionAuthorizationType GetAuthorizationType() const
void SetName(NameT &&value)
const Aws::String & GetConnectionArn() const
bool ConnectionStateHasBeenSet() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
bool StateReasonHasBeenSet() const
const Aws::String & GetStateReason() const
void SetStateReason(StateReasonT &&value)
Connection & WithStateReason(StateReasonT &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool NameHasBeenSet() const
ConnectionState GetConnectionState() const
AWS_EVENTBRIDGE_API Connection()=default
void SetConnectionState(ConnectionState value)
void SetLastAuthorizedTime(LastAuthorizedTimeT &&value)
const Aws::Utils::DateTime & GetLastAuthorizedTime() const
Connection & WithCreationTime(CreationTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
bool LastModifiedTimeHasBeenSet() const
bool AuthorizationTypeHasBeenSet() const
Connection & WithLastModifiedTime(LastModifiedTimeT &&value)
Connection & WithName(NameT &&value)
void SetConnectionArn(ConnectionArnT &&value)
Connection & WithConnectionArn(ConnectionArnT &&value)
void SetCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
ConnectionAuthorizationType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue