AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
StartBackupJobResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Backup {
23namespace Model {
25 public:
26 AWS_BACKUP_API StartBackupJobResult() = default;
29
31
34 inline const Aws::String& GetBackupJobId() const { return m_backupJobId; }
35 template <typename BackupJobIdT = Aws::String>
36 void SetBackupJobId(BackupJobIdT&& value) {
37 m_backupJobIdHasBeenSet = true;
38 m_backupJobId = std::forward<BackupJobIdT>(value);
39 }
40 template <typename BackupJobIdT = Aws::String>
41 StartBackupJobResult& WithBackupJobId(BackupJobIdT&& value) {
42 SetBackupJobId(std::forward<BackupJobIdT>(value));
43 return *this;
44 }
46
48
54 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
55 template <typename RecoveryPointArnT = Aws::String>
56 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
57 m_recoveryPointArnHasBeenSet = true;
58 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
59 }
60 template <typename RecoveryPointArnT = Aws::String>
61 StartBackupJobResult& WithRecoveryPointArn(RecoveryPointArnT&& value) {
62 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value));
63 return *this;
64 }
66
68
74 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
75 template <typename CreationDateT = Aws::Utils::DateTime>
76 void SetCreationDate(CreationDateT&& value) {
77 m_creationDateHasBeenSet = true;
78 m_creationDate = std::forward<CreationDateT>(value);
79 }
80 template <typename CreationDateT = Aws::Utils::DateTime>
81 StartBackupJobResult& WithCreationDate(CreationDateT&& value) {
82 SetCreationDate(std::forward<CreationDateT>(value));
83 return *this;
84 }
86
88
92 inline bool GetIsParent() const { return m_isParent; }
93 inline void SetIsParent(bool value) {
94 m_isParentHasBeenSet = true;
95 m_isParent = value;
96 }
97 inline StartBackupJobResult& WithIsParent(bool value) {
98 SetIsParent(value);
99 return *this;
100 }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template <typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) {
108 m_requestIdHasBeenSet = true;
109 m_requestId = std::forward<RequestIdT>(value);
110 }
111 template <typename RequestIdT = Aws::String>
112 StartBackupJobResult& WithRequestId(RequestIdT&& value) {
113 SetRequestId(std::forward<RequestIdT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_backupJobId;
119
120 Aws::String m_recoveryPointArn;
121
122 Aws::Utils::DateTime m_creationDate{};
123
124 bool m_isParent{false};
125
126 Aws::String m_requestId;
127 bool m_backupJobIdHasBeenSet = false;
128 bool m_recoveryPointArnHasBeenSet = false;
129 bool m_creationDateHasBeenSet = false;
130 bool m_isParentHasBeenSet = false;
131 bool m_requestIdHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Backup
136} // 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)
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