AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetArchiveResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/ArchiveRetention.h>
11#include <aws/mailmanager/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 MailManager {
25namespace Model {
33 public:
34 AWS_MAILMANAGER_API GetArchiveResult() = default;
37
39
42 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
43 template <typename ArchiveIdT = Aws::String>
44 void SetArchiveId(ArchiveIdT&& value) {
45 m_archiveIdHasBeenSet = true;
46 m_archiveId = std::forward<ArchiveIdT>(value);
47 }
48 template <typename ArchiveIdT = Aws::String>
49 GetArchiveResult& WithArchiveId(ArchiveIdT&& value) {
50 SetArchiveId(std::forward<ArchiveIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
60 template <typename ArchiveNameT = Aws::String>
61 void SetArchiveName(ArchiveNameT&& value) {
62 m_archiveNameHasBeenSet = true;
63 m_archiveName = std::forward<ArchiveNameT>(value);
64 }
65 template <typename ArchiveNameT = Aws::String>
66 GetArchiveResult& WithArchiveName(ArchiveNameT&& value) {
67 SetArchiveName(std::forward<ArchiveNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetArchiveArn() const { return m_archiveArn; }
77 template <typename ArchiveArnT = Aws::String>
78 void SetArchiveArn(ArchiveArnT&& value) {
79 m_archiveArnHasBeenSet = true;
80 m_archiveArn = std::forward<ArchiveArnT>(value);
81 }
82 template <typename ArchiveArnT = Aws::String>
83 GetArchiveResult& WithArchiveArn(ArchiveArnT&& value) {
84 SetArchiveArn(std::forward<ArchiveArnT>(value));
85 return *this;
86 }
88
90
97 inline ArchiveState GetArchiveState() const { return m_archiveState; }
98 inline void SetArchiveState(ArchiveState value) {
99 m_archiveStateHasBeenSet = true;
100 m_archiveState = value;
101 }
103 SetArchiveState(value);
104 return *this;
105 }
107
109
112 inline const ArchiveRetention& GetRetention() const { return m_retention; }
113 template <typename RetentionT = ArchiveRetention>
114 void SetRetention(RetentionT&& value) {
115 m_retentionHasBeenSet = true;
116 m_retention = std::forward<RetentionT>(value);
117 }
118 template <typename RetentionT = ArchiveRetention>
119 GetArchiveResult& WithRetention(RetentionT&& value) {
120 SetRetention(std::forward<RetentionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
130 template <typename CreatedTimestampT = Aws::Utils::DateTime>
131 void SetCreatedTimestamp(CreatedTimestampT&& value) {
132 m_createdTimestampHasBeenSet = true;
133 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
134 }
135 template <typename CreatedTimestampT = Aws::Utils::DateTime>
136 GetArchiveResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
137 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
147 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
148 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
149 m_lastUpdatedTimestampHasBeenSet = true;
150 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
151 }
152 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
153 GetArchiveResult& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
154 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
165 template <typename KmsKeyArnT = Aws::String>
166 void SetKmsKeyArn(KmsKeyArnT&& value) {
167 m_kmsKeyArnHasBeenSet = true;
168 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
169 }
170 template <typename KmsKeyArnT = Aws::String>
171 GetArchiveResult& WithKmsKeyArn(KmsKeyArnT&& value) {
172 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
173 return *this;
174 }
176
178
179 inline const Aws::String& GetRequestId() const { return m_requestId; }
180 template <typename RequestIdT = Aws::String>
181 void SetRequestId(RequestIdT&& value) {
182 m_requestIdHasBeenSet = true;
183 m_requestId = std::forward<RequestIdT>(value);
184 }
185 template <typename RequestIdT = Aws::String>
186 GetArchiveResult& WithRequestId(RequestIdT&& value) {
187 SetRequestId(std::forward<RequestIdT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_archiveId;
193
194 Aws::String m_archiveName;
195
196 Aws::String m_archiveArn;
197
198 ArchiveState m_archiveState{ArchiveState::NOT_SET};
199
200 ArchiveRetention m_retention;
201
202 Aws::Utils::DateTime m_createdTimestamp{};
203
204 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
205
206 Aws::String m_kmsKeyArn;
207
208 Aws::String m_requestId;
209 bool m_archiveIdHasBeenSet = false;
210 bool m_archiveNameHasBeenSet = false;
211 bool m_archiveArnHasBeenSet = false;
212 bool m_archiveStateHasBeenSet = false;
213 bool m_retentionHasBeenSet = false;
214 bool m_createdTimestampHasBeenSet = false;
215 bool m_lastUpdatedTimestampHasBeenSet = false;
216 bool m_kmsKeyArnHasBeenSet = false;
217 bool m_requestIdHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace MailManager
222} // 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)
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