AWS SDK for C++

AWS SDK for C++ Version 1.11.756

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/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Backup {
24namespace Model {
26 public:
27 AWS_BACKUP_API GetBackupSelectionResult() = default;
30
32
36 inline const BackupSelection& GetBackupSelection() const { return m_backupSelection; }
37 template <typename BackupSelectionT = BackupSelection>
38 void SetBackupSelection(BackupSelectionT&& value) {
39 m_backupSelectionHasBeenSet = true;
40 m_backupSelection = std::forward<BackupSelectionT>(value);
41 }
42 template <typename BackupSelectionT = BackupSelection>
43 GetBackupSelectionResult& WithBackupSelection(BackupSelectionT&& value) {
44 SetBackupSelection(std::forward<BackupSelectionT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetSelectionId() const { return m_selectionId; }
55 template <typename SelectionIdT = Aws::String>
56 void SetSelectionId(SelectionIdT&& value) {
57 m_selectionIdHasBeenSet = true;
58 m_selectionId = std::forward<SelectionIdT>(value);
59 }
60 template <typename SelectionIdT = Aws::String>
62 SetSelectionId(std::forward<SelectionIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
72 template <typename BackupPlanIdT = Aws::String>
73 void SetBackupPlanId(BackupPlanIdT&& value) {
74 m_backupPlanIdHasBeenSet = true;
75 m_backupPlanId = std::forward<BackupPlanIdT>(value);
76 }
77 template <typename BackupPlanIdT = Aws::String>
79 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
80 return *this;
81 }
83
85
91 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
92 template <typename CreationDateT = Aws::Utils::DateTime>
93 void SetCreationDate(CreationDateT&& value) {
94 m_creationDateHasBeenSet = true;
95 m_creationDate = std::forward<CreationDateT>(value);
96 }
97 template <typename CreationDateT = Aws::Utils::DateTime>
99 SetCreationDate(std::forward<CreationDateT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
110 template <typename CreatorRequestIdT = Aws::String>
111 void SetCreatorRequestId(CreatorRequestIdT&& value) {
112 m_creatorRequestIdHasBeenSet = true;
113 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
114 }
115 template <typename CreatorRequestIdT = Aws::String>
116 GetBackupSelectionResult& WithCreatorRequestId(CreatorRequestIdT&& value) {
117 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
118 return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136 private:
137 BackupSelection m_backupSelection;
138
139 Aws::String m_selectionId;
140
141 Aws::String m_backupPlanId;
142
143 Aws::Utils::DateTime m_creationDate{};
144
145 Aws::String m_creatorRequestId;
146
147 Aws::String m_requestId;
148 bool m_backupSelectionHasBeenSet = false;
149 bool m_selectionIdHasBeenSet = false;
150 bool m_backupPlanIdHasBeenSet = false;
151 bool m_creationDateHasBeenSet = false;
152 bool m_creatorRequestIdHasBeenSet = false;
153 bool m_requestIdHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Backup
158} // namespace Aws
GetBackupSelectionResult & WithBackupPlanId(BackupPlanIdT &&value)
GetBackupSelectionResult & WithSelectionId(SelectionIdT &&value)
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