AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
DescribeProtectedResourceResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Backup {
24namespace Model {
26 public:
27 AWS_BACKUP_API DescribeProtectedResourceResult() = default;
30
32
36 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
37 template <typename ResourceArnT = Aws::String>
38 void SetResourceArn(ResourceArnT&& value) {
39 m_resourceArnHasBeenSet = true;
40 m_resourceArn = std::forward<ResourceArnT>(value);
41 }
42 template <typename ResourceArnT = Aws::String>
44 SetResourceArn(std::forward<ResourceArnT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetResourceType() const { return m_resourceType; }
55 template <typename ResourceTypeT = Aws::String>
56 void SetResourceType(ResourceTypeT&& value) {
57 m_resourceTypeHasBeenSet = true;
58 m_resourceType = std::forward<ResourceTypeT>(value);
59 }
60 template <typename ResourceTypeT = Aws::String>
62 SetResourceType(std::forward<ResourceTypeT>(value));
63 return *this;
64 }
66
68
74 inline const Aws::Utils::DateTime& GetLastBackupTime() const { return m_lastBackupTime; }
75 template <typename LastBackupTimeT = Aws::Utils::DateTime>
76 void SetLastBackupTime(LastBackupTimeT&& value) {
77 m_lastBackupTimeHasBeenSet = true;
78 m_lastBackupTime = std::forward<LastBackupTimeT>(value);
79 }
80 template <typename LastBackupTimeT = Aws::Utils::DateTime>
82 SetLastBackupTime(std::forward<LastBackupTimeT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetResourceName() const { return m_resourceName; }
92 template <typename ResourceNameT = Aws::String>
93 void SetResourceName(ResourceNameT&& value) {
94 m_resourceNameHasBeenSet = true;
95 m_resourceName = std::forward<ResourceNameT>(value);
96 }
97 template <typename ResourceNameT = Aws::String>
99 SetResourceName(std::forward<ResourceNameT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetLastBackupVaultArn() const { return m_lastBackupVaultArn; }
110 template <typename LastBackupVaultArnT = Aws::String>
111 void SetLastBackupVaultArn(LastBackupVaultArnT&& value) {
112 m_lastBackupVaultArnHasBeenSet = true;
113 m_lastBackupVaultArn = std::forward<LastBackupVaultArnT>(value);
114 }
115 template <typename LastBackupVaultArnT = Aws::String>
117 SetLastBackupVaultArn(std::forward<LastBackupVaultArnT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetLastRecoveryPointArn() const { return m_lastRecoveryPointArn; }
127 template <typename LastRecoveryPointArnT = Aws::String>
128 void SetLastRecoveryPointArn(LastRecoveryPointArnT&& value) {
129 m_lastRecoveryPointArnHasBeenSet = true;
130 m_lastRecoveryPointArn = std::forward<LastRecoveryPointArnT>(value);
131 }
132 template <typename LastRecoveryPointArnT = Aws::String>
134 SetLastRecoveryPointArn(std::forward<LastRecoveryPointArnT>(value));
135 return *this;
136 }
138
140
143 inline long long GetLatestRestoreExecutionTimeMinutes() const { return m_latestRestoreExecutionTimeMinutes; }
144 inline void SetLatestRestoreExecutionTimeMinutes(long long value) {
145 m_latestRestoreExecutionTimeMinutesHasBeenSet = true;
146 m_latestRestoreExecutionTimeMinutes = value;
147 }
150 return *this;
151 }
153
155
158 inline const Aws::Utils::DateTime& GetLatestRestoreJobCreationDate() const { return m_latestRestoreJobCreationDate; }
159 template <typename LatestRestoreJobCreationDateT = Aws::Utils::DateTime>
160 void SetLatestRestoreJobCreationDate(LatestRestoreJobCreationDateT&& value) {
161 m_latestRestoreJobCreationDateHasBeenSet = true;
162 m_latestRestoreJobCreationDate = std::forward<LatestRestoreJobCreationDateT>(value);
163 }
164 template <typename LatestRestoreJobCreationDateT = Aws::Utils::DateTime>
166 SetLatestRestoreJobCreationDate(std::forward<LatestRestoreJobCreationDateT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetLatestRestoreRecoveryPointCreationDate() const { return m_latestRestoreRecoveryPointCreationDate; }
176 template <typename LatestRestoreRecoveryPointCreationDateT = Aws::Utils::DateTime>
177 void SetLatestRestoreRecoveryPointCreationDate(LatestRestoreRecoveryPointCreationDateT&& value) {
178 m_latestRestoreRecoveryPointCreationDateHasBeenSet = true;
179 m_latestRestoreRecoveryPointCreationDate = std::forward<LatestRestoreRecoveryPointCreationDateT>(value);
180 }
181 template <typename LatestRestoreRecoveryPointCreationDateT = Aws::Utils::DateTime>
182 DescribeProtectedResourceResult& WithLatestRestoreRecoveryPointCreationDate(LatestRestoreRecoveryPointCreationDateT&& value) {
183 SetLatestRestoreRecoveryPointCreationDate(std::forward<LatestRestoreRecoveryPointCreationDateT>(value));
184 return *this;
185 }
187
189
190 inline const Aws::String& GetRequestId() const { return m_requestId; }
191 template <typename RequestIdT = Aws::String>
192 void SetRequestId(RequestIdT&& value) {
193 m_requestIdHasBeenSet = true;
194 m_requestId = std::forward<RequestIdT>(value);
195 }
196 template <typename RequestIdT = Aws::String>
198 SetRequestId(std::forward<RequestIdT>(value));
199 return *this;
200 }
202 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
203
204 private:
205 Aws::String m_resourceArn;
206
207 Aws::String m_resourceType;
208
209 Aws::Utils::DateTime m_lastBackupTime{};
210
211 Aws::String m_resourceName;
212
213 Aws::String m_lastBackupVaultArn;
214
215 Aws::String m_lastRecoveryPointArn;
216
217 long long m_latestRestoreExecutionTimeMinutes{0};
218
219 Aws::Utils::DateTime m_latestRestoreJobCreationDate{};
220
221 Aws::Utils::DateTime m_latestRestoreRecoveryPointCreationDate{};
222
223 Aws::String m_requestId;
224 Aws::Http::HttpResponseCode m_HttpResponseCode;
225 bool m_resourceArnHasBeenSet = false;
226 bool m_resourceTypeHasBeenSet = false;
227 bool m_lastBackupTimeHasBeenSet = false;
228 bool m_resourceNameHasBeenSet = false;
229 bool m_lastBackupVaultArnHasBeenSet = false;
230 bool m_lastRecoveryPointArnHasBeenSet = false;
231 bool m_latestRestoreExecutionTimeMinutesHasBeenSet = false;
232 bool m_latestRestoreJobCreationDateHasBeenSet = false;
233 bool m_latestRestoreRecoveryPointCreationDateHasBeenSet = false;
234 bool m_requestIdHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace Backup
239} // namespace Aws
AWS_BACKUP_API DescribeProtectedResourceResult()=default
DescribeProtectedResourceResult & WithLastBackupTime(LastBackupTimeT &&value)
void SetLatestRestoreJobCreationDate(LatestRestoreJobCreationDateT &&value)
DescribeProtectedResourceResult & WithLatestRestoreRecoveryPointCreationDate(LatestRestoreRecoveryPointCreationDateT &&value)
DescribeProtectedResourceResult & WithRequestId(RequestIdT &&value)
DescribeProtectedResourceResult & WithLastRecoveryPointArn(LastRecoveryPointArnT &&value)
const Aws::Utils::DateTime & GetLatestRestoreRecoveryPointCreationDate() const
DescribeProtectedResourceResult & WithResourceType(ResourceTypeT &&value)
DescribeProtectedResourceResult & WithResourceArn(ResourceArnT &&value)
DescribeProtectedResourceResult & WithLatestRestoreJobCreationDate(LatestRestoreJobCreationDateT &&value)
void SetLatestRestoreRecoveryPointCreationDate(LatestRestoreRecoveryPointCreationDateT &&value)
AWS_BACKUP_API DescribeProtectedResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeProtectedResourceResult & WithLastBackupVaultArn(LastBackupVaultArnT &&value)
AWS_BACKUP_API DescribeProtectedResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeProtectedResourceResult & WithResourceName(ResourceNameT &&value)
DescribeProtectedResourceResult & WithLatestRestoreExecutionTimeMinutes(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue