AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DataReplicationSettings.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#include <aws/workspaces/model/DataReplication.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace WorkSpaces {
21namespace Model {
22
29 public:
30 AWS_WORKSPACES_API DataReplicationSettings() = default;
31 AWS_WORKSPACES_API DataReplicationSettings(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API DataReplicationSettings& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline DataReplication GetDataReplication() const { return m_dataReplication; }
41 inline bool DataReplicationHasBeenSet() const { return m_dataReplicationHasBeenSet; }
43 m_dataReplicationHasBeenSet = true;
44 m_dataReplication = value;
45 }
47 SetDataReplication(value);
48 return *this;
49 }
51
53
57 inline const Aws::Utils::DateTime& GetRecoverySnapshotTime() const { return m_recoverySnapshotTime; }
58 inline bool RecoverySnapshotTimeHasBeenSet() const { return m_recoverySnapshotTimeHasBeenSet; }
59 template <typename RecoverySnapshotTimeT = Aws::Utils::DateTime>
60 void SetRecoverySnapshotTime(RecoverySnapshotTimeT&& value) {
61 m_recoverySnapshotTimeHasBeenSet = true;
62 m_recoverySnapshotTime = std::forward<RecoverySnapshotTimeT>(value);
63 }
64 template <typename RecoverySnapshotTimeT = Aws::Utils::DateTime>
65 DataReplicationSettings& WithRecoverySnapshotTime(RecoverySnapshotTimeT&& value) {
66 SetRecoverySnapshotTime(std::forward<RecoverySnapshotTimeT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::Utils::DateTime m_recoverySnapshotTime{};
74 bool m_dataReplicationHasBeenSet = false;
75 bool m_recoverySnapshotTimeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace WorkSpaces
80} // namespace Aws
AWS_WORKSPACES_API DataReplicationSettings(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRecoverySnapshotTime(RecoverySnapshotTimeT &&value)
DataReplicationSettings & WithDataReplication(DataReplication value)
DataReplicationSettings & WithRecoverySnapshotTime(RecoverySnapshotTimeT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Utils::DateTime & GetRecoverySnapshotTime() const
AWS_WORKSPACES_API DataReplicationSettings()=default
AWS_WORKSPACES_API DataReplicationSettings & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)