AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
SnapshotLimits.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/ds/DirectoryService_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace DirectoryService {
17namespace Model {
18
26 public:
27 AWS_DIRECTORYSERVICE_API SnapshotLimits() = default;
28 AWS_DIRECTORYSERVICE_API SnapshotLimits(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
29 AWS_DIRECTORYSERVICE_API SnapshotLimits& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
30 AWS_DIRECTORYSERVICE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
31
33
36 inline int64_t GetManualSnapshotsLimit() const { return m_manualSnapshotsLimit; }
37 inline bool ManualSnapshotsLimitHasBeenSet() const { return m_manualSnapshotsLimitHasBeenSet; }
38 inline void SetManualSnapshotsLimit(int64_t value) {
39 m_manualSnapshotsLimitHasBeenSet = true;
40 m_manualSnapshotsLimit = value;
41 }
44 return *this;
45 }
47
49
52 inline int64_t GetManualSnapshotsCurrentCount() const { return m_manualSnapshotsCurrentCount; }
53 inline bool ManualSnapshotsCurrentCountHasBeenSet() const { return m_manualSnapshotsCurrentCountHasBeenSet; }
54 inline void SetManualSnapshotsCurrentCount(int64_t value) {
55 m_manualSnapshotsCurrentCountHasBeenSet = true;
56 m_manualSnapshotsCurrentCount = value;
57 }
60 return *this;
61 }
63
65
68 inline bool GetManualSnapshotsLimitReached() const { return m_manualSnapshotsLimitReached; }
69 inline bool ManualSnapshotsLimitReachedHasBeenSet() const { return m_manualSnapshotsLimitReachedHasBeenSet; }
70 inline void SetManualSnapshotsLimitReached(bool value) {
71 m_manualSnapshotsLimitReachedHasBeenSet = true;
72 m_manualSnapshotsLimitReached = value;
73 }
76 return *this;
77 }
79 private:
80 int64_t m_manualSnapshotsLimit{0};
81
82 int64_t m_manualSnapshotsCurrentCount{0};
83
84 bool m_manualSnapshotsLimitReached{false};
85 bool m_manualSnapshotsLimitHasBeenSet = false;
86 bool m_manualSnapshotsCurrentCountHasBeenSet = false;
87 bool m_manualSnapshotsLimitReachedHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace DirectoryService
92} // namespace Aws
SnapshotLimits & WithManualSnapshotsCurrentCount(int64_t value)
AWS_DIRECTORYSERVICE_API SnapshotLimits & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_DIRECTORYSERVICE_API SnapshotLimits(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SnapshotLimits & WithManualSnapshotsLimitReached(bool value)
AWS_DIRECTORYSERVICE_API SnapshotLimits()=default
AWS_DIRECTORYSERVICE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SnapshotLimits & WithManualSnapshotsLimit(int64_t value)