AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetLegalHoldResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/LegalHoldStatus.h>
9#include <aws/backup/model/RecoveryPointSelection.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.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 Backup {
26namespace Model {
28 public:
29 AWS_BACKUP_API GetLegalHoldResult() = default;
32
34
37 inline const Aws::String& GetTitle() const { return m_title; }
38 template <typename TitleT = Aws::String>
39 void SetTitle(TitleT&& value) {
40 m_titleHasBeenSet = true;
41 m_title = std::forward<TitleT>(value);
42 }
43 template <typename TitleT = Aws::String>
44 GetLegalHoldResult& WithTitle(TitleT&& value) {
45 SetTitle(std::forward<TitleT>(value));
46 return *this;
47 }
49
51
54 inline LegalHoldStatus GetStatus() const { return m_status; }
55 inline void SetStatus(LegalHoldStatus value) {
56 m_statusHasBeenSet = true;
57 m_status = value;
58 }
60 SetStatus(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
76 GetLegalHoldResult& WithDescription(DescriptionT&& value) {
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetCancelDescription() const { return m_cancelDescription; }
87 template <typename CancelDescriptionT = Aws::String>
88 void SetCancelDescription(CancelDescriptionT&& value) {
89 m_cancelDescriptionHasBeenSet = true;
90 m_cancelDescription = std::forward<CancelDescriptionT>(value);
91 }
92 template <typename CancelDescriptionT = Aws::String>
93 GetLegalHoldResult& WithCancelDescription(CancelDescriptionT&& value) {
94 SetCancelDescription(std::forward<CancelDescriptionT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetLegalHoldId() const { return m_legalHoldId; }
104 template <typename LegalHoldIdT = Aws::String>
105 void SetLegalHoldId(LegalHoldIdT&& value) {
106 m_legalHoldIdHasBeenSet = true;
107 m_legalHoldId = std::forward<LegalHoldIdT>(value);
108 }
109 template <typename LegalHoldIdT = Aws::String>
110 GetLegalHoldResult& WithLegalHoldId(LegalHoldIdT&& value) {
111 SetLegalHoldId(std::forward<LegalHoldIdT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetLegalHoldArn() const { return m_legalHoldArn; }
122 template <typename LegalHoldArnT = Aws::String>
123 void SetLegalHoldArn(LegalHoldArnT&& value) {
124 m_legalHoldArnHasBeenSet = true;
125 m_legalHoldArn = std::forward<LegalHoldArnT>(value);
126 }
127 template <typename LegalHoldArnT = Aws::String>
128 GetLegalHoldResult& WithLegalHoldArn(LegalHoldArnT&& value) {
129 SetLegalHoldArn(std::forward<LegalHoldArnT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
139 template <typename CreationDateT = Aws::Utils::DateTime>
140 void SetCreationDate(CreationDateT&& value) {
141 m_creationDateHasBeenSet = true;
142 m_creationDate = std::forward<CreationDateT>(value);
143 }
144 template <typename CreationDateT = Aws::Utils::DateTime>
145 GetLegalHoldResult& WithCreationDate(CreationDateT&& value) {
146 SetCreationDate(std::forward<CreationDateT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetCancellationDate() const { return m_cancellationDate; }
156 template <typename CancellationDateT = Aws::Utils::DateTime>
157 void SetCancellationDate(CancellationDateT&& value) {
158 m_cancellationDateHasBeenSet = true;
159 m_cancellationDate = std::forward<CancellationDateT>(value);
160 }
161 template <typename CancellationDateT = Aws::Utils::DateTime>
162 GetLegalHoldResult& WithCancellationDate(CancellationDateT&& value) {
163 SetCancellationDate(std::forward<CancellationDateT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetRetainRecordUntil() const { return m_retainRecordUntil; }
173 template <typename RetainRecordUntilT = Aws::Utils::DateTime>
174 void SetRetainRecordUntil(RetainRecordUntilT&& value) {
175 m_retainRecordUntilHasBeenSet = true;
176 m_retainRecordUntil = std::forward<RetainRecordUntilT>(value);
177 }
178 template <typename RetainRecordUntilT = Aws::Utils::DateTime>
179 GetLegalHoldResult& WithRetainRecordUntil(RetainRecordUntilT&& value) {
180 SetRetainRecordUntil(std::forward<RetainRecordUntilT>(value));
181 return *this;
182 }
184
186
190 inline const RecoveryPointSelection& GetRecoveryPointSelection() const { return m_recoveryPointSelection; }
191 template <typename RecoveryPointSelectionT = RecoveryPointSelection>
192 void SetRecoveryPointSelection(RecoveryPointSelectionT&& value) {
193 m_recoveryPointSelectionHasBeenSet = true;
194 m_recoveryPointSelection = std::forward<RecoveryPointSelectionT>(value);
195 }
196 template <typename RecoveryPointSelectionT = RecoveryPointSelection>
197 GetLegalHoldResult& WithRecoveryPointSelection(RecoveryPointSelectionT&& value) {
198 SetRecoveryPointSelection(std::forward<RecoveryPointSelectionT>(value));
199 return *this;
200 }
202
204
205 inline const Aws::String& GetRequestId() const { return m_requestId; }
206 template <typename RequestIdT = Aws::String>
207 void SetRequestId(RequestIdT&& value) {
208 m_requestIdHasBeenSet = true;
209 m_requestId = std::forward<RequestIdT>(value);
210 }
211 template <typename RequestIdT = Aws::String>
212 GetLegalHoldResult& WithRequestId(RequestIdT&& value) {
213 SetRequestId(std::forward<RequestIdT>(value));
214 return *this;
215 }
217 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
218
219 private:
220 Aws::String m_title;
221
223
224 Aws::String m_description;
225
226 Aws::String m_cancelDescription;
227
228 Aws::String m_legalHoldId;
229
230 Aws::String m_legalHoldArn;
231
232 Aws::Utils::DateTime m_creationDate{};
233
234 Aws::Utils::DateTime m_cancellationDate{};
235
236 Aws::Utils::DateTime m_retainRecordUntil{};
237
238 RecoveryPointSelection m_recoveryPointSelection;
239
240 Aws::String m_requestId;
241 Aws::Http::HttpResponseCode m_HttpResponseCode;
242 bool m_titleHasBeenSet = false;
243 bool m_statusHasBeenSet = false;
244 bool m_descriptionHasBeenSet = false;
245 bool m_cancelDescriptionHasBeenSet = false;
246 bool m_legalHoldIdHasBeenSet = false;
247 bool m_legalHoldArnHasBeenSet = false;
248 bool m_creationDateHasBeenSet = false;
249 bool m_cancellationDateHasBeenSet = false;
250 bool m_retainRecordUntilHasBeenSet = false;
251 bool m_recoveryPointSelectionHasBeenSet = false;
252 bool m_requestIdHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace Backup
257} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue