AWS SDK for C++

AWS SDK for C++ Version 1.11.757

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/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/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 EventBridge {
25namespace Model {
27 public:
28 AWS_EVENTBRIDGE_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
157 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
158 template <typename KmsKeyIdentifierT = Aws::String>
159 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
160 m_kmsKeyIdentifierHasBeenSet = true;
161 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
162 }
163 template <typename KmsKeyIdentifierT = Aws::String>
164 DescribeArchiveResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
165 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
166 return *this;
167 }
169
171
174 inline int GetRetentionDays() const { return m_retentionDays; }
175 inline void SetRetentionDays(int value) {
176 m_retentionDaysHasBeenSet = true;
177 m_retentionDays = value;
178 }
180 SetRetentionDays(value);
181 return *this;
182 }
184
186
189 inline long long GetSizeBytes() const { return m_sizeBytes; }
190 inline void SetSizeBytes(long long value) {
191 m_sizeBytesHasBeenSet = true;
192 m_sizeBytes = value;
193 }
194 inline DescribeArchiveResult& WithSizeBytes(long long value) {
195 SetSizeBytes(value);
196 return *this;
197 }
199
201
204 inline long long GetEventCount() const { return m_eventCount; }
205 inline void SetEventCount(long long value) {
206 m_eventCountHasBeenSet = true;
207 m_eventCount = value;
208 }
209 inline DescribeArchiveResult& WithEventCount(long long value) {
210 SetEventCount(value);
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
220 template <typename CreationTimeT = Aws::Utils::DateTime>
221 void SetCreationTime(CreationTimeT&& value) {
222 m_creationTimeHasBeenSet = true;
223 m_creationTime = std::forward<CreationTimeT>(value);
224 }
225 template <typename CreationTimeT = Aws::Utils::DateTime>
226 DescribeArchiveResult& WithCreationTime(CreationTimeT&& value) {
227 SetCreationTime(std::forward<CreationTimeT>(value));
228 return *this;
229 }
231
233
234 inline const Aws::String& GetRequestId() const { return m_requestId; }
235 template <typename RequestIdT = Aws::String>
236 void SetRequestId(RequestIdT&& value) {
237 m_requestIdHasBeenSet = true;
238 m_requestId = std::forward<RequestIdT>(value);
239 }
240 template <typename RequestIdT = Aws::String>
242 SetRequestId(std::forward<RequestIdT>(value));
243 return *this;
244 }
246 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
247
248 private:
249 Aws::String m_archiveArn;
250
251 Aws::String m_archiveName;
252
253 Aws::String m_eventSourceArn;
254
255 Aws::String m_description;
256
257 Aws::String m_eventPattern;
258
260
261 Aws::String m_stateReason;
262
263 Aws::String m_kmsKeyIdentifier;
264
265 int m_retentionDays{0};
266
267 long long m_sizeBytes{0};
268
269 long long m_eventCount{0};
270
271 Aws::Utils::DateTime m_creationTime{};
272
273 Aws::String m_requestId;
274 Aws::Http::HttpResponseCode m_HttpResponseCode;
275 bool m_archiveArnHasBeenSet = false;
276 bool m_archiveNameHasBeenSet = false;
277 bool m_eventSourceArnHasBeenSet = false;
278 bool m_descriptionHasBeenSet = false;
279 bool m_eventPatternHasBeenSet = false;
280 bool m_stateHasBeenSet = false;
281 bool m_stateReasonHasBeenSet = false;
282 bool m_kmsKeyIdentifierHasBeenSet = false;
283 bool m_retentionDaysHasBeenSet = false;
284 bool m_sizeBytesHasBeenSet = false;
285 bool m_eventCountHasBeenSet = false;
286 bool m_creationTimeHasBeenSet = false;
287 bool m_requestIdHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace EventBridge
292} // namespace Aws
DescribeArchiveResult & WithEventSourceArn(EventSourceArnT &&value)
DescribeArchiveResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API DescribeArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeArchiveResult & WithArchiveName(ArchiveNameT &&value)
DescribeArchiveResult & WithEventCount(long long value)
DescribeArchiveResult & WithSizeBytes(long long value)
DescribeArchiveResult & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API DescribeArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArchiveResult & WithState(ArchiveState value)
DescribeArchiveResult & WithStateReason(StateReasonT &&value)
AWS_EVENTBRIDGE_API DescribeArchiveResult()=default
DescribeArchiveResult & WithEventPattern(EventPatternT &&value)
DescribeArchiveResult & WithArchiveArn(ArchiveArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeArchiveResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
DescribeArchiveResult & WithCreationTime(CreationTimeT &&value)
DescribeArchiveResult & WithRetentionDays(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue