AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ReshardingStatus.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/memorydb/MemoryDB_EXPORTS.h>
9#include <aws/memorydb/model/SlotMigration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace MemoryDB {
20namespace Model {
21
28 public:
29 AWS_MEMORYDB_API ReshardingStatus() = default;
30 AWS_MEMORYDB_API ReshardingStatus(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_MEMORYDB_API ReshardingStatus& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const SlotMigration& GetSlotMigration() const { return m_slotMigration; }
39 inline bool SlotMigrationHasBeenSet() const { return m_slotMigrationHasBeenSet; }
40 template <typename SlotMigrationT = SlotMigration>
41 void SetSlotMigration(SlotMigrationT&& value) {
42 m_slotMigrationHasBeenSet = true;
43 m_slotMigration = std::forward<SlotMigrationT>(value);
44 }
45 template <typename SlotMigrationT = SlotMigration>
46 ReshardingStatus& WithSlotMigration(SlotMigrationT&& value) {
47 SetSlotMigration(std::forward<SlotMigrationT>(value));
48 return *this;
49 }
51 private:
52 SlotMigration m_slotMigration;
53 bool m_slotMigrationHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace MemoryDB
58} // namespace Aws
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetSlotMigration(SlotMigrationT &&value)
AWS_MEMORYDB_API ReshardingStatus()=default
AWS_MEMORYDB_API ReshardingStatus(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const SlotMigration & GetSlotMigration() const
ReshardingStatus & WithSlotMigration(SlotMigrationT &&value)
AWS_MEMORYDB_API ReshardingStatus & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)