AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
UpdateBackupPlanResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/AdvancedBackupSetting.h>
9#include <aws/backup/model/ScanSetting.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Backup {
26namespace Model {
28 public:
29 AWS_BACKUP_API UpdateBackupPlanResult() = default;
32
34
37 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
38 template <typename BackupPlanIdT = Aws::String>
39 void SetBackupPlanId(BackupPlanIdT&& value) {
40 m_backupPlanIdHasBeenSet = true;
41 m_backupPlanId = std::forward<BackupPlanIdT>(value);
42 }
43 template <typename BackupPlanIdT = Aws::String>
44 UpdateBackupPlanResult& WithBackupPlanId(BackupPlanIdT&& value) {
45 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetBackupPlanArn() const { return m_backupPlanArn; }
57 template <typename BackupPlanArnT = Aws::String>
58 void SetBackupPlanArn(BackupPlanArnT&& value) {
59 m_backupPlanArnHasBeenSet = true;
60 m_backupPlanArn = std::forward<BackupPlanArnT>(value);
61 }
62 template <typename BackupPlanArnT = Aws::String>
63 UpdateBackupPlanResult& WithBackupPlanArn(BackupPlanArnT&& value) {
64 SetBackupPlanArn(std::forward<BackupPlanArnT>(value));
65 return *this;
66 }
68
70
76 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
77 template <typename CreationDateT = Aws::Utils::DateTime>
78 void SetCreationDate(CreationDateT&& value) {
79 m_creationDateHasBeenSet = true;
80 m_creationDate = std::forward<CreationDateT>(value);
81 }
82 template <typename CreationDateT = Aws::Utils::DateTime>
83 UpdateBackupPlanResult& WithCreationDate(CreationDateT&& value) {
84 SetCreationDate(std::forward<CreationDateT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetVersionId() const { return m_versionId; }
95 template <typename VersionIdT = Aws::String>
96 void SetVersionId(VersionIdT&& value) {
97 m_versionIdHasBeenSet = true;
98 m_versionId = std::forward<VersionIdT>(value);
99 }
100 template <typename VersionIdT = Aws::String>
102 SetVersionId(std::forward<VersionIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const { return m_advancedBackupSettings; }
112 template <typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
113 void SetAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
114 m_advancedBackupSettingsHasBeenSet = true;
115 m_advancedBackupSettings = std::forward<AdvancedBackupSettingsT>(value);
116 }
117 template <typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
118 UpdateBackupPlanResult& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
119 SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value));
120 return *this;
121 }
122 template <typename AdvancedBackupSettingsT = AdvancedBackupSetting>
123 UpdateBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
124 m_advancedBackupSettingsHasBeenSet = true;
125 m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Vector<ScanSetting>& GetScanSettings() const { return m_scanSettings; }
136 template <typename ScanSettingsT = Aws::Vector<ScanSetting>>
137 void SetScanSettings(ScanSettingsT&& value) {
138 m_scanSettingsHasBeenSet = true;
139 m_scanSettings = std::forward<ScanSettingsT>(value);
140 }
141 template <typename ScanSettingsT = Aws::Vector<ScanSetting>>
142 UpdateBackupPlanResult& WithScanSettings(ScanSettingsT&& value) {
143 SetScanSettings(std::forward<ScanSettingsT>(value));
144 return *this;
145 }
146 template <typename ScanSettingsT = ScanSetting>
147 UpdateBackupPlanResult& AddScanSettings(ScanSettingsT&& value) {
148 m_scanSettingsHasBeenSet = true;
149 m_scanSettings.emplace_back(std::forward<ScanSettingsT>(value));
150 return *this;
151 }
153
155
156 inline const Aws::String& GetRequestId() const { return m_requestId; }
157 template <typename RequestIdT = Aws::String>
158 void SetRequestId(RequestIdT&& value) {
159 m_requestIdHasBeenSet = true;
160 m_requestId = std::forward<RequestIdT>(value);
161 }
162 template <typename RequestIdT = Aws::String>
164 SetRequestId(std::forward<RequestIdT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_backupPlanId;
170
171 Aws::String m_backupPlanArn;
172
173 Aws::Utils::DateTime m_creationDate{};
174
175 Aws::String m_versionId;
176
177 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
178
179 Aws::Vector<ScanSetting> m_scanSettings;
180
181 Aws::String m_requestId;
182 bool m_backupPlanIdHasBeenSet = false;
183 bool m_backupPlanArnHasBeenSet = false;
184 bool m_creationDateHasBeenSet = false;
185 bool m_versionIdHasBeenSet = false;
186 bool m_advancedBackupSettingsHasBeenSet = false;
187 bool m_scanSettingsHasBeenSet = false;
188 bool m_requestIdHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Backup
193} // namespace Aws
void SetAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
UpdateBackupPlanResult & WithBackupPlanArn(BackupPlanArnT &&value)
UpdateBackupPlanResult & WithVersionId(VersionIdT &&value)
UpdateBackupPlanResult & WithCreationDate(CreationDateT &&value)
UpdateBackupPlanResult & WithRequestId(RequestIdT &&value)
UpdateBackupPlanResult & WithBackupPlanId(BackupPlanIdT &&value)
AWS_BACKUP_API UpdateBackupPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ScanSetting > & GetScanSettings() const
UpdateBackupPlanResult & WithScanSettings(ScanSettingsT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AWS_BACKUP_API UpdateBackupPlanResult()=default
UpdateBackupPlanResult & AddAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
UpdateBackupPlanResult & AddScanSettings(ScanSettingsT &&value)
AWS_BACKUP_API UpdateBackupPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateBackupPlanResult & WithAdvancedBackupSettings(AdvancedBackupSettingsT &&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