AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
PointInTimeRecoverySummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/keyspaces/Keyspaces_EXPORTS.h>
10#include <aws/keyspaces/model/PointInTimeRecoveryStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Keyspaces {
21namespace Model {
22
30 public:
31 AWS_KEYSPACES_API PointInTimeRecoverySummary() = default;
32 AWS_KEYSPACES_API PointInTimeRecoverySummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_KEYSPACES_API PointInTimeRecoverySummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
PointInTimeRecoverySummary & WithEarliestRestorableTimestamp(EarliestRestorableTimestampT &&value)
AWS_KEYSPACES_API PointInTimeRecoverySummary()=default
AWS_KEYSPACES_API PointInTimeRecoverySummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_KEYSPACES_API PointInTimeRecoverySummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
PointInTimeRecoverySummary & WithStatus(PointInTimeRecoveryStatus value)
void SetEarliestRestorableTimestamp(EarliestRestorableTimestampT &&value)
const Aws::Utils::DateTime & GetEarliestRestorableTimestamp() const