AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BackupSummary.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/dynamodb/model/BackupStatus.h>
11#include <aws/dynamodb/model/BackupType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DYNAMODB_API BackupSummary() = default;
38 AWS_DYNAMODB_API BackupSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTableName() const { return m_tableName; }
48 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
49 template<typename TableNameT = Aws::String>
50 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
51 template<typename TableNameT = Aws::String>
52 BackupSummary& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
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) { m_tableIdHasBeenSet = true; m_tableId = std::forward<TableIdT>(value); }
63 template<typename TableIdT = Aws::String>
64 BackupSummary& WithTableId(TableIdT&& value) { SetTableId(std::forward<TableIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetTableArn() const { return m_tableArn; }
72 inline bool TableArnHasBeenSet() const { return m_tableArnHasBeenSet; }
73 template<typename TableArnT = Aws::String>
74 void SetTableArn(TableArnT&& value) { m_tableArnHasBeenSet = true; m_tableArn = std::forward<TableArnT>(value); }
75 template<typename TableArnT = Aws::String>
76 BackupSummary& WithTableArn(TableArnT&& value) { SetTableArn(std::forward<TableArnT>(value)); return *this;}
78
80
83 inline const Aws::String& GetBackupArn() const { return m_backupArn; }
84 inline bool BackupArnHasBeenSet() const { return m_backupArnHasBeenSet; }
85 template<typename BackupArnT = Aws::String>
86 void SetBackupArn(BackupArnT&& value) { m_backupArnHasBeenSet = true; m_backupArn = std::forward<BackupArnT>(value); }
87 template<typename BackupArnT = Aws::String>
88 BackupSummary& WithBackupArn(BackupArnT&& value) { SetBackupArn(std::forward<BackupArnT>(value)); return *this;}
90
92
95 inline const Aws::String& GetBackupName() const { return m_backupName; }
96 inline bool BackupNameHasBeenSet() const { return m_backupNameHasBeenSet; }
97 template<typename BackupNameT = Aws::String>
98 void SetBackupName(BackupNameT&& value) { m_backupNameHasBeenSet = true; m_backupName = std::forward<BackupNameT>(value); }
99 template<typename BackupNameT = Aws::String>
100 BackupSummary& WithBackupName(BackupNameT&& value) { SetBackupName(std::forward<BackupNameT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetBackupCreationDateTime() const { return m_backupCreationDateTime; }
108 inline bool BackupCreationDateTimeHasBeenSet() const { return m_backupCreationDateTimeHasBeenSet; }
109 template<typename BackupCreationDateTimeT = Aws::Utils::DateTime>
110 void SetBackupCreationDateTime(BackupCreationDateTimeT&& value) { m_backupCreationDateTimeHasBeenSet = true; m_backupCreationDateTime = std::forward<BackupCreationDateTimeT>(value); }
111 template<typename BackupCreationDateTimeT = Aws::Utils::DateTime>
112 BackupSummary& WithBackupCreationDateTime(BackupCreationDateTimeT&& value) { SetBackupCreationDateTime(std::forward<BackupCreationDateTimeT>(value)); return *this;}
114
116
121 inline const Aws::Utils::DateTime& GetBackupExpiryDateTime() const { return m_backupExpiryDateTime; }
122 inline bool BackupExpiryDateTimeHasBeenSet() const { return m_backupExpiryDateTimeHasBeenSet; }
123 template<typename BackupExpiryDateTimeT = Aws::Utils::DateTime>
124 void SetBackupExpiryDateTime(BackupExpiryDateTimeT&& value) { m_backupExpiryDateTimeHasBeenSet = true; m_backupExpiryDateTime = std::forward<BackupExpiryDateTimeT>(value); }
125 template<typename BackupExpiryDateTimeT = Aws::Utils::DateTime>
126 BackupSummary& WithBackupExpiryDateTime(BackupExpiryDateTimeT&& value) { SetBackupExpiryDateTime(std::forward<BackupExpiryDateTimeT>(value)); return *this;}
128
130
133 inline BackupStatus GetBackupStatus() const { return m_backupStatus; }
134 inline bool BackupStatusHasBeenSet() const { return m_backupStatusHasBeenSet; }
135 inline void SetBackupStatus(BackupStatus value) { m_backupStatusHasBeenSet = true; m_backupStatus = value; }
136 inline BackupSummary& WithBackupStatus(BackupStatus value) { SetBackupStatus(value); return *this;}
138
140
150 inline BackupType GetBackupType() const { return m_backupType; }
151 inline bool BackupTypeHasBeenSet() const { return m_backupTypeHasBeenSet; }
152 inline void SetBackupType(BackupType value) { m_backupTypeHasBeenSet = true; m_backupType = value; }
153 inline BackupSummary& WithBackupType(BackupType value) { SetBackupType(value); return *this;}
155
157
160 inline long long GetBackupSizeBytes() const { return m_backupSizeBytes; }
161 inline bool BackupSizeBytesHasBeenSet() const { return m_backupSizeBytesHasBeenSet; }
162 inline void SetBackupSizeBytes(long long value) { m_backupSizeBytesHasBeenSet = true; m_backupSizeBytes = value; }
163 inline BackupSummary& WithBackupSizeBytes(long long value) { SetBackupSizeBytes(value); return *this;}
165 private:
166
167 Aws::String m_tableName;
168 bool m_tableNameHasBeenSet = false;
169
170 Aws::String m_tableId;
171 bool m_tableIdHasBeenSet = false;
172
173 Aws::String m_tableArn;
174 bool m_tableArnHasBeenSet = false;
175
176 Aws::String m_backupArn;
177 bool m_backupArnHasBeenSet = false;
178
179 Aws::String m_backupName;
180 bool m_backupNameHasBeenSet = false;
181
182 Aws::Utils::DateTime m_backupCreationDateTime{};
183 bool m_backupCreationDateTimeHasBeenSet = false;
184
185 Aws::Utils::DateTime m_backupExpiryDateTime{};
186 bool m_backupExpiryDateTimeHasBeenSet = false;
187
188 BackupStatus m_backupStatus{BackupStatus::NOT_SET};
189 bool m_backupStatusHasBeenSet = false;
190
191 BackupType m_backupType{BackupType::NOT_SET};
192 bool m_backupTypeHasBeenSet = false;
193
194 long long m_backupSizeBytes{0};
195 bool m_backupSizeBytesHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace DynamoDB
200} // 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