AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ShardDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/ShardConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace MemoryDB {
22namespace Model {
23
30 public:
31 AWS_MEMORYDB_API ShardDetail() = default;
32 AWS_MEMORYDB_API ShardDetail(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MEMORYDB_API ShardDetail& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 ShardDetail& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const ShardConfiguration& GetConfiguration() const { return m_configuration; }
59 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
60 template <typename ConfigurationT = ShardConfiguration>
61 void SetConfiguration(ConfigurationT&& value) {
62 m_configurationHasBeenSet = true;
63 m_configuration = std::forward<ConfigurationT>(value);
64 }
65 template <typename ConfigurationT = ShardConfiguration>
66 ShardDetail& WithConfiguration(ConfigurationT&& value) {
67 SetConfiguration(std::forward<ConfigurationT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSize() const { return m_size; }
77 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
78 template <typename SizeT = Aws::String>
79 void SetSize(SizeT&& value) {
80 m_sizeHasBeenSet = true;
81 m_size = std::forward<SizeT>(value);
82 }
83 template <typename SizeT = Aws::String>
84 ShardDetail& WithSize(SizeT&& value) {
85 SetSize(std::forward<SizeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetSnapshotCreationTime() const { return m_snapshotCreationTime; }
95 inline bool SnapshotCreationTimeHasBeenSet() const { return m_snapshotCreationTimeHasBeenSet; }
96 template <typename SnapshotCreationTimeT = Aws::Utils::DateTime>
97 void SetSnapshotCreationTime(SnapshotCreationTimeT&& value) {
98 m_snapshotCreationTimeHasBeenSet = true;
99 m_snapshotCreationTime = std::forward<SnapshotCreationTimeT>(value);
100 }
101 template <typename SnapshotCreationTimeT = Aws::Utils::DateTime>
102 ShardDetail& WithSnapshotCreationTime(SnapshotCreationTimeT&& value) {
103 SetSnapshotCreationTime(std::forward<SnapshotCreationTimeT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_name;
109
110 ShardConfiguration m_configuration;
111
112 Aws::String m_size;
113
114 Aws::Utils::DateTime m_snapshotCreationTime{};
115 bool m_nameHasBeenSet = false;
116 bool m_configurationHasBeenSet = false;
117 bool m_sizeHasBeenSet = false;
118 bool m_snapshotCreationTimeHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace MemoryDB
123} // namespace Aws
ShardDetail & WithSize(SizeT &&value)
Definition ShardDetail.h:84
const Aws::String & GetSize() const
Definition ShardDetail.h:76
bool SnapshotCreationTimeHasBeenSet() const
Definition ShardDetail.h:95
const ShardConfiguration & GetConfiguration() const
Definition ShardDetail.h:58
void SetSnapshotCreationTime(SnapshotCreationTimeT &&value)
Definition ShardDetail.h:97
ShardDetail & WithSnapshotCreationTime(SnapshotCreationTimeT &&value)
AWS_MEMORYDB_API ShardDetail()=default
ShardDetail & WithConfiguration(ConfigurationT &&value)
Definition ShardDetail.h:66
const Aws::Utils::DateTime & GetSnapshotCreationTime() const
Definition ShardDetail.h:94
const Aws::String & GetName() const
Definition ShardDetail.h:40
void SetConfiguration(ConfigurationT &&value)
Definition ShardDetail.h:61
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ShardDetail & WithName(NameT &&value)
Definition ShardDetail.h:48
AWS_MEMORYDB_API ShardDetail & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API ShardDetail(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String