AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
CreateLegalHoldResult.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 CreateLegalHoldResult() = 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>
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 CreateLegalHoldResult& WithDescription(DescriptionT&& value) {
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetLegalHoldId() const { return m_legalHoldId; }
87 template <typename LegalHoldIdT = Aws::String>
88 void SetLegalHoldId(LegalHoldIdT&& value) {
89 m_legalHoldIdHasBeenSet = true;
90 m_legalHoldId = std::forward<LegalHoldIdT>(value);
91 }
92 template <typename LegalHoldIdT = Aws::String>
93 CreateLegalHoldResult& WithLegalHoldId(LegalHoldIdT&& value) {
94 SetLegalHoldId(std::forward<LegalHoldIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetLegalHoldArn() const { return m_legalHoldArn; }
104 template <typename LegalHoldArnT = Aws::String>
105 void SetLegalHoldArn(LegalHoldArnT&& value) {
106 m_legalHoldArnHasBeenSet = true;
107 m_legalHoldArn = std::forward<LegalHoldArnT>(value);
108 }
109 template <typename LegalHoldArnT = Aws::String>
110 CreateLegalHoldResult& WithLegalHoldArn(LegalHoldArnT&& value) {
111 SetLegalHoldArn(std::forward<LegalHoldArnT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
121 template <typename CreationDateT = Aws::Utils::DateTime>
122 void SetCreationDate(CreationDateT&& value) {
123 m_creationDateHasBeenSet = true;
124 m_creationDate = std::forward<CreationDateT>(value);
125 }
126 template <typename CreationDateT = Aws::Utils::DateTime>
127 CreateLegalHoldResult& WithCreationDate(CreationDateT&& value) {
128 SetCreationDate(std::forward<CreationDateT>(value));
129 return *this;
130 }
132
134
138 inline const RecoveryPointSelection& GetRecoveryPointSelection() const { return m_recoveryPointSelection; }
139 template <typename RecoveryPointSelectionT = RecoveryPointSelection>
140 void SetRecoveryPointSelection(RecoveryPointSelectionT&& value) {
141 m_recoveryPointSelectionHasBeenSet = true;
142 m_recoveryPointSelection = std::forward<RecoveryPointSelectionT>(value);
143 }
144 template <typename RecoveryPointSelectionT = RecoveryPointSelection>
145 CreateLegalHoldResult& WithRecoveryPointSelection(RecoveryPointSelectionT&& value) {
146 SetRecoveryPointSelection(std::forward<RecoveryPointSelectionT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
166
167 private:
168 Aws::String m_title;
169
171
172 Aws::String m_description;
173
174 Aws::String m_legalHoldId;
175
176 Aws::String m_legalHoldArn;
177
178 Aws::Utils::DateTime m_creationDate{};
179
180 RecoveryPointSelection m_recoveryPointSelection;
181
182 Aws::String m_requestId;
183 Aws::Http::HttpResponseCode m_HttpResponseCode;
184 bool m_titleHasBeenSet = false;
185 bool m_statusHasBeenSet = false;
186 bool m_descriptionHasBeenSet = false;
187 bool m_legalHoldIdHasBeenSet = false;
188 bool m_legalHoldArnHasBeenSet = false;
189 bool m_creationDateHasBeenSet = false;
190 bool m_recoveryPointSelectionHasBeenSet = false;
191 bool m_requestIdHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace Backup
196} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue