AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Backup {
27namespace Model {
29 public:
30 AWS_BACKUP_API UpdateBackupPlanResult() = default;
33
35
38 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
39 template <typename BackupPlanIdT = Aws::String>
40 void SetBackupPlanId(BackupPlanIdT&& value) {
41 m_backupPlanIdHasBeenSet = true;
42 m_backupPlanId = std::forward<BackupPlanIdT>(value);
43 }
44 template <typename BackupPlanIdT = Aws::String>
45 UpdateBackupPlanResult& WithBackupPlanId(BackupPlanIdT&& value) {
46 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetBackupPlanArn() const { return m_backupPlanArn; }
58 template <typename BackupPlanArnT = Aws::String>
59 void SetBackupPlanArn(BackupPlanArnT&& value) {
60 m_backupPlanArnHasBeenSet = true;
61 m_backupPlanArn = std::forward<BackupPlanArnT>(value);
62 }
63 template <typename BackupPlanArnT = Aws::String>
64 UpdateBackupPlanResult& WithBackupPlanArn(BackupPlanArnT&& value) {
65 SetBackupPlanArn(std::forward<BackupPlanArnT>(value));
66 return *this;
67 }
69
71
77 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
78 template <typename CreationDateT = Aws::Utils::DateTime>
79 void SetCreationDate(CreationDateT&& value) {
80 m_creationDateHasBeenSet = true;
81 m_creationDate = std::forward<CreationDateT>(value);
82 }
83 template <typename CreationDateT = Aws::Utils::DateTime>
84 UpdateBackupPlanResult& WithCreationDate(CreationDateT&& value) {
85 SetCreationDate(std::forward<CreationDateT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetVersionId() const { return m_versionId; }
96 template <typename VersionIdT = Aws::String>
97 void SetVersionId(VersionIdT&& value) {
98 m_versionIdHasBeenSet = true;
99 m_versionId = std::forward<VersionIdT>(value);
100 }
101 template <typename VersionIdT = Aws::String>
103 SetVersionId(std::forward<VersionIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const { return m_advancedBackupSettings; }
113 template <typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
114 void SetAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
115 m_advancedBackupSettingsHasBeenSet = true;
116 m_advancedBackupSettings = std::forward<AdvancedBackupSettingsT>(value);
117 }
118 template <typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
119 UpdateBackupPlanResult& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
120 SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value));
121 return *this;
122 }
123 template <typename AdvancedBackupSettingsT = AdvancedBackupSetting>
124 UpdateBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
125 m_advancedBackupSettingsHasBeenSet = true;
126 m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<ScanSetting>& GetScanSettings() const { return m_scanSettings; }
137 template <typename ScanSettingsT = Aws::Vector<ScanSetting>>
138 void SetScanSettings(ScanSettingsT&& value) {
139 m_scanSettingsHasBeenSet = true;
140 m_scanSettings = std::forward<ScanSettingsT>(value);
141 }
142 template <typename ScanSettingsT = Aws::Vector<ScanSetting>>
143 UpdateBackupPlanResult& WithScanSettings(ScanSettingsT&& value) {
144 SetScanSettings(std::forward<ScanSettingsT>(value));
145 return *this;
146 }
147 template <typename ScanSettingsT = ScanSetting>
148 UpdateBackupPlanResult& AddScanSettings(ScanSettingsT&& value) {
149 m_scanSettingsHasBeenSet = true;
150 m_scanSettings.emplace_back(std::forward<ScanSettingsT>(value));
151 return *this;
152 }
154
156
157 inline const Aws::String& GetRequestId() const { return m_requestId; }
158 template <typename RequestIdT = Aws::String>
159 void SetRequestId(RequestIdT&& value) {
160 m_requestIdHasBeenSet = true;
161 m_requestId = std::forward<RequestIdT>(value);
162 }
163 template <typename RequestIdT = Aws::String>
165 SetRequestId(std::forward<RequestIdT>(value));
166 return *this;
167 }
169 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
170
171 private:
172 Aws::String m_backupPlanId;
173
174 Aws::String m_backupPlanArn;
175
176 Aws::Utils::DateTime m_creationDate{};
177
178 Aws::String m_versionId;
179
180 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
181
182 Aws::Vector<ScanSetting> m_scanSettings;
183
184 Aws::String m_requestId;
185 Aws::Http::HttpResponseCode m_HttpResponseCode;
186 bool m_backupPlanIdHasBeenSet = false;
187 bool m_backupPlanArnHasBeenSet = false;
188 bool m_creationDateHasBeenSet = false;
189 bool m_versionIdHasBeenSet = false;
190 bool m_advancedBackupSettingsHasBeenSet = false;
191 bool m_scanSettingsHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace Backup
197} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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