AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
CreateBackupSelectionResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/http/HttpResponse.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 CreateBackupSelectionResult() = default;
30
32
36 inline const Aws::String& GetSelectionId() const { return m_selectionId; }
37 template <typename SelectionIdT = Aws::String>
38 void SetSelectionId(SelectionIdT&& value) {
39 m_selectionIdHasBeenSet = true;
40 m_selectionId = std::forward<SelectionIdT>(value);
41 }
42 template <typename SelectionIdT = Aws::String>
44 SetSelectionId(std::forward<SelectionIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetBackupPlanId() const { return m_backupPlanId; }
54 template <typename BackupPlanIdT = Aws::String>
55 void SetBackupPlanId(BackupPlanIdT&& value) {
56 m_backupPlanIdHasBeenSet = true;
57 m_backupPlanId = std::forward<BackupPlanIdT>(value);
58 }
59 template <typename BackupPlanIdT = Aws::String>
61 SetBackupPlanId(std::forward<BackupPlanIdT>(value));
62 return *this;
63 }
65
67
73 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
74 template <typename CreationDateT = Aws::Utils::DateTime>
75 void SetCreationDate(CreationDateT&& value) {
76 m_creationDateHasBeenSet = true;
77 m_creationDate = std::forward<CreationDateT>(value);
78 }
79 template <typename CreationDateT = Aws::Utils::DateTime>
81 SetCreationDate(std::forward<CreationDateT>(value));
82 return *this;
83 }
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template <typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) {
91 m_requestIdHasBeenSet = true;
92 m_requestId = std::forward<RequestIdT>(value);
93 }
94 template <typename RequestIdT = Aws::String>
96 SetRequestId(std::forward<RequestIdT>(value));
97 return *this;
98 }
100 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
101
102 private:
103 Aws::String m_selectionId;
104
105 Aws::String m_backupPlanId;
106
107 Aws::Utils::DateTime m_creationDate{};
108
109 Aws::String m_requestId;
110 Aws::Http::HttpResponseCode m_HttpResponseCode;
111 bool m_selectionIdHasBeenSet = false;
112 bool m_backupPlanIdHasBeenSet = false;
113 bool m_creationDateHasBeenSet = false;
114 bool m_requestIdHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Backup
119} // namespace Aws
AWS_BACKUP_API CreateBackupSelectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BACKUP_API CreateBackupSelectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateBackupSelectionResult & WithSelectionId(SelectionIdT &&value)
AWS_BACKUP_API CreateBackupSelectionResult()=default
CreateBackupSelectionResult & WithCreationDate(CreationDateT &&value)
CreateBackupSelectionResult & WithBackupPlanId(BackupPlanIdT &&value)
CreateBackupSelectionResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue