7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/events/model/EventSourceState.h>
23namespace CloudWatchEvents
51 template<
typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
53 template<
typename ArnT = Aws::String>
63 template<
typename CreatedByT = Aws::String>
64 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet =
true; m_createdBy = std::forward<CreatedByT>(value); }
65 template<
typename CreatedByT = Aws::String>
75 template<
typename CreationTimeT = Aws::Utils::DateTime>
76 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
77 template<
typename CreationTimeT = Aws::Utils::DateTime>
88 template<
typename ExpirationTimeT = Aws::Utils::DateTime>
89 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet =
true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
90 template<
typename ExpirationTimeT = Aws::Utils::DateTime>
100 template<
typename NameT = Aws::String>
101 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
102 template<
typename NameT = Aws::String>
122 bool m_arnHasBeenSet =
false;
125 bool m_createdByHasBeenSet =
false;
128 bool m_creationTimeHasBeenSet =
false;
131 bool m_expirationTimeHasBeenSet =
false;
134 bool m_nameHasBeenSet =
false;
137 bool m_stateHasBeenSet =
false;
bool ExpirationTimeHasBeenSet() const
const Aws::String & GetName() const
void SetCreatedBy(CreatedByT &&value)
EventSource & WithState(EventSourceState value)
const Aws::String & GetArn() const
const Aws::String & GetCreatedBy() const
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
EventSource & WithName(NameT &&value)
const Aws::Utils::DateTime & GetExpirationTime() const
bool ArnHasBeenSet() const
void SetArn(ArnT &&value)
AWS_CLOUDWATCHEVENTS_API EventSource()=default
EventSource & WithCreatedBy(CreatedByT &&value)
bool CreationTimeHasBeenSet() const
void SetCreationTime(CreationTimeT &&value)
void SetState(EventSourceState value)
bool StateHasBeenSet() const
EventSource & WithCreationTime(CreationTimeT &&value)
bool NameHasBeenSet() const
void SetExpirationTime(ExpirationTimeT &&value)
void SetName(NameT &&value)
EventSourceState GetState() const
AWS_CLOUDWATCHEVENTS_API EventSource(Aws::Utils::Json::JsonView jsonValue)
bool CreatedByHasBeenSet() const
EventSource & WithExpirationTime(ExpirationTimeT &&value)
AWS_CLOUDWATCHEVENTS_API EventSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
EventSource & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue