AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Archive.h
1
6#pragma once
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>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchEvents {
22namespace Model {
23
30class Archive {
31 public:
32 AWS_CLOUDWATCHEVENTS_API Archive() = default;
33 AWS_CLOUDWATCHEVENTS_API Archive(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHEVENTS_API Archive& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
42 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
43 template <typename ArchiveNameT = Aws::String>
44 void SetArchiveName(ArchiveNameT&& value) {
45 m_archiveNameHasBeenSet = true;
46 m_archiveName = std::forward<ArchiveNameT>(value);
47 }
48 template <typename ArchiveNameT = Aws::String>
49 Archive& WithArchiveName(ArchiveNameT&& value) {
50 SetArchiveName(std::forward<ArchiveNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
61 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
62 template <typename EventSourceArnT = Aws::String>
63 void SetEventSourceArn(EventSourceArnT&& value) {
64 m_eventSourceArnHasBeenSet = true;
65 m_eventSourceArn = std::forward<EventSourceArnT>(value);
66 }
67 template <typename EventSourceArnT = Aws::String>
68 Archive& WithEventSourceArn(EventSourceArnT&& value) {
69 SetEventSourceArn(std::forward<EventSourceArnT>(value));
70 return *this;
71 }
73
75
78 inline ArchiveState GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(ArchiveState value) {
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetStateReason() const { return m_stateReason; }
95 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
96 template <typename StateReasonT = Aws::String>
97 void SetStateReason(StateReasonT&& value) {
98 m_stateReasonHasBeenSet = true;
99 m_stateReason = std::forward<StateReasonT>(value);
100 }
101 template <typename StateReasonT = Aws::String>
102 Archive& WithStateReason(StateReasonT&& value) {
103 SetStateReason(std::forward<StateReasonT>(value));
104 return *this;
105 }
107
109
113 inline int GetRetentionDays() const { return m_retentionDays; }
114 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
115 inline void SetRetentionDays(int value) {
116 m_retentionDaysHasBeenSet = true;
117 m_retentionDays = value;
118 }
119 inline Archive& WithRetentionDays(int value) {
120 SetRetentionDays(value);
121 return *this;
122 }
124
126
129 inline long long GetSizeBytes() const { return m_sizeBytes; }
130 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
131 inline void SetSizeBytes(long long value) {
132 m_sizeBytesHasBeenSet = true;
133 m_sizeBytes = value;
134 }
135 inline Archive& WithSizeBytes(long long value) {
136 SetSizeBytes(value);
137 return *this;
138 }
140
142
145 inline long long GetEventCount() const { return m_eventCount; }
146 inline bool EventCountHasBeenSet() const { return m_eventCountHasBeenSet; }
147 inline void SetEventCount(long long value) {
148 m_eventCountHasBeenSet = true;
149 m_eventCount = value;
150 }
151 inline Archive& WithEventCount(long long value) {
152 SetEventCount(value);
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
162 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
163 template <typename CreationTimeT = Aws::Utils::DateTime>
164 void SetCreationTime(CreationTimeT&& value) {
165 m_creationTimeHasBeenSet = true;
166 m_creationTime = std::forward<CreationTimeT>(value);
167 }
168 template <typename CreationTimeT = Aws::Utils::DateTime>
169 Archive& WithCreationTime(CreationTimeT&& value) {
170 SetCreationTime(std::forward<CreationTimeT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_archiveName;
176
177 Aws::String m_eventSourceArn;
178
180
181 Aws::String m_stateReason;
182
183 int m_retentionDays{0};
184
185 long long m_sizeBytes{0};
186
187 long long m_eventCount{0};
188
189 Aws::Utils::DateTime m_creationTime{};
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;
198};
199
200} // namespace Model
201} // namespace CloudWatchEvents
202} // namespace Aws
void SetCreationTime(CreationTimeT &&value)
Definition Archive.h:164
void SetSizeBytes(long long value)
Definition Archive.h:131
void SetStateReason(StateReasonT &&value)
Definition Archive.h:97
Archive & WithCreationTime(CreationTimeT &&value)
Definition Archive.h:169
Archive & WithRetentionDays(int value)
Definition Archive.h:119
const Aws::String & GetArchiveName() const
Definition Archive.h:41
AWS_CLOUDWATCHEVENTS_API Archive & operator=(Aws::Utils::Json::JsonView jsonValue)
ArchiveState GetState() const
Definition Archive.h:78
const Aws::String & GetEventSourceArn() const
Definition Archive.h:60
void SetEventCount(long long value)
Definition Archive.h:147
Archive & WithState(ArchiveState value)
Definition Archive.h:84
const Aws::String & GetStateReason() const
Definition Archive.h:94
Archive & WithStateReason(StateReasonT &&value)
Definition Archive.h:102
Archive & WithSizeBytes(long long value)
Definition Archive.h:135
Archive & WithEventSourceArn(EventSourceArnT &&value)
Definition Archive.h:68
const Aws::Utils::DateTime & GetCreationTime() const
Definition Archive.h:161
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHEVENTS_API Archive()=default
void SetEventSourceArn(EventSourceArnT &&value)
Definition Archive.h:63
Archive & WithEventCount(long long value)
Definition Archive.h:151
AWS_CLOUDWATCHEVENTS_API Archive(Aws::Utils::Json::JsonView jsonValue)
void SetState(ArchiveState value)
Definition Archive.h:80
void SetArchiveName(ArchiveNameT &&value)
Definition Archive.h:44
Archive & WithArchiveName(ArchiveNameT &&value)
Definition Archive.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue