AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
DescribeArchiveResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/events/CloudWatchEvents_EXPORTS.h>
11#include <aws/events/model/ArchiveState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CloudWatchEvents {
25namespace Model {
27 public:
28 AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult() = default;
31
33
36 inline const Aws::String& GetArchiveArn() const { return m_archiveArn; }
37 template <typename ArchiveArnT = Aws::String>
38 void SetArchiveArn(ArchiveArnT&& value) {
39 m_archiveArnHasBeenSet = true;
40 m_archiveArn = std::forward<ArchiveArnT>(value);
41 }
42 template <typename ArchiveArnT = Aws::String>
43 DescribeArchiveResult& WithArchiveArn(ArchiveArnT&& value) {
44 SetArchiveArn(std::forward<ArchiveArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
54 template <typename ArchiveNameT = Aws::String>
55 void SetArchiveName(ArchiveNameT&& value) {
56 m_archiveNameHasBeenSet = true;
57 m_archiveName = std::forward<ArchiveNameT>(value);
58 }
59 template <typename ArchiveNameT = Aws::String>
60 DescribeArchiveResult& WithArchiveName(ArchiveNameT&& value) {
61 SetArchiveName(std::forward<ArchiveNameT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
71 template <typename EventSourceArnT = Aws::String>
72 void SetEventSourceArn(EventSourceArnT&& value) {
73 m_eventSourceArnHasBeenSet = true;
74 m_eventSourceArn = std::forward<EventSourceArnT>(value);
75 }
76 template <typename EventSourceArnT = Aws::String>
77 DescribeArchiveResult& WithEventSourceArn(EventSourceArnT&& value) {
78 SetEventSourceArn(std::forward<EventSourceArnT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
94 DescribeArchiveResult& WithDescription(DescriptionT&& value) {
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
105 template <typename EventPatternT = Aws::String>
106 void SetEventPattern(EventPatternT&& value) {
107 m_eventPatternHasBeenSet = true;
108 m_eventPattern = std::forward<EventPatternT>(value);
109 }
110 template <typename EventPatternT = Aws::String>
111 DescribeArchiveResult& WithEventPattern(EventPatternT&& value) {
112 SetEventPattern(std::forward<EventPatternT>(value));
113 return *this;
114 }
116
118
121 inline ArchiveState GetState() const { return m_state; }
122 inline void SetState(ArchiveState value) {
123 m_stateHasBeenSet = true;
124 m_state = value;
125 }
127 SetState(value);
128 return *this;
129 }
131
133
136 inline const Aws::String& GetStateReason() const { return m_stateReason; }
137 template <typename StateReasonT = Aws::String>
138 void SetStateReason(StateReasonT&& value) {
139 m_stateReasonHasBeenSet = true;
140 m_stateReason = std::forward<StateReasonT>(value);
141 }
142 template <typename StateReasonT = Aws::String>
143 DescribeArchiveResult& WithStateReason(StateReasonT&& value) {
144 SetStateReason(std::forward<StateReasonT>(value));
145 return *this;
146 }
148
150
153 inline int GetRetentionDays() const { return m_retentionDays; }
154 inline void SetRetentionDays(int value) {
155 m_retentionDaysHasBeenSet = true;
156 m_retentionDays = value;
157 }
159 SetRetentionDays(value);
160 return *this;
161 }
163
165
168 inline long long GetSizeBytes() const { return m_sizeBytes; }
169 inline void SetSizeBytes(long long value) {
170 m_sizeBytesHasBeenSet = true;
171 m_sizeBytes = value;
172 }
173 inline DescribeArchiveResult& WithSizeBytes(long long value) {
174 SetSizeBytes(value);
175 return *this;
176 }
178
180
183 inline long long GetEventCount() const { return m_eventCount; }
184 inline void SetEventCount(long long value) {
185 m_eventCountHasBeenSet = true;
186 m_eventCount = value;
187 }
188 inline DescribeArchiveResult& WithEventCount(long long value) {
189 SetEventCount(value);
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
199 template <typename CreationTimeT = Aws::Utils::DateTime>
200 void SetCreationTime(CreationTimeT&& value) {
201 m_creationTimeHasBeenSet = true;
202 m_creationTime = std::forward<CreationTimeT>(value);
203 }
204 template <typename CreationTimeT = Aws::Utils::DateTime>
205 DescribeArchiveResult& WithCreationTime(CreationTimeT&& value) {
206 SetCreationTime(std::forward<CreationTimeT>(value));
207 return *this;
208 }
210
212
213 inline const Aws::String& GetRequestId() const { return m_requestId; }
214 template <typename RequestIdT = Aws::String>
215 void SetRequestId(RequestIdT&& value) {
216 m_requestIdHasBeenSet = true;
217 m_requestId = std::forward<RequestIdT>(value);
218 }
219 template <typename RequestIdT = Aws::String>
221 SetRequestId(std::forward<RequestIdT>(value));
222 return *this;
223 }
225 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
226
227 private:
228 Aws::String m_archiveArn;
229
230 Aws::String m_archiveName;
231
232 Aws::String m_eventSourceArn;
233
234 Aws::String m_description;
235
236 Aws::String m_eventPattern;
237
239
240 Aws::String m_stateReason;
241
242 int m_retentionDays{0};
243
244 long long m_sizeBytes{0};
245
246 long long m_eventCount{0};
247
248 Aws::Utils::DateTime m_creationTime{};
249
250 Aws::String m_requestId;
251 Aws::Http::HttpResponseCode m_HttpResponseCode;
252 bool m_archiveArnHasBeenSet = false;
253 bool m_archiveNameHasBeenSet = false;
254 bool m_eventSourceArnHasBeenSet = false;
255 bool m_descriptionHasBeenSet = false;
256 bool m_eventPatternHasBeenSet = false;
257 bool m_stateHasBeenSet = false;
258 bool m_stateReasonHasBeenSet = false;
259 bool m_retentionDaysHasBeenSet = false;
260 bool m_sizeBytesHasBeenSet = false;
261 bool m_eventCountHasBeenSet = false;
262 bool m_creationTimeHasBeenSet = false;
263 bool m_requestIdHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace CloudWatchEvents
268} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeArchiveResult & WithArchiveArn(ArchiveArnT &&value)
DescribeArchiveResult & WithCreationTime(CreationTimeT &&value)
DescribeArchiveResult & WithState(ArchiveState value)
DescribeArchiveResult & WithEventCount(long long value)
DescribeArchiveResult & WithEventSourceArn(EventSourceArnT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArchiveResult & WithStateReason(StateReasonT &&value)
DescribeArchiveResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult()=default
DescribeArchiveResult & WithDescription(DescriptionT &&value)
DescribeArchiveResult & WithSizeBytes(long long value)
DescribeArchiveResult & WithArchiveName(ArchiveNameT &&value)
DescribeArchiveResult & WithEventPattern(EventPatternT &&value)
AWS_CLOUDWATCHEVENTS_API DescribeArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue