AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetArchiveResult.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/mailmanager/MailManager_EXPORTS.h>
11#include <aws/mailmanager/model/ArchiveRetention.h>
12#include <aws/mailmanager/model/ArchiveState.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MailManager {
26namespace Model {
34 public:
35 AWS_MAILMANAGER_API GetArchiveResult() = default;
38
40
43 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
44 template <typename ArchiveIdT = Aws::String>
45 void SetArchiveId(ArchiveIdT&& value) {
46 m_archiveIdHasBeenSet = true;
47 m_archiveId = std::forward<ArchiveIdT>(value);
48 }
49 template <typename ArchiveIdT = Aws::String>
50 GetArchiveResult& WithArchiveId(ArchiveIdT&& value) {
51 SetArchiveId(std::forward<ArchiveIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
61 template <typename ArchiveNameT = Aws::String>
62 void SetArchiveName(ArchiveNameT&& value) {
63 m_archiveNameHasBeenSet = true;
64 m_archiveName = std::forward<ArchiveNameT>(value);
65 }
66 template <typename ArchiveNameT = Aws::String>
67 GetArchiveResult& WithArchiveName(ArchiveNameT&& value) {
68 SetArchiveName(std::forward<ArchiveNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetArchiveArn() const { return m_archiveArn; }
78 template <typename ArchiveArnT = Aws::String>
79 void SetArchiveArn(ArchiveArnT&& value) {
80 m_archiveArnHasBeenSet = true;
81 m_archiveArn = std::forward<ArchiveArnT>(value);
82 }
83 template <typename ArchiveArnT = Aws::String>
84 GetArchiveResult& WithArchiveArn(ArchiveArnT&& value) {
85 SetArchiveArn(std::forward<ArchiveArnT>(value));
86 return *this;
87 }
89
91
98 inline ArchiveState GetArchiveState() const { return m_archiveState; }
99 inline void SetArchiveState(ArchiveState value) {
100 m_archiveStateHasBeenSet = true;
101 m_archiveState = value;
102 }
104 SetArchiveState(value);
105 return *this;
106 }
108
110
113 inline const ArchiveRetention& GetRetention() const { return m_retention; }
114 template <typename RetentionT = ArchiveRetention>
115 void SetRetention(RetentionT&& value) {
116 m_retentionHasBeenSet = true;
117 m_retention = std::forward<RetentionT>(value);
118 }
119 template <typename RetentionT = ArchiveRetention>
120 GetArchiveResult& WithRetention(RetentionT&& value) {
121 SetRetention(std::forward<RetentionT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
131 template <typename CreatedTimestampT = Aws::Utils::DateTime>
132 void SetCreatedTimestamp(CreatedTimestampT&& value) {
133 m_createdTimestampHasBeenSet = true;
134 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
135 }
136 template <typename CreatedTimestampT = Aws::Utils::DateTime>
137 GetArchiveResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
138 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
148 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
149 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
150 m_lastUpdatedTimestampHasBeenSet = true;
151 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
152 }
153 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
154 GetArchiveResult& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
155 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
166 template <typename KmsKeyArnT = Aws::String>
167 void SetKmsKeyArn(KmsKeyArnT&& value) {
168 m_kmsKeyArnHasBeenSet = true;
169 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
170 }
171 template <typename KmsKeyArnT = Aws::String>
172 GetArchiveResult& WithKmsKeyArn(KmsKeyArnT&& value) {
173 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
174 return *this;
175 }
177
179
180 inline const Aws::String& GetRequestId() const { return m_requestId; }
181 template <typename RequestIdT = Aws::String>
182 void SetRequestId(RequestIdT&& value) {
183 m_requestIdHasBeenSet = true;
184 m_requestId = std::forward<RequestIdT>(value);
185 }
186 template <typename RequestIdT = Aws::String>
187 GetArchiveResult& WithRequestId(RequestIdT&& value) {
188 SetRequestId(std::forward<RequestIdT>(value));
189 return *this;
190 }
192 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
193
194 private:
195 Aws::String m_archiveId;
196
197 Aws::String m_archiveName;
198
199 Aws::String m_archiveArn;
200
201 ArchiveState m_archiveState{ArchiveState::NOT_SET};
202
203 ArchiveRetention m_retention;
204
205 Aws::Utils::DateTime m_createdTimestamp{};
206
207 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
208
209 Aws::String m_kmsKeyArn;
210
211 Aws::String m_requestId;
212 Aws::Http::HttpResponseCode m_HttpResponseCode;
213 bool m_archiveIdHasBeenSet = false;
214 bool m_archiveNameHasBeenSet = false;
215 bool m_archiveArnHasBeenSet = false;
216 bool m_archiveStateHasBeenSet = false;
217 bool m_retentionHasBeenSet = false;
218 bool m_createdTimestampHasBeenSet = false;
219 bool m_lastUpdatedTimestampHasBeenSet = false;
220 bool m_kmsKeyArnHasBeenSet = false;
221 bool m_requestIdHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace MailManager
226} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
AWS_MAILMANAGER_API GetArchiveResult()=default
GetArchiveResult & WithKmsKeyArn(KmsKeyArnT &&value)
const ArchiveRetention & GetRetention() const
GetArchiveResult & WithArchiveArn(ArchiveArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetArchiveId() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
const Aws::String & GetArchiveArn() const
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
const Aws::String & GetArchiveName() const
GetArchiveResult & WithRetention(RetentionT &&value)
GetArchiveResult & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
void SetArchiveName(ArchiveNameT &&value)
GetArchiveResult & WithRequestId(RequestIdT &&value)
AWS_MAILMANAGER_API GetArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArchiveResult & WithArchiveState(ArchiveState value)
AWS_MAILMANAGER_API GetArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArchiveResult & WithCreatedTimestamp(CreatedTimestampT &&value)
GetArchiveResult & WithArchiveId(ArchiveIdT &&value)
GetArchiveResult & WithArchiveName(ArchiveNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue