AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BackupSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/BackupStatus.h>
11#include <aws/dynamodb/model/BackupType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB {
23namespace Model {
24
31 public:
32 AWS_DYNAMODB_API BackupSummary() = default;
33 AWS_DYNAMODB_API BackupSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTableName() const { return m_tableName; }
42 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
43 template <typename TableNameT = Aws::String>
44 void SetTableName(TableNameT&& value) {
45 m_tableNameHasBeenSet = true;
46 m_tableName = std::forward<TableNameT>(value);
47 }
48 template <typename TableNameT = Aws::String>
49 BackupSummary& WithTableName(TableNameT&& value) {
50 SetTableName(std::forward<TableNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTableId() const { return m_tableId; }
60 inline bool TableIdHasBeenSet() const { return m_tableIdHasBeenSet; }
61 template <typename TableIdT = Aws::String>
62 void SetTableId(TableIdT&& value) {
63 m_tableIdHasBeenSet = true;
64 m_tableId = std::forward<TableIdT>(value);
65 }
66 template <typename TableIdT = Aws::String>
67 BackupSummary& WithTableId(TableIdT&& value) {
68 SetTableId(std::forward<TableIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTableArn() const { return m_tableArn; }
78 inline bool TableArnHasBeenSet() const { return m_tableArnHasBeenSet; }
79 template <typename TableArnT = Aws::String>
80 void SetTableArn(TableArnT&& value) {
81 m_tableArnHasBeenSet = true;
82 m_tableArn = std::forward<TableArnT>(value);
83 }
84 template <typename TableArnT = Aws::String>
85 BackupSummary& WithTableArn(TableArnT&& value) {
86 SetTableArn(std::forward<TableArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetBackupArn() const { return m_backupArn; }
96 inline bool BackupArnHasBeenSet() const { return m_backupArnHasBeenSet; }
97 template <typename BackupArnT = Aws::String>
98 void SetBackupArn(BackupArnT&& value) {
99 m_backupArnHasBeenSet = true;
100 m_backupArn = std::forward<BackupArnT>(value);
101 }
102 template <typename BackupArnT = Aws::String>
103 BackupSummary& WithBackupArn(BackupArnT&& value) {
104 SetBackupArn(std::forward<BackupArnT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetBackupName() const { return m_backupName; }
114 inline bool BackupNameHasBeenSet() const { return m_backupNameHasBeenSet; }
115 template <typename BackupNameT = Aws::String>
116 void SetBackupName(BackupNameT&& value) {
117 m_backupNameHasBeenSet = true;
118 m_backupName = std::forward<BackupNameT>(value);
119 }
120 template <typename BackupNameT = Aws::String>
121 BackupSummary& WithBackupName(BackupNameT&& value) {
122 SetBackupName(std::forward<BackupNameT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetBackupCreationDateTime() const { return m_backupCreationDateTime; }
132 inline bool BackupCreationDateTimeHasBeenSet() const { return m_backupCreationDateTimeHasBeenSet; }
133 template <typename BackupCreationDateTimeT = Aws::Utils::DateTime>
134 void SetBackupCreationDateTime(BackupCreationDateTimeT&& value) {
135 m_backupCreationDateTimeHasBeenSet = true;
136 m_backupCreationDateTime = std::forward<BackupCreationDateTimeT>(value);
137 }
138 template <typename BackupCreationDateTimeT = Aws::Utils::DateTime>
139 BackupSummary& WithBackupCreationDateTime(BackupCreationDateTimeT&& value) {
140 SetBackupCreationDateTime(std::forward<BackupCreationDateTimeT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::Utils::DateTime& GetBackupExpiryDateTime() const { return m_backupExpiryDateTime; }
152 inline bool BackupExpiryDateTimeHasBeenSet() const { return m_backupExpiryDateTimeHasBeenSet; }
153 template <typename BackupExpiryDateTimeT = Aws::Utils::DateTime>
154 void SetBackupExpiryDateTime(BackupExpiryDateTimeT&& value) {
155 m_backupExpiryDateTimeHasBeenSet = true;
156 m_backupExpiryDateTime = std::forward<BackupExpiryDateTimeT>(value);
157 }
158 template <typename BackupExpiryDateTimeT = Aws::Utils::DateTime>
159 BackupSummary& WithBackupExpiryDateTime(BackupExpiryDateTimeT&& value) {
160 SetBackupExpiryDateTime(std::forward<BackupExpiryDateTimeT>(value));
161 return *this;
162 }
164
166
169 inline BackupStatus GetBackupStatus() const { return m_backupStatus; }
170 inline bool BackupStatusHasBeenSet() const { return m_backupStatusHasBeenSet; }
171 inline void SetBackupStatus(BackupStatus value) {
172 m_backupStatusHasBeenSet = true;
173 m_backupStatus = value;
174 }
176 SetBackupStatus(value);
177 return *this;
178 }
180
182
192 inline BackupType GetBackupType() const { return m_backupType; }
193 inline bool BackupTypeHasBeenSet() const { return m_backupTypeHasBeenSet; }
194 inline void SetBackupType(BackupType value) {
195 m_backupTypeHasBeenSet = true;
196 m_backupType = value;
197 }
199 SetBackupType(value);
200 return *this;
201 }
203
205
208 inline long long GetBackupSizeBytes() const { return m_backupSizeBytes; }
209 inline bool BackupSizeBytesHasBeenSet() const { return m_backupSizeBytesHasBeenSet; }
210 inline void SetBackupSizeBytes(long long value) {
211 m_backupSizeBytesHasBeenSet = true;
212 m_backupSizeBytes = value;
213 }
214 inline BackupSummary& WithBackupSizeBytes(long long value) {
215 SetBackupSizeBytes(value);
216 return *this;
217 }
219 private:
220 Aws::String m_tableName;
221
222 Aws::String m_tableId;
223
224 Aws::String m_tableArn;
225
226 Aws::String m_backupArn;
227
228 Aws::String m_backupName;
229
230 Aws::Utils::DateTime m_backupCreationDateTime{};
231
232 Aws::Utils::DateTime m_backupExpiryDateTime{};
233
234 BackupStatus m_backupStatus{BackupStatus::NOT_SET};
235
236 BackupType m_backupType{BackupType::NOT_SET};
237
238 long long m_backupSizeBytes{0};
239 bool m_tableNameHasBeenSet = false;
240 bool m_tableIdHasBeenSet = false;
241 bool m_tableArnHasBeenSet = false;
242 bool m_backupArnHasBeenSet = false;
243 bool m_backupNameHasBeenSet = false;
244 bool m_backupCreationDateTimeHasBeenSet = false;
245 bool m_backupExpiryDateTimeHasBeenSet = false;
246 bool m_backupStatusHasBeenSet = false;
247 bool m_backupTypeHasBeenSet = false;
248 bool m_backupSizeBytesHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace DynamoDB
253} // namespace Aws
BackupSummary & WithBackupExpiryDateTime(BackupExpiryDateTimeT &&value)
void SetBackupCreationDateTime(BackupCreationDateTimeT &&value)
BackupSummary & WithTableId(TableIdT &&value)
BackupSummary & WithBackupSizeBytes(long long value)
void SetBackupName(BackupNameT &&value)
void SetBackupArn(BackupArnT &&value)
const Aws::Utils::DateTime & GetBackupCreationDateTime() const
void SetTableArn(TableArnT &&value)
BackupSummary & WithTableArn(TableArnT &&value)
BackupSummary & WithBackupCreationDateTime(BackupCreationDateTimeT &&value)
const Aws::String & GetBackupName() const
void SetBackupStatus(BackupStatus value)
BackupSummary & WithBackupStatus(BackupStatus value)
const Aws::String & GetTableName() const
AWS_DYNAMODB_API BackupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBackupArn() const
void SetTableId(TableIdT &&value)
AWS_DYNAMODB_API BackupSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
BackupSummary & WithTableName(TableNameT &&value)
const Aws::String & GetTableArn() const
BackupSummary & WithBackupArn(BackupArnT &&value)
BackupSummary & WithBackupType(BackupType value)
void SetBackupType(BackupType value)
AWS_DYNAMODB_API BackupSummary()=default
void SetBackupExpiryDateTime(BackupExpiryDateTimeT &&value)
const Aws::String & GetTableId() const
BackupSummary & WithBackupName(BackupNameT &&value)
void SetTableName(TableNameT &&value)
const Aws::Utils::DateTime & GetBackupExpiryDateTime() const
void SetBackupSizeBytes(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue