AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
MemoryStrategy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
9#include <aws/opensearchmemory/model/MemoryStrategyConfiguration.h>
10#include <aws/opensearchmemory/model/MemoryStrategyType.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
31 public:
32 AWS_OPENSEARCHMEMORY_API MemoryStrategy() = default;
33 AWS_OPENSEARCHMEMORY_API MemoryStrategy(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHMEMORY_API MemoryStrategy& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline MemoryStrategyType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(MemoryStrategyType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 MemoryStrategy& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 MemoryStrategy& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
100 inline const MemoryStrategyConfiguration& GetConfiguration() const { return m_configuration; }
101 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
102 template <typename ConfigurationT = MemoryStrategyConfiguration>
103 void SetConfiguration(ConfigurationT&& value) {
104 m_configurationHasBeenSet = true;
105 m_configuration = std::forward<ConfigurationT>(value);
106 }
107 template <typename ConfigurationT = MemoryStrategyConfiguration>
108 MemoryStrategy& WithConfiguration(ConfigurationT&& value) {
109 SetConfiguration(std::forward<ConfigurationT>(value));
110 return *this;
111 }
113 private:
115
116 Aws::String m_name;
117
118 Aws::String m_description;
119
120 MemoryStrategyConfiguration m_configuration;
121 bool m_typeHasBeenSet = false;
122 bool m_nameHasBeenSet = false;
123 bool m_descriptionHasBeenSet = false;
124 bool m_configurationHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace OpenSearchMemory
129} // namespace Aws
AWS_OPENSEARCHMEMORY_API MemoryStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
const MemoryStrategyConfiguration & GetConfiguration() const
AWS_OPENSEARCHMEMORY_API MemoryStrategy()=default
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(MemoryStrategyType value)
MemoryStrategy & WithName(NameT &&value)
MemoryStrategy & WithType(MemoryStrategyType value)
MemoryStrategy & WithConfiguration(ConfigurationT &&value)
void SetConfiguration(ConfigurationT &&value)
const Aws::String & GetDescription() const
AWS_OPENSEARCHMEMORY_API MemoryStrategy(Aws::Utils::Json::JsonView jsonValue)
MemoryStrategy & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue