AWS SDK for C++

AWS SDK for C++ Version 1.11.756

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/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Backup {
25namespace Model {
27 public:
28 AWS_BACKUP_API CreateBackupPlanResult() = default;
31
33
36 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
37 template <typename BackupPlanIdT = Aws::String>
38 void SetBackupPlanId(BackupPlanIdT&& value) {
39 m_backupPlanIdHasBeenSet = true;
40 m_backupPlanId = std::forward<BackupPlanIdT>(value);
41 }
42 template <typename BackupPlanIdT = Aws::String>
43 CreateBackupPlanResult& WithBackupPlanId(BackupPlanIdT&& value) {
44 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetBackupPlanArn() const { return m_backupPlanArn; }
56 template <typename BackupPlanArnT = Aws::String>
57 void SetBackupPlanArn(BackupPlanArnT&& value) {
58 m_backupPlanArnHasBeenSet = true;
59 m_backupPlanArn = std::forward<BackupPlanArnT>(value);
60 }
61 template <typename BackupPlanArnT = Aws::String>
62 CreateBackupPlanResult& WithBackupPlanArn(BackupPlanArnT&& value) {
63 SetBackupPlanArn(std::forward<BackupPlanArnT>(value));
64 return *this;
65 }
67
69
75 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
76 template <typename CreationDateT = Aws::Utils::DateTime>
77 void SetCreationDate(CreationDateT&& value) {
78 m_creationDateHasBeenSet = true;
79 m_creationDate = std::forward<CreationDateT>(value);
80 }
81 template <typename CreationDateT = Aws::Utils::DateTime>
82 CreateBackupPlanResult& WithCreationDate(CreationDateT&& value) {
83 SetCreationDate(std::forward<CreationDateT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetVersionId() const { return m_versionId; }
94 template <typename VersionIdT = Aws::String>
95 void SetVersionId(VersionIdT&& value) {
96 m_versionIdHasBeenSet = true;
97 m_versionId = std::forward<VersionIdT>(value);
98 }
99 template <typename VersionIdT = Aws::String>
101 SetVersionId(std::forward<VersionIdT>(value));
102 return *this;
103 }
105
107
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 CreateBackupPlanResult& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
119 SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value));
120 return *this;
121 }
122 template <typename AdvancedBackupSettingsT = AdvancedBackupSetting>
123 CreateBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) {
124 m_advancedBackupSettingsHasBeenSet = true;
125 m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 template <typename RequestIdT = Aws::String>
134 void SetRequestId(RequestIdT&& value) {
135 m_requestIdHasBeenSet = true;
136 m_requestId = std::forward<RequestIdT>(value);
137 }
138 template <typename RequestIdT = Aws::String>
140 SetRequestId(std::forward<RequestIdT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_backupPlanId;
146
147 Aws::String m_backupPlanArn;
148
149 Aws::Utils::DateTime m_creationDate{};
150
151 Aws::String m_versionId;
152
153 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
154
155 Aws::String m_requestId;
156 bool m_backupPlanIdHasBeenSet = false;
157 bool m_backupPlanArnHasBeenSet = false;
158 bool m_creationDateHasBeenSet = false;
159 bool m_versionIdHasBeenSet = false;
160 bool m_advancedBackupSettingsHasBeenSet = false;
161 bool m_requestIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Backup
166} // 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)
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