AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MemoryConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent/model/MemoryType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKAGENT_API MemoryConfiguration();
36 AWS_BEDROCKAGENT_API MemoryConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<MemoryType>& GetEnabledMemoryTypes() const{ return m_enabledMemoryTypes; }
46 inline bool EnabledMemoryTypesHasBeenSet() const { return m_enabledMemoryTypesHasBeenSet; }
47 inline void SetEnabledMemoryTypes(const Aws::Vector<MemoryType>& value) { m_enabledMemoryTypesHasBeenSet = true; m_enabledMemoryTypes = value; }
48 inline void SetEnabledMemoryTypes(Aws::Vector<MemoryType>&& value) { m_enabledMemoryTypesHasBeenSet = true; m_enabledMemoryTypes = std::move(value); }
51 inline MemoryConfiguration& AddEnabledMemoryTypes(const MemoryType& value) { m_enabledMemoryTypesHasBeenSet = true; m_enabledMemoryTypes.push_back(value); return *this; }
52 inline MemoryConfiguration& AddEnabledMemoryTypes(MemoryType&& value) { m_enabledMemoryTypesHasBeenSet = true; m_enabledMemoryTypes.push_back(std::move(value)); return *this; }
54
56
60 inline int GetStorageDays() const{ return m_storageDays; }
61 inline bool StorageDaysHasBeenSet() const { return m_storageDaysHasBeenSet; }
62 inline void SetStorageDays(int value) { m_storageDaysHasBeenSet = true; m_storageDays = value; }
63 inline MemoryConfiguration& WithStorageDays(int value) { SetStorageDays(value); return *this;}
65 private:
66
67 Aws::Vector<MemoryType> m_enabledMemoryTypes;
68 bool m_enabledMemoryTypesHasBeenSet = false;
69
70 int m_storageDays;
71 bool m_storageDaysHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace BedrockAgent
76} // namespace Aws
void SetEnabledMemoryTypes(const Aws::Vector< MemoryType > &value)
MemoryConfiguration & WithStorageDays(int value)
MemoryConfiguration & WithEnabledMemoryTypes(const Aws::Vector< MemoryType > &value)
void SetEnabledMemoryTypes(Aws::Vector< MemoryType > &&value)
MemoryConfiguration & AddEnabledMemoryTypes(const MemoryType &value)
AWS_BEDROCKAGENT_API MemoryConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< MemoryType > & GetEnabledMemoryTypes() const
MemoryConfiguration & WithEnabledMemoryTypes(Aws::Vector< MemoryType > &&value)
AWS_BEDROCKAGENT_API MemoryConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
MemoryConfiguration & AddEnabledMemoryTypes(MemoryType &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue