AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
CapacitySpecification.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/keyspaces/Keyspaces_EXPORTS.h>
9#include <aws/keyspaces/model/ThroughputMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Keyspaces {
20namespace Model {
21
35 public:
36 AWS_KEYSPACES_API CapacitySpecification() = default;
37 AWS_KEYSPACES_API CapacitySpecification(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_KEYSPACES_API CapacitySpecification& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
52 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
53 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
54 inline void SetThroughputMode(ThroughputMode value) {
55 m_throughputModeHasBeenSet = true;
56 m_throughputMode = value;
57 }
59 SetThroughputMode(value);
60 return *this;
61 }
63
65
69 inline long long GetReadCapacityUnits() const { return m_readCapacityUnits; }
70 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
71 inline void SetReadCapacityUnits(long long value) {
72 m_readCapacityUnitsHasBeenSet = true;
73 m_readCapacityUnits = value;
74 }
77 return *this;
78 }
80
82
86 inline long long GetWriteCapacityUnits() const { return m_writeCapacityUnits; }
87 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
88 inline void SetWriteCapacityUnits(long long value) {
89 m_writeCapacityUnitsHasBeenSet = true;
90 m_writeCapacityUnits = value;
91 }
94 return *this;
95 }
97 private:
99
100 long long m_readCapacityUnits{0};
101
102 long long m_writeCapacityUnits{0};
103 bool m_throughputModeHasBeenSet = false;
104 bool m_readCapacityUnitsHasBeenSet = false;
105 bool m_writeCapacityUnitsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Keyspaces
110} // namespace Aws
CapacitySpecification & WithWriteCapacityUnits(long long value)
AWS_KEYSPACES_API CapacitySpecification()=default
AWS_KEYSPACES_API CapacitySpecification(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CapacitySpecification & WithThroughputMode(ThroughputMode value)
AWS_KEYSPACES_API CapacitySpecification & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CapacitySpecification & WithReadCapacityUnits(long long value)
AWS_KEYSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const