AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
ProtectedResource.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 {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Backup {
21namespace Model {
22
30 public:
31 AWS_BACKUP_API ProtectedResource() = default;
34 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
42 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
43 template <typename ResourceArnT = Aws::String>
44 void SetResourceArn(ResourceArnT&& value) {
45 m_resourceArnHasBeenSet = true;
46 m_resourceArn = std::forward<ResourceArnT>(value);
47 }
48 template <typename ResourceArnT = Aws::String>
49 ProtectedResource& WithResourceArn(ResourceArnT&& value) {
50 SetResourceArn(std::forward<ResourceArnT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetResourceType() const { return m_resourceType; }
63 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
64 template <typename ResourceTypeT = Aws::String>
65 void SetResourceType(ResourceTypeT&& value) {
66 m_resourceTypeHasBeenSet = true;
67 m_resourceType = std::forward<ResourceTypeT>(value);
68 }
69 template <typename ResourceTypeT = Aws::String>
70 ProtectedResource& WithResourceType(ResourceTypeT&& value) {
71 SetResourceType(std::forward<ResourceTypeT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::Utils::DateTime& GetLastBackupTime() const { return m_lastBackupTime; }
84 inline bool LastBackupTimeHasBeenSet() const { return m_lastBackupTimeHasBeenSet; }
85 template <typename LastBackupTimeT = Aws::Utils::DateTime>
86 void SetLastBackupTime(LastBackupTimeT&& value) {
87 m_lastBackupTimeHasBeenSet = true;
88 m_lastBackupTime = std::forward<LastBackupTimeT>(value);
89 }
90 template <typename LastBackupTimeT = Aws::Utils::DateTime>
91 ProtectedResource& WithLastBackupTime(LastBackupTimeT&& value) {
92 SetLastBackupTime(std::forward<LastBackupTimeT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetResourceName() const { return m_resourceName; }
102 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
103 template <typename ResourceNameT = Aws::String>
104 void SetResourceName(ResourceNameT&& value) {
105 m_resourceNameHasBeenSet = true;
106 m_resourceName = std::forward<ResourceNameT>(value);
107 }
108 template <typename ResourceNameT = Aws::String>
109 ProtectedResource& WithResourceName(ResourceNameT&& value) {
110 SetResourceName(std::forward<ResourceNameT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetLastBackupVaultArn() const { return m_lastBackupVaultArn; }
121 inline bool LastBackupVaultArnHasBeenSet() const { return m_lastBackupVaultArnHasBeenSet; }
122 template <typename LastBackupVaultArnT = Aws::String>
123 void SetLastBackupVaultArn(LastBackupVaultArnT&& value) {
124 m_lastBackupVaultArnHasBeenSet = true;
125 m_lastBackupVaultArn = std::forward<LastBackupVaultArnT>(value);
126 }
127 template <typename LastBackupVaultArnT = Aws::String>
128 ProtectedResource& WithLastBackupVaultArn(LastBackupVaultArnT&& value) {
129 SetLastBackupVaultArn(std::forward<LastBackupVaultArnT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetLastRecoveryPointArn() const { return m_lastRecoveryPointArn; }
139 inline bool LastRecoveryPointArnHasBeenSet() const { return m_lastRecoveryPointArnHasBeenSet; }
140 template <typename LastRecoveryPointArnT = Aws::String>
141 void SetLastRecoveryPointArn(LastRecoveryPointArnT&& value) {
142 m_lastRecoveryPointArnHasBeenSet = true;
143 m_lastRecoveryPointArn = std::forward<LastRecoveryPointArnT>(value);
144 }
145 template <typename LastRecoveryPointArnT = Aws::String>
146 ProtectedResource& WithLastRecoveryPointArn(LastRecoveryPointArnT&& value) {
147 SetLastRecoveryPointArn(std::forward<LastRecoveryPointArnT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_resourceArn;
153
154 Aws::String m_resourceType;
155
156 Aws::Utils::DateTime m_lastBackupTime{};
157
158 Aws::String m_resourceName;
159
160 Aws::String m_lastBackupVaultArn;
161
162 Aws::String m_lastRecoveryPointArn;
163 bool m_resourceArnHasBeenSet = false;
164 bool m_resourceTypeHasBeenSet = false;
165 bool m_lastBackupTimeHasBeenSet = false;
166 bool m_resourceNameHasBeenSet = false;
167 bool m_lastBackupVaultArnHasBeenSet = false;
168 bool m_lastRecoveryPointArnHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace Backup
173} // namespace Aws
ProtectedResource & WithResourceType(ResourceTypeT &&value)
void SetLastBackupTime(LastBackupTimeT &&value)
AWS_BACKUP_API ProtectedResource()=default
void SetResourceName(ResourceNameT &&value)
const Aws::Utils::DateTime & GetLastBackupTime() const
const Aws::String & GetResourceName() const
const Aws::String & GetLastRecoveryPointArn() const
const Aws::String & GetResourceArn() const
const Aws::String & GetLastBackupVaultArn() const
void SetResourceArn(ResourceArnT &&value)
ProtectedResource & WithLastRecoveryPointArn(LastRecoveryPointArnT &&value)
ProtectedResource & WithLastBackupVaultArn(LastBackupVaultArnT &&value)
AWS_BACKUP_API ProtectedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
ProtectedResource & WithLastBackupTime(LastBackupTimeT &&value)
void SetLastRecoveryPointArn(LastRecoveryPointArnT &&value)
ProtectedResource & WithResourceArn(ResourceArnT &&value)
const Aws::String & GetResourceType() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceType(ResourceTypeT &&value)
ProtectedResource & WithResourceName(ResourceNameT &&value)
void SetLastBackupVaultArn(LastBackupVaultArnT &&value)
AWS_BACKUP_API ProtectedResource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue