AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
DescribeProtectedResourceResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Backup {
23namespace Model {
25 public:
26 AWS_BACKUP_API DescribeProtectedResourceResult() = default;
29
31
35 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
36 template <typename ResourceArnT = Aws::String>
37 void SetResourceArn(ResourceArnT&& value) {
38 m_resourceArnHasBeenSet = true;
39 m_resourceArn = std::forward<ResourceArnT>(value);
40 }
41 template <typename ResourceArnT = Aws::String>
43 SetResourceArn(std::forward<ResourceArnT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetResourceType() const { return m_resourceType; }
54 template <typename ResourceTypeT = Aws::String>
55 void SetResourceType(ResourceTypeT&& value) {
56 m_resourceTypeHasBeenSet = true;
57 m_resourceType = std::forward<ResourceTypeT>(value);
58 }
59 template <typename ResourceTypeT = Aws::String>
61 SetResourceType(std::forward<ResourceTypeT>(value));
62 return *this;
63 }
65
67
73 inline const Aws::Utils::DateTime& GetLastBackupTime() const { return m_lastBackupTime; }
74 template <typename LastBackupTimeT = Aws::Utils::DateTime>
75 void SetLastBackupTime(LastBackupTimeT&& value) {
76 m_lastBackupTimeHasBeenSet = true;
77 m_lastBackupTime = std::forward<LastBackupTimeT>(value);
78 }
79 template <typename LastBackupTimeT = Aws::Utils::DateTime>
81 SetLastBackupTime(std::forward<LastBackupTimeT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetResourceName() const { return m_resourceName; }
91 template <typename ResourceNameT = Aws::String>
92 void SetResourceName(ResourceNameT&& value) {
93 m_resourceNameHasBeenSet = true;
94 m_resourceName = std::forward<ResourceNameT>(value);
95 }
96 template <typename ResourceNameT = Aws::String>
98 SetResourceName(std::forward<ResourceNameT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetLastBackupVaultArn() const { return m_lastBackupVaultArn; }
109 template <typename LastBackupVaultArnT = Aws::String>
110 void SetLastBackupVaultArn(LastBackupVaultArnT&& value) {
111 m_lastBackupVaultArnHasBeenSet = true;
112 m_lastBackupVaultArn = std::forward<LastBackupVaultArnT>(value);
113 }
114 template <typename LastBackupVaultArnT = Aws::String>
116 SetLastBackupVaultArn(std::forward<LastBackupVaultArnT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetLastRecoveryPointArn() const { return m_lastRecoveryPointArn; }
126 template <typename LastRecoveryPointArnT = Aws::String>
127 void SetLastRecoveryPointArn(LastRecoveryPointArnT&& value) {
128 m_lastRecoveryPointArnHasBeenSet = true;
129 m_lastRecoveryPointArn = std::forward<LastRecoveryPointArnT>(value);
130 }
131 template <typename LastRecoveryPointArnT = Aws::String>
133 SetLastRecoveryPointArn(std::forward<LastRecoveryPointArnT>(value));
134 return *this;
135 }
137
139
142 inline long long GetLatestRestoreExecutionTimeMinutes() const { return m_latestRestoreExecutionTimeMinutes; }
143 inline void SetLatestRestoreExecutionTimeMinutes(long long value) {
144 m_latestRestoreExecutionTimeMinutesHasBeenSet = true;
145 m_latestRestoreExecutionTimeMinutes = value;
146 }
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetLatestRestoreJobCreationDate() const { return m_latestRestoreJobCreationDate; }
158 template <typename LatestRestoreJobCreationDateT = Aws::Utils::DateTime>
159 void SetLatestRestoreJobCreationDate(LatestRestoreJobCreationDateT&& value) {
160 m_latestRestoreJobCreationDateHasBeenSet = true;
161 m_latestRestoreJobCreationDate = std::forward<LatestRestoreJobCreationDateT>(value);
162 }
163 template <typename LatestRestoreJobCreationDateT = Aws::Utils::DateTime>
165 SetLatestRestoreJobCreationDate(std::forward<LatestRestoreJobCreationDateT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetLatestRestoreRecoveryPointCreationDate() const { return m_latestRestoreRecoveryPointCreationDate; }
175 template <typename LatestRestoreRecoveryPointCreationDateT = Aws::Utils::DateTime>
176 void SetLatestRestoreRecoveryPointCreationDate(LatestRestoreRecoveryPointCreationDateT&& value) {
177 m_latestRestoreRecoveryPointCreationDateHasBeenSet = true;
178 m_latestRestoreRecoveryPointCreationDate = std::forward<LatestRestoreRecoveryPointCreationDateT>(value);
179 }
180 template <typename LatestRestoreRecoveryPointCreationDateT = Aws::Utils::DateTime>
181 DescribeProtectedResourceResult& WithLatestRestoreRecoveryPointCreationDate(LatestRestoreRecoveryPointCreationDateT&& value) {
182 SetLatestRestoreRecoveryPointCreationDate(std::forward<LatestRestoreRecoveryPointCreationDateT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::String& GetRequestId() const { return m_requestId; }
190 template <typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) {
192 m_requestIdHasBeenSet = true;
193 m_requestId = std::forward<RequestIdT>(value);
194 }
195 template <typename RequestIdT = Aws::String>
197 SetRequestId(std::forward<RequestIdT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_resourceArn;
203
204 Aws::String m_resourceType;
205
206 Aws::Utils::DateTime m_lastBackupTime{};
207
208 Aws::String m_resourceName;
209
210 Aws::String m_lastBackupVaultArn;
211
212 Aws::String m_lastRecoveryPointArn;
213
214 long long m_latestRestoreExecutionTimeMinutes{0};
215
216 Aws::Utils::DateTime m_latestRestoreJobCreationDate{};
217
218 Aws::Utils::DateTime m_latestRestoreRecoveryPointCreationDate{};
219
220 Aws::String m_requestId;
221 bool m_resourceArnHasBeenSet = false;
222 bool m_resourceTypeHasBeenSet = false;
223 bool m_lastBackupTimeHasBeenSet = false;
224 bool m_resourceNameHasBeenSet = false;
225 bool m_lastBackupVaultArnHasBeenSet = false;
226 bool m_lastRecoveryPointArnHasBeenSet = false;
227 bool m_latestRestoreExecutionTimeMinutesHasBeenSet = false;
228 bool m_latestRestoreJobCreationDateHasBeenSet = false;
229 bool m_latestRestoreRecoveryPointCreationDateHasBeenSet = false;
230 bool m_requestIdHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace Backup
235} // 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