AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
StartBackupJobResult.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 StartBackupJobResult() = default;
30
32
35 inline const Aws::String& GetBackupJobId() const { return m_backupJobId; }
36 template <typename BackupJobIdT = Aws::String>
37 void SetBackupJobId(BackupJobIdT&& value) {
38 m_backupJobIdHasBeenSet = true;
39 m_backupJobId = std::forward<BackupJobIdT>(value);
40 }
41 template <typename BackupJobIdT = Aws::String>
42 StartBackupJobResult& WithBackupJobId(BackupJobIdT&& value) {
43 SetBackupJobId(std::forward<BackupJobIdT>(value));
44 return *this;
45 }
47
49
55 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
56 template <typename RecoveryPointArnT = Aws::String>
57 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
58 m_recoveryPointArnHasBeenSet = true;
59 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
60 }
61 template <typename RecoveryPointArnT = Aws::String>
62 StartBackupJobResult& WithRecoveryPointArn(RecoveryPointArnT&& value) {
63 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(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 StartBackupJobResult& WithCreationDate(CreationDateT&& value) {
83 SetCreationDate(std::forward<CreationDateT>(value));
84 return *this;
85 }
87
89
93 inline bool GetIsParent() const { return m_isParent; }
94 inline void SetIsParent(bool value) {
95 m_isParentHasBeenSet = true;
96 m_isParent = value;
97 }
98 inline StartBackupJobResult& WithIsParent(bool value) {
99 SetIsParent(value);
100 return *this;
101 }
103
105
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 template <typename RequestIdT = Aws::String>
108 void SetRequestId(RequestIdT&& value) {
109 m_requestIdHasBeenSet = true;
110 m_requestId = std::forward<RequestIdT>(value);
111 }
112 template <typename RequestIdT = Aws::String>
113 StartBackupJobResult& WithRequestId(RequestIdT&& value) {
114 SetRequestId(std::forward<RequestIdT>(value));
115 return *this;
116 }
118 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
119
120 private:
121 Aws::String m_backupJobId;
122
123 Aws::String m_recoveryPointArn;
124
125 Aws::Utils::DateTime m_creationDate{};
126
127 bool m_isParent{false};
128
129 Aws::String m_requestId;
130 Aws::Http::HttpResponseCode m_HttpResponseCode;
131 bool m_backupJobIdHasBeenSet = false;
132 bool m_recoveryPointArnHasBeenSet = false;
133 bool m_creationDateHasBeenSet = false;
134 bool m_isParentHasBeenSet = false;
135 bool m_requestIdHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Backup
140} // namespace Aws
AWS_BACKUP_API StartBackupJobResult()=default
void SetRecoveryPointArn(RecoveryPointArnT &&value)
StartBackupJobResult & WithIsParent(bool value)
StartBackupJobResult & WithRecoveryPointArn(RecoveryPointArnT &&value)
const Aws::String & GetRecoveryPointArn() const
StartBackupJobResult & WithRequestId(RequestIdT &&value)
AWS_BACKUP_API StartBackupJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
StartBackupJobResult & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AWS_BACKUP_API StartBackupJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartBackupJobResult & WithBackupJobId(BackupJobIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue