AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BackupPlansListMember.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/backup/model/AdvancedBackupSetting.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Backup
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BACKUP_API BackupPlansListMember() = default;
40 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetBackupPlanArn() const { return m_backupPlanArn; }
50 inline bool BackupPlanArnHasBeenSet() const { return m_backupPlanArnHasBeenSet; }
51 template<typename BackupPlanArnT = Aws::String>
52 void SetBackupPlanArn(BackupPlanArnT&& value) { m_backupPlanArnHasBeenSet = true; m_backupPlanArn = std::forward<BackupPlanArnT>(value); }
53 template<typename BackupPlanArnT = Aws::String>
54 BackupPlansListMember& WithBackupPlanArn(BackupPlanArnT&& value) { SetBackupPlanArn(std::forward<BackupPlanArnT>(value)); return *this;}
56
58
61 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
62 inline bool BackupPlanIdHasBeenSet() const { return m_backupPlanIdHasBeenSet; }
63 template<typename BackupPlanIdT = Aws::String>
64 void SetBackupPlanId(BackupPlanIdT&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::forward<BackupPlanIdT>(value); }
65 template<typename BackupPlanIdT = Aws::String>
66 BackupPlansListMember& WithBackupPlanId(BackupPlanIdT&& value) { SetBackupPlanId(std::forward<BackupPlanIdT>(value)); return *this;}
68
70
76 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
77 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
78 template<typename CreationDateT = Aws::Utils::DateTime>
79 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
80 template<typename CreationDateT = Aws::Utils::DateTime>
81 BackupPlansListMember& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
83
85
91 inline const Aws::Utils::DateTime& GetDeletionDate() const { return m_deletionDate; }
92 inline bool DeletionDateHasBeenSet() const { return m_deletionDateHasBeenSet; }
93 template<typename DeletionDateT = Aws::Utils::DateTime>
94 void SetDeletionDate(DeletionDateT&& value) { m_deletionDateHasBeenSet = true; m_deletionDate = std::forward<DeletionDateT>(value); }
95 template<typename DeletionDateT = Aws::Utils::DateTime>
96 BackupPlansListMember& WithDeletionDate(DeletionDateT&& value) { SetDeletionDate(std::forward<DeletionDateT>(value)); return *this;}
98
100
104 inline const Aws::String& GetVersionId() const { return m_versionId; }
105 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
106 template<typename VersionIdT = Aws::String>
107 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
108 template<typename VersionIdT = Aws::String>
109 BackupPlansListMember& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
111
113
116 inline const Aws::String& GetBackupPlanName() const { return m_backupPlanName; }
117 inline bool BackupPlanNameHasBeenSet() const { return m_backupPlanNameHasBeenSet; }
118 template<typename BackupPlanNameT = Aws::String>
119 void SetBackupPlanName(BackupPlanNameT&& value) { m_backupPlanNameHasBeenSet = true; m_backupPlanName = std::forward<BackupPlanNameT>(value); }
120 template<typename BackupPlanNameT = Aws::String>
121 BackupPlansListMember& WithBackupPlanName(BackupPlanNameT&& value) { SetBackupPlanName(std::forward<BackupPlanNameT>(value)); return *this;}
123
125
131 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
132 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
133 template<typename CreatorRequestIdT = Aws::String>
134 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
135 template<typename CreatorRequestIdT = Aws::String>
136 BackupPlansListMember& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
138
140
146 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
147 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
148 template<typename LastExecutionDateT = Aws::Utils::DateTime>
149 void SetLastExecutionDate(LastExecutionDateT&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::forward<LastExecutionDateT>(value); }
150 template<typename LastExecutionDateT = Aws::Utils::DateTime>
151 BackupPlansListMember& WithLastExecutionDate(LastExecutionDateT&& value) { SetLastExecutionDate(std::forward<LastExecutionDateT>(value)); return *this;}
153
155
158 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const { return m_advancedBackupSettings; }
159 inline bool AdvancedBackupSettingsHasBeenSet() const { return m_advancedBackupSettingsHasBeenSet; }
160 template<typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
161 void SetAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::forward<AdvancedBackupSettingsT>(value); }
162 template<typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
163 BackupPlansListMember& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value)); return *this;}
164 template<typename AdvancedBackupSettingsT = AdvancedBackupSetting>
165 BackupPlansListMember& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value)); return *this; }
167 private:
168
169 Aws::String m_backupPlanArn;
170 bool m_backupPlanArnHasBeenSet = false;
171
172 Aws::String m_backupPlanId;
173 bool m_backupPlanIdHasBeenSet = false;
174
175 Aws::Utils::DateTime m_creationDate{};
176 bool m_creationDateHasBeenSet = false;
177
178 Aws::Utils::DateTime m_deletionDate{};
179 bool m_deletionDateHasBeenSet = false;
180
181 Aws::String m_versionId;
182 bool m_versionIdHasBeenSet = false;
183
184 Aws::String m_backupPlanName;
185 bool m_backupPlanNameHasBeenSet = false;
186
187 Aws::String m_creatorRequestId;
188 bool m_creatorRequestIdHasBeenSet = false;
189
190 Aws::Utils::DateTime m_lastExecutionDate{};
191 bool m_lastExecutionDateHasBeenSet = false;
192
193 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
194 bool m_advancedBackupSettingsHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace Backup
199} // namespace Aws
const Aws::Utils::DateTime & GetDeletionDate() const
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API BackupPlansListMember()=default
BackupPlansListMember & WithCreationDate(CreationDateT &&value)
BackupPlansListMember & WithAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
BackupPlansListMember & AddAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
BackupPlansListMember & WithBackupPlanId(BackupPlanIdT &&value)
void SetCreatorRequestId(CreatorRequestIdT &&value)
AWS_BACKUP_API BackupPlansListMember & operator=(Aws::Utils::Json::JsonView jsonValue)
BackupPlansListMember & WithLastExecutionDate(LastExecutionDateT &&value)
BackupPlansListMember & WithVersionId(VersionIdT &&value)
void SetBackupPlanName(BackupPlanNameT &&value)
BackupPlansListMember & WithDeletionDate(DeletionDateT &&value)
AWS_BACKUP_API BackupPlansListMember(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationDate() const
BackupPlansListMember & WithBackupPlanName(BackupPlanNameT &&value)
const Aws::Utils::DateTime & GetLastExecutionDate() const
BackupPlansListMember & WithCreatorRequestId(CreatorRequestIdT &&value)
void SetAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
void SetLastExecutionDate(LastExecutionDateT &&value)
BackupPlansListMember & WithBackupPlanArn(BackupPlanArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue