AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetLegalHoldResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backup/model/LegalHoldStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/backup/model/RecoveryPointSelection.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 Backup
27{
28namespace Model
29{
31 {
32 public:
33 AWS_BACKUP_API GetLegalHoldResult() = default;
36
37
39
42 inline const Aws::String& GetTitle() const { return m_title; }
43 template<typename TitleT = Aws::String>
44 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
45 template<typename TitleT = Aws::String>
46 GetLegalHoldResult& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
48
50
53 inline LegalHoldStatus GetStatus() const { return m_status; }
54 inline void SetStatus(LegalHoldStatus value) { m_statusHasBeenSet = true; m_status = value; }
55 inline GetLegalHoldResult& WithStatus(LegalHoldStatus value) { SetStatus(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 GetLegalHoldResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetCancelDescription() const { return m_cancelDescription; }
74 template<typename CancelDescriptionT = Aws::String>
75 void SetCancelDescription(CancelDescriptionT&& value) { m_cancelDescriptionHasBeenSet = true; m_cancelDescription = std::forward<CancelDescriptionT>(value); }
76 template<typename CancelDescriptionT = Aws::String>
77 GetLegalHoldResult& WithCancelDescription(CancelDescriptionT&& value) { SetCancelDescription(std::forward<CancelDescriptionT>(value)); return *this;}
79
81
84 inline const Aws::String& GetLegalHoldId() const { return m_legalHoldId; }
85 template<typename LegalHoldIdT = Aws::String>
86 void SetLegalHoldId(LegalHoldIdT&& value) { m_legalHoldIdHasBeenSet = true; m_legalHoldId = std::forward<LegalHoldIdT>(value); }
87 template<typename LegalHoldIdT = Aws::String>
88 GetLegalHoldResult& WithLegalHoldId(LegalHoldIdT&& value) { SetLegalHoldId(std::forward<LegalHoldIdT>(value)); return *this;}
90
92
96 inline const Aws::String& GetLegalHoldArn() const { return m_legalHoldArn; }
97 template<typename LegalHoldArnT = Aws::String>
98 void SetLegalHoldArn(LegalHoldArnT&& value) { m_legalHoldArnHasBeenSet = true; m_legalHoldArn = std::forward<LegalHoldArnT>(value); }
99 template<typename LegalHoldArnT = Aws::String>
100 GetLegalHoldResult& WithLegalHoldArn(LegalHoldArnT&& value) { SetLegalHoldArn(std::forward<LegalHoldArnT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
108 template<typename CreationDateT = Aws::Utils::DateTime>
109 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
110 template<typename CreationDateT = Aws::Utils::DateTime>
111 GetLegalHoldResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCancellationDate() const { return m_cancellationDate; }
119 template<typename CancellationDateT = Aws::Utils::DateTime>
120 void SetCancellationDate(CancellationDateT&& value) { m_cancellationDateHasBeenSet = true; m_cancellationDate = std::forward<CancellationDateT>(value); }
121 template<typename CancellationDateT = Aws::Utils::DateTime>
122 GetLegalHoldResult& WithCancellationDate(CancellationDateT&& value) { SetCancellationDate(std::forward<CancellationDateT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetRetainRecordUntil() const { return m_retainRecordUntil; }
130 template<typename RetainRecordUntilT = Aws::Utils::DateTime>
131 void SetRetainRecordUntil(RetainRecordUntilT&& value) { m_retainRecordUntilHasBeenSet = true; m_retainRecordUntil = std::forward<RetainRecordUntilT>(value); }
132 template<typename RetainRecordUntilT = Aws::Utils::DateTime>
133 GetLegalHoldResult& WithRetainRecordUntil(RetainRecordUntilT&& value) { SetRetainRecordUntil(std::forward<RetainRecordUntilT>(value)); return *this;}
135
137
141 inline const RecoveryPointSelection& GetRecoveryPointSelection() const { return m_recoveryPointSelection; }
142 template<typename RecoveryPointSelectionT = RecoveryPointSelection>
143 void SetRecoveryPointSelection(RecoveryPointSelectionT&& value) { m_recoveryPointSelectionHasBeenSet = true; m_recoveryPointSelection = std::forward<RecoveryPointSelectionT>(value); }
144 template<typename RecoveryPointSelectionT = RecoveryPointSelection>
145 GetLegalHoldResult& WithRecoveryPointSelection(RecoveryPointSelectionT&& value) { SetRecoveryPointSelection(std::forward<RecoveryPointSelectionT>(value)); return *this;}
147
149
150 inline const Aws::String& GetRequestId() const { return m_requestId; }
151 template<typename RequestIdT = Aws::String>
152 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
153 template<typename RequestIdT = Aws::String>
154 GetLegalHoldResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
156 private:
157
158 Aws::String m_title;
159 bool m_titleHasBeenSet = false;
160
162 bool m_statusHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 Aws::String m_cancelDescription;
168 bool m_cancelDescriptionHasBeenSet = false;
169
170 Aws::String m_legalHoldId;
171 bool m_legalHoldIdHasBeenSet = false;
172
173 Aws::String m_legalHoldArn;
174 bool m_legalHoldArnHasBeenSet = false;
175
176 Aws::Utils::DateTime m_creationDate{};
177 bool m_creationDateHasBeenSet = false;
178
179 Aws::Utils::DateTime m_cancellationDate{};
180 bool m_cancellationDateHasBeenSet = false;
181
182 Aws::Utils::DateTime m_retainRecordUntil{};
183 bool m_retainRecordUntilHasBeenSet = false;
184
185 RecoveryPointSelection m_recoveryPointSelection;
186 bool m_recoveryPointSelectionHasBeenSet = false;
187
188 Aws::String m_requestId;
189 bool m_requestIdHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace Backup
194} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue