AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PointInTimeRecoverySummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/keyspaces/Keyspaces_EXPORTS.h>
9#include <aws/keyspaces/model/PointInTimeRecoveryStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Keyspaces {
21namespace Model {
22
30 public:
31 AWS_KEYSPACES_API PointInTimeRecoverySummary() = default;
34 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline PointInTimeRecoveryStatus GetStatus() const { return m_status; }
42 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
44 m_statusHasBeenSet = true;
45 m_status = value;
46 }
48 SetStatus(value);
49 return *this;
50 }
52
54
58 inline const Aws::Utils::DateTime& GetEarliestRestorableTimestamp() const { return m_earliestRestorableTimestamp; }
59 inline bool EarliestRestorableTimestampHasBeenSet() const { return m_earliestRestorableTimestampHasBeenSet; }
60 template <typename EarliestRestorableTimestampT = Aws::Utils::DateTime>
61 void SetEarliestRestorableTimestamp(EarliestRestorableTimestampT&& value) {
62 m_earliestRestorableTimestampHasBeenSet = true;
63 m_earliestRestorableTimestamp = std::forward<EarliestRestorableTimestampT>(value);
64 }
65 template <typename EarliestRestorableTimestampT = Aws::Utils::DateTime>
66 PointInTimeRecoverySummary& WithEarliestRestorableTimestamp(EarliestRestorableTimestampT&& value) {
67 SetEarliestRestorableTimestamp(std::forward<EarliestRestorableTimestampT>(value));
68 return *this;
69 }
71 private:
73
74 Aws::Utils::DateTime m_earliestRestorableTimestamp{};
75 bool m_statusHasBeenSet = false;
76 bool m_earliestRestorableTimestampHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Keyspaces
81} // namespace Aws
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
PointInTimeRecoverySummary & WithEarliestRestorableTimestamp(EarliestRestorableTimestampT &&value)
AWS_KEYSPACES_API PointInTimeRecoverySummary()=default
AWS_KEYSPACES_API PointInTimeRecoverySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACES_API PointInTimeRecoverySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PointInTimeRecoverySummary & WithStatus(PointInTimeRecoveryStatus value)
void SetEarliestRestorableTimestamp(EarliestRestorableTimestampT &&value)
const Aws::Utils::DateTime & GetEarliestRestorableTimestamp() const
Aws::Utils::Json::JsonValue JsonValue