AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ShardConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/memorydb/MemoryDB_EXPORTS.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
29 public:
30 AWS_MEMORYDB_API ShardConfiguration() = default;
31 AWS_MEMORYDB_API ShardConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_MEMORYDB_API ShardConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline const Aws::String& GetSlots() const { return m_slots; }
41 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
42 template <typename SlotsT = Aws::String>
43 void SetSlots(SlotsT&& value) {
44 m_slotsHasBeenSet = true;
45 m_slots = std::forward<SlotsT>(value);
46 }
47 template <typename SlotsT = Aws::String>
48 ShardConfiguration& WithSlots(SlotsT&& value) {
49 SetSlots(std::forward<SlotsT>(value));
50 return *this;
51 }
53
55
58 inline int64_t GetReplicaCount() const { return m_replicaCount; }
59 inline bool ReplicaCountHasBeenSet() const { return m_replicaCountHasBeenSet; }
60 inline void SetReplicaCount(int64_t value) {
61 m_replicaCountHasBeenSet = true;
62 m_replicaCount = value;
63 }
64 inline ShardConfiguration& WithReplicaCount(int64_t value) {
65 SetReplicaCount(value);
66 return *this;
67 }
69 private:
70 Aws::String m_slots;
71
72 int64_t m_replicaCount{0};
73 bool m_slotsHasBeenSet = false;
74 bool m_replicaCountHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace MemoryDB
79} // namespace Aws
AWS_MEMORYDB_API ShardConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API ShardConfiguration()=default
AWS_MEMORYDB_API ShardConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ShardConfiguration & WithSlots(SlotsT &&value)
ShardConfiguration & WithReplicaCount(int64_t value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String