AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RestoreSummary.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DynamoDB {
21namespace Model {
22
29 public:
30 AWS_DYNAMODB_API RestoreSummary() = default;
31 AWS_DYNAMODB_API RestoreSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetSourceBackupArn() const { return m_sourceBackupArn; }
41 inline bool SourceBackupArnHasBeenSet() const { return m_sourceBackupArnHasBeenSet; }
42 template <typename SourceBackupArnT = Aws::String>
43 void SetSourceBackupArn(SourceBackupArnT&& value) {
44 m_sourceBackupArnHasBeenSet = true;
45 m_sourceBackupArn = std::forward<SourceBackupArnT>(value);
46 }
47 template <typename SourceBackupArnT = Aws::String>
48 RestoreSummary& WithSourceBackupArn(SourceBackupArnT&& value) {
49 SetSourceBackupArn(std::forward<SourceBackupArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSourceTableArn() const { return m_sourceTableArn; }
59 inline bool SourceTableArnHasBeenSet() const { return m_sourceTableArnHasBeenSet; }
60 template <typename SourceTableArnT = Aws::String>
61 void SetSourceTableArn(SourceTableArnT&& value) {
62 m_sourceTableArnHasBeenSet = true;
63 m_sourceTableArn = std::forward<SourceTableArnT>(value);
64 }
65 template <typename SourceTableArnT = Aws::String>
66 RestoreSummary& WithSourceTableArn(SourceTableArnT&& value) {
67 SetSourceTableArn(std::forward<SourceTableArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetRestoreDateTime() const { return m_restoreDateTime; }
77 inline bool RestoreDateTimeHasBeenSet() const { return m_restoreDateTimeHasBeenSet; }
78 template <typename RestoreDateTimeT = Aws::Utils::DateTime>
79 void SetRestoreDateTime(RestoreDateTimeT&& value) {
80 m_restoreDateTimeHasBeenSet = true;
81 m_restoreDateTime = std::forward<RestoreDateTimeT>(value);
82 }
83 template <typename RestoreDateTimeT = Aws::Utils::DateTime>
84 RestoreSummary& WithRestoreDateTime(RestoreDateTimeT&& value) {
85 SetRestoreDateTime(std::forward<RestoreDateTimeT>(value));
86 return *this;
87 }
89
91
94 inline bool GetRestoreInProgress() const { return m_restoreInProgress; }
95 inline bool RestoreInProgressHasBeenSet() const { return m_restoreInProgressHasBeenSet; }
96 inline void SetRestoreInProgress(bool value) {
97 m_restoreInProgressHasBeenSet = true;
98 m_restoreInProgress = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_sourceBackupArn;
107
108 Aws::String m_sourceTableArn;
109
110 Aws::Utils::DateTime m_restoreDateTime{};
111
112 bool m_restoreInProgress{false};
113 bool m_sourceBackupArnHasBeenSet = false;
114 bool m_sourceTableArnHasBeenSet = false;
115 bool m_restoreDateTimeHasBeenSet = false;
116 bool m_restoreInProgressHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace DynamoDB
121} // namespace Aws
RestoreSummary & WithRestoreDateTime(RestoreDateTimeT &&value)
const Aws::String & GetSourceTableArn() const
const Aws::String & GetSourceBackupArn() const
const Aws::Utils::DateTime & GetRestoreDateTime() const
RestoreSummary & WithRestoreInProgress(bool value)
void SetSourceBackupArn(SourceBackupArnT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API RestoreSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRestoreDateTime(RestoreDateTimeT &&value)
AWS_DYNAMODB_API RestoreSummary(Aws::Utils::Json::JsonView jsonValue)
RestoreSummary & WithSourceTableArn(SourceTableArnT &&value)
void SetSourceTableArn(SourceTableArnT &&value)
RestoreSummary & WithSourceBackupArn(SourceBackupArnT &&value)
AWS_DYNAMODB_API RestoreSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue