AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateBackupPlanResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/AdvancedBackupSetting.h>
9#include <aws/core/http/HttpResponse.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 CreateBackupPlanResult() = 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 CreateBackupPlanResult& 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 CreateBackupPlanResult& 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 CreateBackupPlanResult& 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
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 CreateBackupPlanResult& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
120 SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value));
121 return *this;
122 }
123 template <typename AdvancedBackupSettingsT = AdvancedBackupSetting>
124 CreateBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
125 m_advancedBackupSettingsHasBeenSet = true;
126 m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value));
127 return *this;
128 }
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template <typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) {
136 m_requestIdHasBeenSet = true;
137 m_requestId = std::forward<RequestIdT>(value);
138 }
139 template <typename RequestIdT = Aws::String>
141 SetRequestId(std::forward<RequestIdT>(value));
142 return *this;
143 }
145 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
146
147 private:
148 Aws::String m_backupPlanId;
149
150 Aws::String m_backupPlanArn;
151
152 Aws::Utils::DateTime m_creationDate{};
153
154 Aws::String m_versionId;
155
156 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
157
158 Aws::String m_requestId;
159 Aws::Http::HttpResponseCode m_HttpResponseCode;
160 bool m_backupPlanIdHasBeenSet = false;
161 bool m_backupPlanArnHasBeenSet = false;
162 bool m_creationDateHasBeenSet = false;
163 bool m_versionIdHasBeenSet = false;
164 bool m_advancedBackupSettingsHasBeenSet = false;
165 bool m_requestIdHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Backup
170} // namespace Aws
AWS_BACKUP_API CreateBackupPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateBackupPlanResult & WithAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
CreateBackupPlanResult & WithRequestId(RequestIdT &&value)
AWS_BACKUP_API CreateBackupPlanResult()=default
CreateBackupPlanResult & AddAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
CreateBackupPlanResult & WithCreationDate(CreationDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreationDate() const
CreateBackupPlanResult & WithBackupPlanArn(BackupPlanArnT &&value)
CreateBackupPlanResult & WithBackupPlanId(BackupPlanIdT &&value)
CreateBackupPlanResult & WithVersionId(VersionIdT &&value)
void SetAdvancedBackupSettings(AdvancedBackupSettingsT &&value)
AWS_BACKUP_API CreateBackupPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< AdvancedBackupSetting > & GetAdvancedBackupSettings() 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