AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
WarmThroughputSpecification.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/keyspaces/Keyspaces_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace Keyspaces {
17namespace Model {
18
32 public:
33 AWS_KEYSPACES_API WarmThroughputSpecification() = default;
34 AWS_KEYSPACES_API WarmThroughputSpecification(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_KEYSPACES_API WarmThroughputSpecification& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline long long GetReadUnitsPerSecond() const { return m_readUnitsPerSecond; }
44 inline bool ReadUnitsPerSecondHasBeenSet() const { return m_readUnitsPerSecondHasBeenSet; }
45 inline void SetReadUnitsPerSecond(long long value) {
46 m_readUnitsPerSecondHasBeenSet = true;
47 m_readUnitsPerSecond = value;
48 }
51 return *this;
52 }
54
56
60 inline long long GetWriteUnitsPerSecond() const { return m_writeUnitsPerSecond; }
61 inline bool WriteUnitsPerSecondHasBeenSet() const { return m_writeUnitsPerSecondHasBeenSet; }
62 inline void SetWriteUnitsPerSecond(long long value) {
63 m_writeUnitsPerSecondHasBeenSet = true;
64 m_writeUnitsPerSecond = value;
65 }
68 return *this;
69 }
71 private:
72 long long m_readUnitsPerSecond{0};
73
74 long long m_writeUnitsPerSecond{0};
75 bool m_readUnitsPerSecondHasBeenSet = false;
76 bool m_writeUnitsPerSecondHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Keyspaces
81} // namespace Aws
WarmThroughputSpecification & WithReadUnitsPerSecond(long long value)
AWS_KEYSPACES_API WarmThroughputSpecification(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_KEYSPACES_API WarmThroughputSpecification()=default
AWS_KEYSPACES_API WarmThroughputSpecification & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WarmThroughputSpecification & WithWriteUnitsPerSecond(long long value)