AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetBackupPlanResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/BackupPlan.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/backup/model/AdvancedBackupSetting.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Backup
28{
29namespace Model
30{
32 {
33 public:
34 AWS_BACKUP_API GetBackupPlanResult() = default;
37
38
40
44 inline const BackupPlan& GetBackupPlan() const { return m_backupPlan; }
45 template<typename BackupPlanT = BackupPlan>
46 void SetBackupPlan(BackupPlanT&& value) { m_backupPlanHasBeenSet = true; m_backupPlan = std::forward<BackupPlanT>(value); }
47 template<typename BackupPlanT = BackupPlan>
48 GetBackupPlanResult& WithBackupPlan(BackupPlanT&& value) { SetBackupPlan(std::forward<BackupPlanT>(value)); return *this;}
50
52
55 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
56 template<typename BackupPlanIdT = Aws::String>
57 void SetBackupPlanId(BackupPlanIdT&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::forward<BackupPlanIdT>(value); }
58 template<typename BackupPlanIdT = Aws::String>
59 GetBackupPlanResult& WithBackupPlanId(BackupPlanIdT&& value) { SetBackupPlanId(std::forward<BackupPlanIdT>(value)); return *this;}
61
63
68 inline const Aws::String& GetBackupPlanArn() const { return m_backupPlanArn; }
69 template<typename BackupPlanArnT = Aws::String>
70 void SetBackupPlanArn(BackupPlanArnT&& value) { m_backupPlanArnHasBeenSet = true; m_backupPlanArn = std::forward<BackupPlanArnT>(value); }
71 template<typename BackupPlanArnT = Aws::String>
72 GetBackupPlanResult& WithBackupPlanArn(BackupPlanArnT&& value) { SetBackupPlanArn(std::forward<BackupPlanArnT>(value)); return *this;}
74
76
80 inline const Aws::String& GetVersionId() const { return m_versionId; }
81 template<typename VersionIdT = Aws::String>
82 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
83 template<typename VersionIdT = Aws::String>
84 GetBackupPlanResult& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
86
88
92 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
93 template<typename CreatorRequestIdT = Aws::String>
94 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
95 template<typename CreatorRequestIdT = Aws::String>
96 GetBackupPlanResult& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
98
100
106 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
107 template<typename CreationDateT = Aws::Utils::DateTime>
108 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
109 template<typename CreationDateT = Aws::Utils::DateTime>
110 GetBackupPlanResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
112
114
120 inline const Aws::Utils::DateTime& GetDeletionDate() const { return m_deletionDate; }
121 template<typename DeletionDateT = Aws::Utils::DateTime>
122 void SetDeletionDate(DeletionDateT&& value) { m_deletionDateHasBeenSet = true; m_deletionDate = std::forward<DeletionDateT>(value); }
123 template<typename DeletionDateT = Aws::Utils::DateTime>
124 GetBackupPlanResult& WithDeletionDate(DeletionDateT&& value) { SetDeletionDate(std::forward<DeletionDateT>(value)); return *this;}
126
128
134 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
135 template<typename LastExecutionDateT = Aws::Utils::DateTime>
136 void SetLastExecutionDate(LastExecutionDateT&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::forward<LastExecutionDateT>(value); }
137 template<typename LastExecutionDateT = Aws::Utils::DateTime>
138 GetBackupPlanResult& WithLastExecutionDate(LastExecutionDateT&& value) { SetLastExecutionDate(std::forward<LastExecutionDateT>(value)); return *this;}
140
142
146 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const { return m_advancedBackupSettings; }
147 template<typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
148 void SetAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::forward<AdvancedBackupSettingsT>(value); }
149 template<typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
150 GetBackupPlanResult& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value)); return *this;}
151 template<typename AdvancedBackupSettingsT = AdvancedBackupSetting>
152 GetBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value)); return *this; }
154
156
157 inline const Aws::String& GetRequestId() const { return m_requestId; }
158 template<typename RequestIdT = Aws::String>
159 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
160 template<typename RequestIdT = Aws::String>
161 GetBackupPlanResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
163 private:
164
165 BackupPlan m_backupPlan;
166 bool m_backupPlanHasBeenSet = false;
167
168 Aws::String m_backupPlanId;
169 bool m_backupPlanIdHasBeenSet = false;
170
171 Aws::String m_backupPlanArn;
172 bool m_backupPlanArnHasBeenSet = false;
173
174 Aws::String m_versionId;
175 bool m_versionIdHasBeenSet = false;
176
177 Aws::String m_creatorRequestId;
178 bool m_creatorRequestIdHasBeenSet = false;
179
180 Aws::Utils::DateTime m_creationDate{};
181 bool m_creationDateHasBeenSet = false;
182
183 Aws::Utils::DateTime m_deletionDate{};
184 bool m_deletionDateHasBeenSet = false;
185
186 Aws::Utils::DateTime m_lastExecutionDate{};
187 bool m_lastExecutionDateHasBeenSet = false;
188
189 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
190 bool m_advancedBackupSettingsHasBeenSet = false;
191
192 Aws::String m_requestId;
193 bool m_requestIdHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace Backup
198} // namespace Aws
GetBackupPlanResult & WithDeletionDate(DeletionDateT &&value)
GetBackupPlanResult & AddAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
GetBackupPlanResult & WithBackupPlan(BackupPlanT &&value)
void SetDeletionDate(DeletionDateT &&value)
GetBackupPlanResult & WithCreatorRequestId(CreatorRequestIdT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() const
GetBackupPlanResult & WithAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
AWS_BACKUP_API GetBackupPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBackupPlanResult & WithVersionId(VersionIdT &&value)
AWS_BACKUP_API GetBackupPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatorRequestId(CreatorRequestIdT &&value)
void SetLastExecutionDate(LastExecutionDateT &&value)
GetBackupPlanResult & WithCreationDate(CreationDateT &&value)
GetBackupPlanResult & WithLastExecutionDate(LastExecutionDateT &&value)
GetBackupPlanResult & WithBackupPlanId(BackupPlanIdT &&value)
AWS_BACKUP_API GetBackupPlanResult()=default
void SetBackupPlanId(BackupPlanIdT &&value)
void SetBackupPlanArn(BackupPlanArnT &&value)
GetBackupPlanResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetBackupPlanId() const
const Aws::String & GetBackupPlanArn() const
const Aws::Utils::DateTime & GetCreationDate() const
GetBackupPlanResult & WithBackupPlanArn(BackupPlanArnT &&value)
const Aws::Utils::DateTime & GetDeletionDate() const
void SetAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
const Aws::String & GetCreatorRequestId() const
const Aws::Utils::DateTime & GetLastExecutionDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue