AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateBackupPlanResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/backup/model/AdvancedBackupSetting.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Backup
27{
28namespace Model
29{
31 {
32 public:
33 AWS_BACKUP_API CreateBackupPlanResult() = default;
36
37
39
42 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
43 template<typename BackupPlanIdT = Aws::String>
44 void SetBackupPlanId(BackupPlanIdT&& value) { m_backupPlanIdHasBeenSet = true; m_backupPlanId = std::forward<BackupPlanIdT>(value); }
45 template<typename BackupPlanIdT = Aws::String>
46 CreateBackupPlanResult& WithBackupPlanId(BackupPlanIdT&& value) { SetBackupPlanId(std::forward<BackupPlanIdT>(value)); return *this;}
48
50
55 inline const Aws::String& GetBackupPlanArn() const { return m_backupPlanArn; }
56 template<typename BackupPlanArnT = Aws::String>
57 void SetBackupPlanArn(BackupPlanArnT&& value) { m_backupPlanArnHasBeenSet = true; m_backupPlanArn = std::forward<BackupPlanArnT>(value); }
58 template<typename BackupPlanArnT = Aws::String>
59 CreateBackupPlanResult& WithBackupPlanArn(BackupPlanArnT&& value) { SetBackupPlanArn(std::forward<BackupPlanArnT>(value)); return *this;}
61
63
69 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
70 template<typename CreationDateT = Aws::Utils::DateTime>
71 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
72 template<typename CreationDateT = Aws::Utils::DateTime>
73 CreateBackupPlanResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
75
77
81 inline const Aws::String& GetVersionId() const { return m_versionId; }
82 template<typename VersionIdT = Aws::String>
83 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
84 template<typename VersionIdT = Aws::String>
85 CreateBackupPlanResult& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
87
89
93 inline const Aws::Vector<AdvancedBackupSetting>& GetAdvancedBackupSettings() const { return m_advancedBackupSettings; }
94 template<typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
95 void SetAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings = std::forward<AdvancedBackupSettingsT>(value); }
96 template<typename AdvancedBackupSettingsT = Aws::Vector<AdvancedBackupSetting>>
97 CreateBackupPlanResult& WithAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { SetAdvancedBackupSettings(std::forward<AdvancedBackupSettingsT>(value)); return *this;}
98 template<typename AdvancedBackupSettingsT = AdvancedBackupSetting>
99 CreateBackupPlanResult& AddAdvancedBackupSettings(AdvancedBackupSettingsT&& value) { m_advancedBackupSettingsHasBeenSet = true; m_advancedBackupSettings.emplace_back(std::forward<AdvancedBackupSettingsT>(value)); return *this; }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template<typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
107 template<typename RequestIdT = Aws::String>
108 CreateBackupPlanResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
110 private:
111
112 Aws::String m_backupPlanId;
113 bool m_backupPlanIdHasBeenSet = false;
114
115 Aws::String m_backupPlanArn;
116 bool m_backupPlanArnHasBeenSet = false;
117
118 Aws::Utils::DateTime m_creationDate{};
119 bool m_creationDateHasBeenSet = false;
120
121 Aws::String m_versionId;
122 bool m_versionIdHasBeenSet = false;
123
124 Aws::Vector<AdvancedBackupSetting> m_advancedBackupSettings;
125 bool m_advancedBackupSettingsHasBeenSet = false;
126
127 Aws::String m_requestId;
128 bool m_requestIdHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Backup
133} // 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