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/ArchiveState.h>
21namespace CloudWatchEvents {
32 AWS_CLOUDWATCHEVENTS_API
Archive() =
default;
43 template <
typename ArchiveNameT = Aws::String>
45 m_archiveNameHasBeenSet =
true;
46 m_archiveName = std::forward<ArchiveNameT>(value);
48 template <
typename ArchiveNameT = Aws::String>
62 template <
typename EventSourceArnT = Aws::String>
64 m_eventSourceArnHasBeenSet =
true;
65 m_eventSourceArn = std::forward<EventSourceArnT>(value);
67 template <
typename EventSourceArnT = Aws::String>
81 m_stateHasBeenSet =
true;
96 template <
typename StateReasonT = Aws::String>
98 m_stateReasonHasBeenSet =
true;
99 m_stateReason = std::forward<StateReasonT>(value);
101 template <
typename StateReasonT = Aws::String>
116 m_retentionDaysHasBeenSet =
true;
117 m_retentionDays = value;
132 m_sizeBytesHasBeenSet =
true;
148 m_eventCountHasBeenSet =
true;
149 m_eventCount = value;
163 template <
typename CreationTimeT = Aws::Utils::DateTime>
165 m_creationTimeHasBeenSet =
true;
166 m_creationTime = std::forward<CreationTimeT>(value);
168 template <
typename CreationTimeT = Aws::Utils::DateTime>
183 int m_retentionDays{0};
185 long long m_sizeBytes{0};
187 long long m_eventCount{0};
190 bool m_archiveNameHasBeenSet =
false;
191 bool m_eventSourceArnHasBeenSet =
false;
192 bool m_stateHasBeenSet =
false;
193 bool m_stateReasonHasBeenSet =
false;
194 bool m_retentionDaysHasBeenSet =
false;
195 bool m_sizeBytesHasBeenSet =
false;
196 bool m_eventCountHasBeenSet =
false;
197 bool m_creationTimeHasBeenSet =
false;
void SetCreationTime(CreationTimeT &&value)
void SetSizeBytes(long long value)
void SetStateReason(StateReasonT &&value)
Archive & WithCreationTime(CreationTimeT &&value)
Archive & WithRetentionDays(int value)
const Aws::String & GetArchiveName() const
AWS_CLOUDWATCHEVENTS_API Archive & operator=(Aws::Utils::Json::JsonView jsonValue)
ArchiveState GetState() const
void SetRetentionDays(int value)
const Aws::String & GetEventSourceArn() const
void SetEventCount(long long value)
long long GetSizeBytes() const
Archive & WithState(ArchiveState value)
bool CreationTimeHasBeenSet() const
const Aws::String & GetStateReason() const
Archive & WithStateReason(StateReasonT &&value)
bool RetentionDaysHasBeenSet() const
bool EventSourceArnHasBeenSet() const
Archive & WithSizeBytes(long long value)
bool ArchiveNameHasBeenSet() const
bool SizeBytesHasBeenSet() const
bool StateReasonHasBeenSet() const
Archive & WithEventSourceArn(EventSourceArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
long long GetEventCount() const
AWS_CLOUDWATCHEVENTS_API Archive()=default
bool EventCountHasBeenSet() const
void SetEventSourceArn(EventSourceArnT &&value)
Archive & WithEventCount(long long value)
AWS_CLOUDWATCHEVENTS_API Archive(Aws::Utils::Json::JsonView jsonValue)
void SetState(ArchiveState value)
bool StateHasBeenSet() const
void SetArchiveName(ArchiveNameT &&value)
Archive & WithArchiveName(ArchiveNameT &&value)
int GetRetentionDays() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue