AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
31 AWS_BACKUP_API DescribeProtectedResourceResult() = default;
34
35
37
41 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
42 template<typename ResourceArnT = Aws::String>
43 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
44 template<typename ResourceArnT = Aws::String>
45 DescribeProtectedResourceResult& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
47
49
53 inline const Aws::String& GetResourceType() const { return m_resourceType; }
54 template<typename ResourceTypeT = Aws::String>
55 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
56 template<typename ResourceTypeT = Aws::String>
57 DescribeProtectedResourceResult& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
59
61
67 inline const Aws::Utils::DateTime& GetLastBackupTime() const { return m_lastBackupTime; }
68 template<typename LastBackupTimeT = Aws::Utils::DateTime>
69 void SetLastBackupTime(LastBackupTimeT&& value) { m_lastBackupTimeHasBeenSet = true; m_lastBackupTime = std::forward<LastBackupTimeT>(value); }
70 template<typename LastBackupTimeT = Aws::Utils::DateTime>
71 DescribeProtectedResourceResult& WithLastBackupTime(LastBackupTimeT&& value) { SetLastBackupTime(std::forward<LastBackupTimeT>(value)); return *this;}
73
75
78 inline const Aws::String& GetResourceName() const { return m_resourceName; }
79 template<typename ResourceNameT = Aws::String>
80 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
81 template<typename ResourceNameT = Aws::String>
82 DescribeProtectedResourceResult& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
84
86
90 inline const Aws::String& GetLastBackupVaultArn() const { return m_lastBackupVaultArn; }
91 template<typename LastBackupVaultArnT = Aws::String>
92 void SetLastBackupVaultArn(LastBackupVaultArnT&& value) { m_lastBackupVaultArnHasBeenSet = true; m_lastBackupVaultArn = std::forward<LastBackupVaultArnT>(value); }
93 template<typename LastBackupVaultArnT = Aws::String>
94 DescribeProtectedResourceResult& WithLastBackupVaultArn(LastBackupVaultArnT&& value) { SetLastBackupVaultArn(std::forward<LastBackupVaultArnT>(value)); return *this;}
96
98
101 inline const Aws::String& GetLastRecoveryPointArn() const { return m_lastRecoveryPointArn; }
102 template<typename LastRecoveryPointArnT = Aws::String>
103 void SetLastRecoveryPointArn(LastRecoveryPointArnT&& value) { m_lastRecoveryPointArnHasBeenSet = true; m_lastRecoveryPointArn = std::forward<LastRecoveryPointArnT>(value); }
104 template<typename LastRecoveryPointArnT = Aws::String>
105 DescribeProtectedResourceResult& WithLastRecoveryPointArn(LastRecoveryPointArnT&& value) { SetLastRecoveryPointArn(std::forward<LastRecoveryPointArnT>(value)); return *this;}
107
109
112 inline long long GetLatestRestoreExecutionTimeMinutes() const { return m_latestRestoreExecutionTimeMinutes; }
113 inline void SetLatestRestoreExecutionTimeMinutes(long long value) { m_latestRestoreExecutionTimeMinutesHasBeenSet = true; m_latestRestoreExecutionTimeMinutes = value; }
116
118
121 inline const Aws::Utils::DateTime& GetLatestRestoreJobCreationDate() const { return m_latestRestoreJobCreationDate; }
122 template<typename LatestRestoreJobCreationDateT = Aws::Utils::DateTime>
123 void SetLatestRestoreJobCreationDate(LatestRestoreJobCreationDateT&& value) { m_latestRestoreJobCreationDateHasBeenSet = true; m_latestRestoreJobCreationDate = std::forward<LatestRestoreJobCreationDateT>(value); }
124 template<typename LatestRestoreJobCreationDateT = Aws::Utils::DateTime>
125 DescribeProtectedResourceResult& WithLatestRestoreJobCreationDate(LatestRestoreJobCreationDateT&& value) { SetLatestRestoreJobCreationDate(std::forward<LatestRestoreJobCreationDateT>(value)); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetLatestRestoreRecoveryPointCreationDate() const { return m_latestRestoreRecoveryPointCreationDate; }
133 template<typename LatestRestoreRecoveryPointCreationDateT = Aws::Utils::DateTime>
134 void SetLatestRestoreRecoveryPointCreationDate(LatestRestoreRecoveryPointCreationDateT&& value) { m_latestRestoreRecoveryPointCreationDateHasBeenSet = true; m_latestRestoreRecoveryPointCreationDate = std::forward<LatestRestoreRecoveryPointCreationDateT>(value); }
135 template<typename LatestRestoreRecoveryPointCreationDateT = Aws::Utils::DateTime>
136 DescribeProtectedResourceResult& WithLatestRestoreRecoveryPointCreationDate(LatestRestoreRecoveryPointCreationDateT&& value) { SetLatestRestoreRecoveryPointCreationDate(std::forward<LatestRestoreRecoveryPointCreationDateT>(value)); return *this;}
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template<typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
144 template<typename RequestIdT = Aws::String>
145 DescribeProtectedResourceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
147 private:
148
149 Aws::String m_resourceArn;
150 bool m_resourceArnHasBeenSet = false;
151
152 Aws::String m_resourceType;
153 bool m_resourceTypeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_lastBackupTime{};
156 bool m_lastBackupTimeHasBeenSet = false;
157
158 Aws::String m_resourceName;
159 bool m_resourceNameHasBeenSet = false;
160
161 Aws::String m_lastBackupVaultArn;
162 bool m_lastBackupVaultArnHasBeenSet = false;
163
164 Aws::String m_lastRecoveryPointArn;
165 bool m_lastRecoveryPointArnHasBeenSet = false;
166
167 long long m_latestRestoreExecutionTimeMinutes{0};
168 bool m_latestRestoreExecutionTimeMinutesHasBeenSet = false;
169
170 Aws::Utils::DateTime m_latestRestoreJobCreationDate{};
171 bool m_latestRestoreJobCreationDateHasBeenSet = false;
172
173 Aws::Utils::DateTime m_latestRestoreRecoveryPointCreationDate{};
174 bool m_latestRestoreRecoveryPointCreationDateHasBeenSet = false;
175
176 Aws::String m_requestId;
177 bool m_requestIdHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace Backup
182} // 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