AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetBackupSelectionResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/BackupSelection.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
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 GetBackupSelectionResult() = default;
31
33
37 inline const BackupSelection& GetBackupSelection() const { return m_backupSelection; }
38 template <typename BackupSelectionT = BackupSelection>
39 void SetBackupSelection(BackupSelectionT&& value) {
40 m_backupSelectionHasBeenSet = true;
41 m_backupSelection = std::forward<BackupSelectionT>(value);
42 }
43 template <typename BackupSelectionT = BackupSelection>
44 GetBackupSelectionResult& WithBackupSelection(BackupSelectionT&& value) {
45 SetBackupSelection(std::forward<BackupSelectionT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetSelectionId() const { return m_selectionId; }
56 template <typename SelectionIdT = Aws::String>
57 void SetSelectionId(SelectionIdT&& value) {
58 m_selectionIdHasBeenSet = true;
59 m_selectionId = std::forward<SelectionIdT>(value);
60 }
61 template <typename SelectionIdT = Aws::String>
63 SetSelectionId(std::forward<SelectionIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
73 template <typename BackupPlanIdT = Aws::String>
74 void SetBackupPlanId(BackupPlanIdT&& value) {
75 m_backupPlanIdHasBeenSet = true;
76 m_backupPlanId = std::forward<BackupPlanIdT>(value);
77 }
78 template <typename BackupPlanIdT = Aws::String>
80 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
81 return *this;
82 }
84
86
92 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
93 template <typename CreationDateT = Aws::Utils::DateTime>
94 void SetCreationDate(CreationDateT&& value) {
95 m_creationDateHasBeenSet = true;
96 m_creationDate = std::forward<CreationDateT>(value);
97 }
98 template <typename CreationDateT = Aws::Utils::DateTime>
100 SetCreationDate(std::forward<CreationDateT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
111 template <typename CreatorRequestIdT = Aws::String>
112 void SetCreatorRequestId(CreatorRequestIdT&& value) {
113 m_creatorRequestIdHasBeenSet = true;
114 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
115 }
116 template <typename CreatorRequestIdT = Aws::String>
117 GetBackupSelectionResult& WithCreatorRequestId(CreatorRequestIdT&& value) {
118 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template <typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) {
128 m_requestIdHasBeenSet = true;
129 m_requestId = std::forward<RequestIdT>(value);
130 }
131 template <typename RequestIdT = Aws::String>
133 SetRequestId(std::forward<RequestIdT>(value));
134 return *this;
135 }
137 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
138
139 private:
140 BackupSelection m_backupSelection;
141
142 Aws::String m_selectionId;
143
144 Aws::String m_backupPlanId;
145
146 Aws::Utils::DateTime m_creationDate{};
147
148 Aws::String m_creatorRequestId;
149
150 Aws::String m_requestId;
151 Aws::Http::HttpResponseCode m_HttpResponseCode;
152 bool m_backupSelectionHasBeenSet = false;
153 bool m_selectionIdHasBeenSet = false;
154 bool m_backupPlanIdHasBeenSet = false;
155 bool m_creationDateHasBeenSet = false;
156 bool m_creatorRequestIdHasBeenSet = false;
157 bool m_requestIdHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Backup
162} // namespace Aws
GetBackupSelectionResult & WithBackupPlanId(BackupPlanIdT &&value)
GetBackupSelectionResult & WithSelectionId(SelectionIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetBackupSelectionResult & WithCreationDate(CreationDateT &&value)
AWS_BACKUP_API GetBackupSelectionResult()=default
const Aws::Utils::DateTime & GetCreationDate() const
GetBackupSelectionResult & WithRequestId(RequestIdT &&value)
GetBackupSelectionResult & WithBackupSelection(BackupSelectionT &&value)
AWS_BACKUP_API GetBackupSelectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BACKUP_API GetBackupSelectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBackupSelectionResult & WithCreatorRequestId(CreatorRequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue