AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProtectedResource.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{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Backup
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BACKUP_API ProtectedResource() = default;
39 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
48 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
49 template<typename ResourceArnT = Aws::String>
50 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
51 template<typename ResourceArnT = Aws::String>
52 ProtectedResource& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
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) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
66 template<typename ResourceTypeT = Aws::String>
67 ProtectedResource& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
69
71
77 inline const Aws::Utils::DateTime& GetLastBackupTime() const { return m_lastBackupTime; }
78 inline bool LastBackupTimeHasBeenSet() const { return m_lastBackupTimeHasBeenSet; }
79 template<typename LastBackupTimeT = Aws::Utils::DateTime>
80 void SetLastBackupTime(LastBackupTimeT&& value) { m_lastBackupTimeHasBeenSet = true; m_lastBackupTime = std::forward<LastBackupTimeT>(value); }
81 template<typename LastBackupTimeT = Aws::Utils::DateTime>
82 ProtectedResource& WithLastBackupTime(LastBackupTimeT&& value) { SetLastBackupTime(std::forward<LastBackupTimeT>(value)); return *this;}
84
86
89 inline const Aws::String& GetResourceName() const { return m_resourceName; }
90 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
91 template<typename ResourceNameT = Aws::String>
92 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
93 template<typename ResourceNameT = Aws::String>
94 ProtectedResource& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
96
98
102 inline const Aws::String& GetLastBackupVaultArn() const { return m_lastBackupVaultArn; }
103 inline bool LastBackupVaultArnHasBeenSet() const { return m_lastBackupVaultArnHasBeenSet; }
104 template<typename LastBackupVaultArnT = Aws::String>
105 void SetLastBackupVaultArn(LastBackupVaultArnT&& value) { m_lastBackupVaultArnHasBeenSet = true; m_lastBackupVaultArn = std::forward<LastBackupVaultArnT>(value); }
106 template<typename LastBackupVaultArnT = Aws::String>
107 ProtectedResource& WithLastBackupVaultArn(LastBackupVaultArnT&& value) { SetLastBackupVaultArn(std::forward<LastBackupVaultArnT>(value)); return *this;}
109
111
114 inline const Aws::String& GetLastRecoveryPointArn() const { return m_lastRecoveryPointArn; }
115 inline bool LastRecoveryPointArnHasBeenSet() const { return m_lastRecoveryPointArnHasBeenSet; }
116 template<typename LastRecoveryPointArnT = Aws::String>
117 void SetLastRecoveryPointArn(LastRecoveryPointArnT&& value) { m_lastRecoveryPointArnHasBeenSet = true; m_lastRecoveryPointArn = std::forward<LastRecoveryPointArnT>(value); }
118 template<typename LastRecoveryPointArnT = Aws::String>
119 ProtectedResource& WithLastRecoveryPointArn(LastRecoveryPointArnT&& value) { SetLastRecoveryPointArn(std::forward<LastRecoveryPointArnT>(value)); return *this;}
121 private:
122
123 Aws::String m_resourceArn;
124 bool m_resourceArnHasBeenSet = false;
125
126 Aws::String m_resourceType;
127 bool m_resourceTypeHasBeenSet = false;
128
129 Aws::Utils::DateTime m_lastBackupTime{};
130 bool m_lastBackupTimeHasBeenSet = false;
131
132 Aws::String m_resourceName;
133 bool m_resourceNameHasBeenSet = false;
134
135 Aws::String m_lastBackupVaultArn;
136 bool m_lastBackupVaultArnHasBeenSet = false;
137
138 Aws::String m_lastRecoveryPointArn;
139 bool m_lastRecoveryPointArnHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Backup
144} // 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