7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/ConnectionState.h>
10#include <aws/eventbridge/model/ConnectionAuthorizationType.h>
11#include <aws/core/utils/DateTime.h>
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>
106 template<
typename CreationTimeT = Aws::Utils::DateTime>
107 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
108 template<
typename CreationTimeT = Aws::Utils::DateTime>
118 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
119 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet =
true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
120 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
130 template<
typename LastAuthorizedTimeT = Aws::Utils::DateTime>
131 void SetLastAuthorizedTime(LastAuthorizedTimeT&& value) { m_lastAuthorizedTimeHasBeenSet =
true; m_lastAuthorizedTime = std::forward<LastAuthorizedTimeT>(value); }
132 template<
typename LastAuthorizedTimeT = Aws::Utils::DateTime>
138 bool m_connectionArnHasBeenSet =
false;
141 bool m_nameHasBeenSet =
false;
144 bool m_connectionStateHasBeenSet =
false;
147 bool m_stateReasonHasBeenSet =
false;
150 bool m_authorizationTypeHasBeenSet =
false;
153 bool m_creationTimeHasBeenSet =
false;
156 bool m_lastModifiedTimeHasBeenSet =
false;
159 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