AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
MemoryConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/MemoryType.h>
9#include <aws/bedrock-agent/model/SessionSummaryConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
30 public:
31 AWS_BEDROCKAGENT_API MemoryConfiguration() = default;
34 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<MemoryType>& GetEnabledMemoryTypes() const { return m_enabledMemoryTypes; }
41 inline bool EnabledMemoryTypesHasBeenSet() const { return m_enabledMemoryTypesHasBeenSet; }
42 template <typename EnabledMemoryTypesT = Aws::Vector<MemoryType>>
44 m_enabledMemoryTypesHasBeenSet = true;
45 m_enabledMemoryTypes = std::forward<EnabledMemoryTypesT>(value);
46 }
47 template <typename EnabledMemoryTypesT = Aws::Vector<MemoryType>>
49 SetEnabledMemoryTypes(std::forward<EnabledMemoryTypesT>(value));
50 return *this;
51 }
53 m_enabledMemoryTypesHasBeenSet = true;
54 m_enabledMemoryTypes.push_back(value);
55 return *this;
56 }
58
60
64 inline int GetStorageDays() const { return m_storageDays; }
65 inline bool StorageDaysHasBeenSet() const { return m_storageDaysHasBeenSet; }
66 inline void SetStorageDays(int value) {
67 m_storageDaysHasBeenSet = true;
68 m_storageDays = value;
69 }
71 SetStorageDays(value);
72 return *this;
73 }
75
77
81 inline const SessionSummaryConfiguration& GetSessionSummaryConfiguration() const { return m_sessionSummaryConfiguration; }
82 inline bool SessionSummaryConfigurationHasBeenSet() const { return m_sessionSummaryConfigurationHasBeenSet; }
83 template <typename SessionSummaryConfigurationT = SessionSummaryConfiguration>
85 m_sessionSummaryConfigurationHasBeenSet = true;
86 m_sessionSummaryConfiguration = std::forward<SessionSummaryConfigurationT>(value);
87 }
88 template <typename SessionSummaryConfigurationT = SessionSummaryConfiguration>
90 SetSessionSummaryConfiguration(std::forward<SessionSummaryConfigurationT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<MemoryType> m_enabledMemoryTypes;
96
97 int m_storageDays{0};
98
99 SessionSummaryConfiguration m_sessionSummaryConfiguration;
100 bool m_enabledMemoryTypesHasBeenSet = false;
101 bool m_storageDaysHasBeenSet = false;
102 bool m_sessionSummaryConfigurationHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace BedrockAgent
107} // namespace Aws
MemoryConfiguration & WithEnabledMemoryTypes(EnabledMemoryTypesT &&value)
MemoryConfiguration & WithStorageDays(int value)
const SessionSummaryConfiguration & GetSessionSummaryConfiguration() const
MemoryConfiguration & WithSessionSummaryConfiguration(SessionSummaryConfigurationT &&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
AWS_BEDROCKAGENT_API MemoryConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
MemoryConfiguration & AddEnabledMemoryTypes(MemoryType value)
AWS_BEDROCKAGENT_API MemoryConfiguration()=default
void SetSessionSummaryConfiguration(SessionSummaryConfigurationT &&value)
void SetEnabledMemoryTypes(EnabledMemoryTypesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue