AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeProtectedResourceResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Backup
25{
26namespace Model
27{
29 {
30 public:
34
35
37
41 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
42 inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; }
43 inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); }
44 inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); }
45 inline DescribeProtectedResourceResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
46 inline DescribeProtectedResourceResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
47 inline DescribeProtectedResourceResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
49
51
55 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
56 inline void SetResourceType(const Aws::String& value) { m_resourceType = value; }
57 inline void SetResourceType(Aws::String&& value) { m_resourceType = std::move(value); }
58 inline void SetResourceType(const char* value) { m_resourceType.assign(value); }
59 inline DescribeProtectedResourceResult& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
60 inline DescribeProtectedResourceResult& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
61 inline DescribeProtectedResourceResult& WithResourceType(const char* value) { SetResourceType(value); return *this;}
63
65
71 inline const Aws::Utils::DateTime& GetLastBackupTime() const{ return m_lastBackupTime; }
72 inline void SetLastBackupTime(const Aws::Utils::DateTime& value) { m_lastBackupTime = value; }
73 inline void SetLastBackupTime(Aws::Utils::DateTime&& value) { m_lastBackupTime = std::move(value); }
77
79
82 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
83 inline void SetResourceName(const Aws::String& value) { m_resourceName = value; }
84 inline void SetResourceName(Aws::String&& value) { m_resourceName = std::move(value); }
85 inline void SetResourceName(const char* value) { m_resourceName.assign(value); }
86 inline DescribeProtectedResourceResult& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
87 inline DescribeProtectedResourceResult& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
88 inline DescribeProtectedResourceResult& WithResourceName(const char* value) { SetResourceName(value); return *this;}
90
92
96 inline const Aws::String& GetLastBackupVaultArn() const{ return m_lastBackupVaultArn; }
97 inline void SetLastBackupVaultArn(const Aws::String& value) { m_lastBackupVaultArn = value; }
98 inline void SetLastBackupVaultArn(Aws::String&& value) { m_lastBackupVaultArn = std::move(value); }
99 inline void SetLastBackupVaultArn(const char* value) { m_lastBackupVaultArn.assign(value); }
102 inline DescribeProtectedResourceResult& WithLastBackupVaultArn(const char* value) { SetLastBackupVaultArn(value); return *this;}
104
106
109 inline const Aws::String& GetLastRecoveryPointArn() const{ return m_lastRecoveryPointArn; }
110 inline void SetLastRecoveryPointArn(const Aws::String& value) { m_lastRecoveryPointArn = value; }
111 inline void SetLastRecoveryPointArn(Aws::String&& value) { m_lastRecoveryPointArn = std::move(value); }
112 inline void SetLastRecoveryPointArn(const char* value) { m_lastRecoveryPointArn.assign(value); }
115 inline DescribeProtectedResourceResult& WithLastRecoveryPointArn(const char* value) { SetLastRecoveryPointArn(value); return *this;}
117
119
122 inline long long GetLatestRestoreExecutionTimeMinutes() const{ return m_latestRestoreExecutionTimeMinutes; }
123 inline void SetLatestRestoreExecutionTimeMinutes(long long value) { m_latestRestoreExecutionTimeMinutes = value; }
126
128
131 inline const Aws::Utils::DateTime& GetLatestRestoreJobCreationDate() const{ return m_latestRestoreJobCreationDate; }
132 inline void SetLatestRestoreJobCreationDate(const Aws::Utils::DateTime& value) { m_latestRestoreJobCreationDate = value; }
133 inline void SetLatestRestoreJobCreationDate(Aws::Utils::DateTime&& value) { m_latestRestoreJobCreationDate = std::move(value); }
137
139
142 inline const Aws::Utils::DateTime& GetLatestRestoreRecoveryPointCreationDate() const{ return m_latestRestoreRecoveryPointCreationDate; }
143 inline void SetLatestRestoreRecoveryPointCreationDate(const Aws::Utils::DateTime& value) { m_latestRestoreRecoveryPointCreationDate = value; }
144 inline void SetLatestRestoreRecoveryPointCreationDate(Aws::Utils::DateTime&& value) { m_latestRestoreRecoveryPointCreationDate = std::move(value); }
148
150
151 inline const Aws::String& GetRequestId() const{ return m_requestId; }
152 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
153 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
154 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
155 inline DescribeProtectedResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
156 inline DescribeProtectedResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
157 inline DescribeProtectedResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
159 private:
160
161 Aws::String m_resourceArn;
162
163 Aws::String m_resourceType;
164
165 Aws::Utils::DateTime m_lastBackupTime;
166
167 Aws::String m_resourceName;
168
169 Aws::String m_lastBackupVaultArn;
170
171 Aws::String m_lastRecoveryPointArn;
172
173 long long m_latestRestoreExecutionTimeMinutes;
174
175 Aws::Utils::DateTime m_latestRestoreJobCreationDate;
176
177 Aws::Utils::DateTime m_latestRestoreRecoveryPointCreationDate;
178
179 Aws::String m_requestId;
180 };
181
182} // namespace Model
183} // namespace Backup
184} // namespace Aws
DescribeProtectedResourceResult & WithResourceName(const char *value)
DescribeProtectedResourceResult & WithResourceType(const Aws::String &value)
DescribeProtectedResourceResult & WithResourceArn(const char *value)
DescribeProtectedResourceResult & WithResourceType(const char *value)
DescribeProtectedResourceResult & WithRequestId(const char *value)
DescribeProtectedResourceResult & WithResourceType(Aws::String &&value)
DescribeProtectedResourceResult & WithLastBackupVaultArn(const Aws::String &value)
DescribeProtectedResourceResult & WithLatestRestoreJobCreationDate(const Aws::Utils::DateTime &value)
DescribeProtectedResourceResult & WithLastBackupTime(const Aws::Utils::DateTime &value)
DescribeProtectedResourceResult & WithLatestRestoreRecoveryPointCreationDate(const Aws::Utils::DateTime &value)
void SetLatestRestoreRecoveryPointCreationDate(const Aws::Utils::DateTime &value)
DescribeProtectedResourceResult & WithLastBackupVaultArn(const char *value)
DescribeProtectedResourceResult & WithLatestRestoreJobCreationDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLatestRestoreRecoveryPointCreationDate() const
DescribeProtectedResourceResult & WithResourceArn(const Aws::String &value)
DescribeProtectedResourceResult & WithLastBackupTime(Aws::Utils::DateTime &&value)
DescribeProtectedResourceResult & WithResourceName(const Aws::String &value)
DescribeProtectedResourceResult & WithLastRecoveryPointArn(const char *value)
DescribeProtectedResourceResult & WithRequestId(Aws::String &&value)
DescribeProtectedResourceResult & WithLatestRestoreRecoveryPointCreationDate(Aws::Utils::DateTime &&value)
DescribeProtectedResourceResult & WithLastRecoveryPointArn(const Aws::String &value)
void SetLatestRestoreJobCreationDate(const Aws::Utils::DateTime &value)
AWS_BACKUP_API DescribeProtectedResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeProtectedResourceResult & WithResourceArn(Aws::String &&value)
DescribeProtectedResourceResult & WithResourceName(Aws::String &&value)
DescribeProtectedResourceResult & WithLastBackupVaultArn(Aws::String &&value)
DescribeProtectedResourceResult & WithLastRecoveryPointArn(Aws::String &&value)
AWS_BACKUP_API DescribeProtectedResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeProtectedResourceResult & WithRequestId(const Aws::String &value)
DescribeProtectedResourceResult & WithLatestRestoreExecutionTimeMinutes(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue