7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
10#include <aws/opensearchmemory/model/MemoryType.h>
11#include <aws/opensearchmemory/model/SystemMetadata.h>
22namespace OpenSearchMemory {
35 AWS_OPENSEARCHMEMORY_API
Memory() =
default;
46 template <
typename MemoryIdT = Aws::String>
48 m_memoryIdHasBeenSet =
true;
49 m_memoryId = std::forward<MemoryIdT>(value);
51 template <
typename MemoryIdT = Aws::String>
65 m_memoryTypeHasBeenSet =
true;
83 template <
typename StrategyNameT = Aws::String>
85 m_strategyNameHasBeenSet =
true;
86 m_strategyName = std::forward<StrategyNameT>(value);
88 template <
typename StrategyNameT = Aws::String>
101 template <
typename ContentT = Aws::String>
103 m_contentHasBeenSet =
true;
104 m_content = std::forward<ContentT>(value);
106 template <
typename ContentT = Aws::String>
121 template <
typename SystemMetadataT = SystemMetadata>
123 m_systemMetadataHasBeenSet =
true;
124 m_systemMetadata = std::forward<SystemMetadataT>(value);
126 template <
typename SystemMetadataT = SystemMetadata>
139 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
141 m_metadataHasBeenSet =
true;
142 m_metadata = std::forward<MetadataT>(value);
144 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
149 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
151 m_metadataHasBeenSet =
true;
152 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
165 SystemMetadata m_systemMetadata;
168 bool m_memoryIdHasBeenSet =
false;
169 bool m_memoryTypeHasBeenSet =
false;
170 bool m_strategyNameHasBeenSet =
false;
171 bool m_contentHasBeenSet =
false;
172 bool m_systemMetadataHasBeenSet =
false;
173 bool m_metadataHasBeenSet =
false;
void SetStrategyName(StrategyNameT &&value)
bool MemoryIdHasBeenSet() const
const Aws::String & GetStrategyName() const
Memory & WithMemoryId(MemoryIdT &&value)
AWS_OPENSEARCHMEMORY_API Memory()=default
Memory & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
bool MetadataHasBeenSet() const
Memory & WithStrategyName(StrategyNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetMetadata(MetadataT &&value)
const Aws::String & GetContent() const
Memory & WithContent(ContentT &&value)
void SetMemoryId(MemoryIdT &&value)
bool StrategyNameHasBeenSet() const
bool SystemMetadataHasBeenSet() const
Memory & WithSystemMetadata(SystemMetadataT &&value)
bool MemoryTypeHasBeenSet() const
AWS_OPENSEARCHMEMORY_API Memory & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHMEMORY_API Memory(Aws::Utils::Json::JsonView jsonValue)
void SetMemoryType(MemoryType value)
MemoryType GetMemoryType() const
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
bool ContentHasBeenSet() const
const Aws::String & GetMemoryId() const
Memory & WithMemoryType(MemoryType value)
void SetSystemMetadata(SystemMetadataT &&value)
const SystemMetadata & GetSystemMetadata() const
Memory & WithMetadata(MetadataT &&value)
void SetContent(ContentT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue