AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
StrategySelector.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
10#include <aws/opensearchmemory/model/MemoryType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchMemory {
22namespace Model {
23
32 public:
33 AWS_OPENSEARCHMEMORY_API StrategySelector() = default;
34 AWS_OPENSEARCHMEMORY_API StrategySelector(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHMEMORY_API StrategySelector& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline MemoryType GetMemoryType() const { return m_memoryType; }
43 inline bool MemoryTypeHasBeenSet() const { return m_memoryTypeHasBeenSet; }
44 inline void SetMemoryType(MemoryType value) {
45 m_memoryTypeHasBeenSet = true;
46 m_memoryType = value;
47 }
49 SetMemoryType(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetMemoryStrategyNames() const { return m_memoryStrategyNames; }
60 inline bool MemoryStrategyNamesHasBeenSet() const { return m_memoryStrategyNamesHasBeenSet; }
61 template <typename MemoryStrategyNamesT = Aws::Vector<Aws::String>>
62 void SetMemoryStrategyNames(MemoryStrategyNamesT&& value) {
63 m_memoryStrategyNamesHasBeenSet = true;
64 m_memoryStrategyNames = std::forward<MemoryStrategyNamesT>(value);
65 }
66 template <typename MemoryStrategyNamesT = Aws::Vector<Aws::String>>
67 StrategySelector& WithMemoryStrategyNames(MemoryStrategyNamesT&& value) {
68 SetMemoryStrategyNames(std::forward<MemoryStrategyNamesT>(value));
69 return *this;
70 }
71 template <typename MemoryStrategyNamesT = Aws::String>
72 StrategySelector& AddMemoryStrategyNames(MemoryStrategyNamesT&& value) {
73 m_memoryStrategyNamesHasBeenSet = true;
74 m_memoryStrategyNames.emplace_back(std::forward<MemoryStrategyNamesT>(value));
75 return *this;
76 }
78 private:
79 MemoryType m_memoryType{MemoryType::NOT_SET};
80
81 Aws::Vector<Aws::String> m_memoryStrategyNames;
82 bool m_memoryTypeHasBeenSet = false;
83 bool m_memoryStrategyNamesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace OpenSearchMemory
88} // namespace Aws
AWS_OPENSEARCHMEMORY_API StrategySelector()=default
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHMEMORY_API StrategySelector(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHMEMORY_API StrategySelector & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetMemoryStrategyNames() const
StrategySelector & WithMemoryType(MemoryType value)
StrategySelector & WithMemoryStrategyNames(MemoryStrategyNamesT &&value)
void SetMemoryStrategyNames(MemoryStrategyNamesT &&value)
StrategySelector & AddMemoryStrategyNames(MemoryStrategyNamesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue