AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Snapshot.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkSpaces {
20namespace Model {
21
27class Snapshot {
28 public:
29 AWS_WORKSPACES_API Snapshot() = default;
30 AWS_WORKSPACES_API Snapshot(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_WORKSPACES_API Snapshot& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::Utils::DateTime& GetSnapshotTime() const { return m_snapshotTime; }
39 inline bool SnapshotTimeHasBeenSet() const { return m_snapshotTimeHasBeenSet; }
40 template <typename SnapshotTimeT = Aws::Utils::DateTime>
41 void SetSnapshotTime(SnapshotTimeT&& value) {
42 m_snapshotTimeHasBeenSet = true;
43 m_snapshotTime = std::forward<SnapshotTimeT>(value);
44 }
45 template <typename SnapshotTimeT = Aws::Utils::DateTime>
46 Snapshot& WithSnapshotTime(SnapshotTimeT&& value) {
47 SetSnapshotTime(std::forward<SnapshotTimeT>(value));
48 return *this;
49 }
51 private:
52 Aws::Utils::DateTime m_snapshotTime{};
53 bool m_snapshotTimeHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace WorkSpaces
58} // namespace Aws
AWS_WORKSPACES_API Snapshot(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetSnapshotTime() const
Definition Snapshot.h:38
AWS_WORKSPACES_API Snapshot()=default
Snapshot & WithSnapshotTime(SnapshotTimeT &&value)
Definition Snapshot.h:46
bool SnapshotTimeHasBeenSet() const
Definition Snapshot.h:39
void SetSnapshotTime(SnapshotTimeT &&value)
Definition Snapshot.h:41
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACES_API Snapshot & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)