AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/mailmanager/model/ArchiveRetention.h>
11#include <aws/core/utils/DateTime.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() = default;
42
43
45
48 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
49 template<typename ArchiveIdT = Aws::String>
50 void SetArchiveId(ArchiveIdT&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::forward<ArchiveIdT>(value); }
51 template<typename ArchiveIdT = Aws::String>
52 GetArchiveResult& WithArchiveId(ArchiveIdT&& value) { SetArchiveId(std::forward<ArchiveIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
60 template<typename ArchiveNameT = Aws::String>
61 void SetArchiveName(ArchiveNameT&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::forward<ArchiveNameT>(value); }
62 template<typename ArchiveNameT = Aws::String>
63 GetArchiveResult& WithArchiveName(ArchiveNameT&& value) { SetArchiveName(std::forward<ArchiveNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetArchiveArn() const { return m_archiveArn; }
71 template<typename ArchiveArnT = Aws::String>
72 void SetArchiveArn(ArchiveArnT&& value) { m_archiveArnHasBeenSet = true; m_archiveArn = std::forward<ArchiveArnT>(value); }
73 template<typename ArchiveArnT = Aws::String>
74 GetArchiveResult& WithArchiveArn(ArchiveArnT&& value) { SetArchiveArn(std::forward<ArchiveArnT>(value)); return *this;}
76
78
85 inline ArchiveState GetArchiveState() const { return m_archiveState; }
86 inline void SetArchiveState(ArchiveState value) { m_archiveStateHasBeenSet = true; m_archiveState = value; }
87 inline GetArchiveResult& WithArchiveState(ArchiveState value) { SetArchiveState(value); return *this;}
89
91
94 inline const ArchiveRetention& GetRetention() const { return m_retention; }
95 template<typename RetentionT = ArchiveRetention>
96 void SetRetention(RetentionT&& value) { m_retentionHasBeenSet = true; m_retention = std::forward<RetentionT>(value); }
97 template<typename RetentionT = ArchiveRetention>
98 GetArchiveResult& WithRetention(RetentionT&& value) { SetRetention(std::forward<RetentionT>(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
106 template<typename CreatedTimestampT = Aws::Utils::DateTime>
107 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
108 template<typename CreatedTimestampT = Aws::Utils::DateTime>
109 GetArchiveResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
117 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
118 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value); }
119 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
120 GetArchiveResult& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value)); return *this;}
122
124
128 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
129 template<typename KmsKeyArnT = Aws::String>
130 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
131 template<typename KmsKeyArnT = Aws::String>
132 GetArchiveResult& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
134
136
137 inline const Aws::String& GetRequestId() const { return m_requestId; }
138 template<typename RequestIdT = Aws::String>
139 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
140 template<typename RequestIdT = Aws::String>
141 GetArchiveResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
143 private:
144
145 Aws::String m_archiveId;
146 bool m_archiveIdHasBeenSet = false;
147
148 Aws::String m_archiveName;
149 bool m_archiveNameHasBeenSet = false;
150
151 Aws::String m_archiveArn;
152 bool m_archiveArnHasBeenSet = false;
153
154 ArchiveState m_archiveState{ArchiveState::NOT_SET};
155 bool m_archiveStateHasBeenSet = false;
156
157 ArchiveRetention m_retention;
158 bool m_retentionHasBeenSet = false;
159
160 Aws::Utils::DateTime m_createdTimestamp{};
161 bool m_createdTimestampHasBeenSet = false;
162
163 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
164 bool m_lastUpdatedTimestampHasBeenSet = false;
165
166 Aws::String m_kmsKeyArn;
167 bool m_kmsKeyArnHasBeenSet = false;
168
169 Aws::String m_requestId;
170 bool m_requestIdHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace MailManager
175} // 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