AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetArchiveResult.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/model/ArchiveState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/mailmanager/model/ArchiveRetention.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MailManager
27{
28namespace Model
29{
37 {
38 public:
39 AWS_MAILMANAGER_API GetArchiveResult();
42
43
45
48 inline const Aws::String& GetArchiveArn() const{ return m_archiveArn; }
49 inline void SetArchiveArn(const Aws::String& value) { m_archiveArn = value; }
50 inline void SetArchiveArn(Aws::String&& value) { m_archiveArn = std::move(value); }
51 inline void SetArchiveArn(const char* value) { m_archiveArn.assign(value); }
52 inline GetArchiveResult& WithArchiveArn(const Aws::String& value) { SetArchiveArn(value); return *this;}
53 inline GetArchiveResult& WithArchiveArn(Aws::String&& value) { SetArchiveArn(std::move(value)); return *this;}
54 inline GetArchiveResult& WithArchiveArn(const char* value) { SetArchiveArn(value); return *this;}
56
58
61 inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
62 inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; }
63 inline void SetArchiveId(Aws::String&& value) { m_archiveId = std::move(value); }
64 inline void SetArchiveId(const char* value) { m_archiveId.assign(value); }
65 inline GetArchiveResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
66 inline GetArchiveResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
67 inline GetArchiveResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
69
71
74 inline const Aws::String& GetArchiveName() const{ return m_archiveName; }
75 inline void SetArchiveName(const Aws::String& value) { m_archiveName = value; }
76 inline void SetArchiveName(Aws::String&& value) { m_archiveName = std::move(value); }
77 inline void SetArchiveName(const char* value) { m_archiveName.assign(value); }
78 inline GetArchiveResult& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;}
79 inline GetArchiveResult& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;}
80 inline GetArchiveResult& WithArchiveName(const char* value) { SetArchiveName(value); return *this;}
82
84
91 inline const ArchiveState& GetArchiveState() const{ return m_archiveState; }
92 inline void SetArchiveState(const ArchiveState& value) { m_archiveState = value; }
93 inline void SetArchiveState(ArchiveState&& value) { m_archiveState = std::move(value); }
94 inline GetArchiveResult& WithArchiveState(const ArchiveState& value) { SetArchiveState(value); return *this;}
95 inline GetArchiveResult& WithArchiveState(ArchiveState&& value) { SetArchiveState(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
103 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
104 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
106 inline GetArchiveResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
108
110
114 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
115 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArn = value; }
116 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArn = std::move(value); }
117 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); }
118 inline GetArchiveResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
119 inline GetArchiveResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
120 inline GetArchiveResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
128 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestamp = value; }
129 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestamp = std::move(value); }
133
135
138 inline const ArchiveRetention& GetRetention() const{ return m_retention; }
139 inline void SetRetention(const ArchiveRetention& value) { m_retention = value; }
140 inline void SetRetention(ArchiveRetention&& value) { m_retention = std::move(value); }
141 inline GetArchiveResult& WithRetention(const ArchiveRetention& value) { SetRetention(value); return *this;}
142 inline GetArchiveResult& WithRetention(ArchiveRetention&& value) { SetRetention(std::move(value)); return *this;}
144
146
147 inline const Aws::String& GetRequestId() const{ return m_requestId; }
148 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
149 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
150 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
151 inline GetArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
152 inline GetArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
153 inline GetArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
155 private:
156
157 Aws::String m_archiveArn;
158
159 Aws::String m_archiveId;
160
161 Aws::String m_archiveName;
162
163 ArchiveState m_archiveState;
164
165 Aws::Utils::DateTime m_createdTimestamp;
166
167 Aws::String m_kmsKeyArn;
168
169 Aws::Utils::DateTime m_lastUpdatedTimestamp;
170
171 ArchiveRetention m_retention;
172
173 Aws::String m_requestId;
174 };
175
176} // namespace Model
177} // namespace MailManager
178} // namespace Aws
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetRequestId(const Aws::String &value)
GetArchiveResult & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
GetArchiveResult & WithArchiveId(Aws::String &&value)
GetArchiveResult & WithRequestId(const char *value)
void SetRetention(const ArchiveRetention &value)
GetArchiveResult & WithRetention(ArchiveRetention &&value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
GetArchiveResult & WithArchiveArn(const Aws::String &value)
void SetKmsKeyArn(const Aws::String &value)
const ArchiveRetention & GetRetention() const
GetArchiveResult & WithArchiveArn(const char *value)
GetArchiveResult & WithArchiveState(ArchiveState &&value)
void SetArchiveArn(const Aws::String &value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
GetArchiveResult & WithArchiveId(const Aws::String &value)
const Aws::String & GetArchiveId() const
GetArchiveResult & WithRequestId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
GetArchiveResult & WithArchiveName(const char *value)
GetArchiveResult & WithKmsKeyArn(const char *value)
const Aws::String & GetArchiveArn() const
GetArchiveResult & WithKmsKeyArn(const Aws::String &value)
const ArchiveState & GetArchiveState() const
GetArchiveResult & WithArchiveId(const char *value)
void SetArchiveState(const ArchiveState &value)
const Aws::String & GetArchiveName() const
void SetArchiveState(ArchiveState &&value)
GetArchiveResult & WithKmsKeyArn(Aws::String &&value)
GetArchiveResult & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetArchiveId(const Aws::String &value)
GetArchiveResult & WithRetention(const ArchiveRetention &value)
AWS_MAILMANAGER_API GetArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArchiveResult & WithArchiveState(const ArchiveState &value)
GetArchiveResult & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetRetention(ArchiveRetention &&value)
AWS_MAILMANAGER_API GetArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetArchiveName(const Aws::String &value)
GetArchiveResult & WithRequestId(Aws::String &&value)
GetArchiveResult & WithArchiveName(Aws::String &&value)
GetArchiveResult & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
GetArchiveResult & WithArchiveName(const Aws::String &value)
GetArchiveResult & WithArchiveArn(Aws::String &&value)
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue