AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
50 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
51 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
52 inline ProtectedResource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
53 inline ProtectedResource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
54 inline ProtectedResource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
56
58
64 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
65 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
66 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
67 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
68 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
69 inline ProtectedResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
70 inline ProtectedResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
71 inline ProtectedResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
73
75
81 inline const Aws::Utils::DateTime& GetLastBackupTime() const{ return m_lastBackupTime; }
82 inline bool LastBackupTimeHasBeenSet() const { return m_lastBackupTimeHasBeenSet; }
83 inline void SetLastBackupTime(const Aws::Utils::DateTime& value) { m_lastBackupTimeHasBeenSet = true; m_lastBackupTime = value; }
84 inline void SetLastBackupTime(Aws::Utils::DateTime&& value) { m_lastBackupTimeHasBeenSet = true; m_lastBackupTime = std::move(value); }
85 inline ProtectedResource& WithLastBackupTime(const Aws::Utils::DateTime& value) { SetLastBackupTime(value); return *this;}
86 inline ProtectedResource& WithLastBackupTime(Aws::Utils::DateTime&& value) { SetLastBackupTime(std::move(value)); return *this;}
88
90
93 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
94 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
95 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
96 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
97 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
98 inline ProtectedResource& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
99 inline ProtectedResource& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
100 inline ProtectedResource& WithResourceName(const char* value) { SetResourceName(value); return *this;}
102
104
108 inline const Aws::String& GetLastBackupVaultArn() const{ return m_lastBackupVaultArn; }
109 inline bool LastBackupVaultArnHasBeenSet() const { return m_lastBackupVaultArnHasBeenSet; }
110 inline void SetLastBackupVaultArn(const Aws::String& value) { m_lastBackupVaultArnHasBeenSet = true; m_lastBackupVaultArn = value; }
111 inline void SetLastBackupVaultArn(Aws::String&& value) { m_lastBackupVaultArnHasBeenSet = true; m_lastBackupVaultArn = std::move(value); }
112 inline void SetLastBackupVaultArn(const char* value) { m_lastBackupVaultArnHasBeenSet = true; m_lastBackupVaultArn.assign(value); }
113 inline ProtectedResource& WithLastBackupVaultArn(const Aws::String& value) { SetLastBackupVaultArn(value); return *this;}
114 inline ProtectedResource& WithLastBackupVaultArn(Aws::String&& value) { SetLastBackupVaultArn(std::move(value)); return *this;}
115 inline ProtectedResource& WithLastBackupVaultArn(const char* value) { SetLastBackupVaultArn(value); return *this;}
117
119
122 inline const Aws::String& GetLastRecoveryPointArn() const{ return m_lastRecoveryPointArn; }
123 inline bool LastRecoveryPointArnHasBeenSet() const { return m_lastRecoveryPointArnHasBeenSet; }
124 inline void SetLastRecoveryPointArn(const Aws::String& value) { m_lastRecoveryPointArnHasBeenSet = true; m_lastRecoveryPointArn = value; }
125 inline void SetLastRecoveryPointArn(Aws::String&& value) { m_lastRecoveryPointArnHasBeenSet = true; m_lastRecoveryPointArn = std::move(value); }
126 inline void SetLastRecoveryPointArn(const char* value) { m_lastRecoveryPointArnHasBeenSet = true; m_lastRecoveryPointArn.assign(value); }
128 inline ProtectedResource& WithLastRecoveryPointArn(Aws::String&& value) { SetLastRecoveryPointArn(std::move(value)); return *this;}
129 inline ProtectedResource& WithLastRecoveryPointArn(const char* value) { SetLastRecoveryPointArn(value); return *this;}
131 private:
132
133 Aws::String m_resourceArn;
134 bool m_resourceArnHasBeenSet = false;
135
136 Aws::String m_resourceType;
137 bool m_resourceTypeHasBeenSet = false;
138
139 Aws::Utils::DateTime m_lastBackupTime;
140 bool m_lastBackupTimeHasBeenSet = false;
141
142 Aws::String m_resourceName;
143 bool m_resourceNameHasBeenSet = false;
144
145 Aws::String m_lastBackupVaultArn;
146 bool m_lastBackupVaultArnHasBeenSet = false;
147
148 Aws::String m_lastRecoveryPointArn;
149 bool m_lastRecoveryPointArnHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Backup
154} // namespace Aws
void SetLastBackupVaultArn(const char *value)
void SetResourceName(Aws::String &&value)
const Aws::Utils::DateTime & GetLastBackupTime() const
void SetLastBackupTime(Aws::Utils::DateTime &&value)
const Aws::String & GetResourceName() const
const Aws::String & GetLastRecoveryPointArn() const
ProtectedResource & WithLastRecoveryPointArn(const char *value)
const Aws::String & GetResourceArn() const
const Aws::String & GetLastBackupVaultArn() const
ProtectedResource & WithResourceName(const Aws::String &value)
ProtectedResource & WithResourceType(const Aws::String &value)
void SetLastBackupTime(const Aws::Utils::DateTime &value)
ProtectedResource & WithLastBackupVaultArn(const char *value)
void SetResourceArn(Aws::String &&value)
ProtectedResource & WithResourceArn(const char *value)
ProtectedResource & WithLastRecoveryPointArn(Aws::String &&value)
void SetResourceType(Aws::String &&value)
ProtectedResource & WithLastBackupVaultArn(Aws::String &&value)
ProtectedResource & WithResourceType(Aws::String &&value)
AWS_BACKUP_API ProtectedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceArn(const Aws::String &value)
ProtectedResource & WithResourceName(const char *value)
ProtectedResource & WithResourceArn(const Aws::String &value)
void SetLastRecoveryPointArn(Aws::String &&value)
void SetResourceType(const Aws::String &value)
ProtectedResource & WithResourceArn(Aws::String &&value)
void SetLastBackupVaultArn(const Aws::String &value)
ProtectedResource & WithLastRecoveryPointArn(const Aws::String &value)
const Aws::String & GetResourceType() const
ProtectedResource & WithLastBackupTime(const Aws::Utils::DateTime &value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastRecoveryPointArn(const char *value)
ProtectedResource & WithLastBackupVaultArn(const Aws::String &value)
void SetLastRecoveryPointArn(const Aws::String &value)
ProtectedResource & WithLastBackupTime(Aws::Utils::DateTime &&value)
void SetLastBackupVaultArn(Aws::String &&value)
ProtectedResource & WithResourceName(Aws::String &&value)
ProtectedResource & WithResourceType(const char *value)
void SetResourceName(const Aws::String &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