AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
CacheDetail.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/CacheTTL.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockRuntime {
20namespace Model {
21
29 public:
30 AWS_BEDROCKRUNTIME_API CacheDetail() = default;
33 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline CacheTTL GetTtl() const { return m_ttl; }
40 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
41 inline void SetTtl(CacheTTL value) {
42 m_ttlHasBeenSet = true;
43 m_ttl = value;
44 }
45 inline CacheDetail& WithTtl(CacheTTL value) {
46 SetTtl(value);
47 return *this;
48 }
50
52
55 inline int GetInputTokens() const { return m_inputTokens; }
56 inline bool InputTokensHasBeenSet() const { return m_inputTokensHasBeenSet; }
57 inline void SetInputTokens(int value) {
58 m_inputTokensHasBeenSet = true;
59 m_inputTokens = value;
60 }
61 inline CacheDetail& WithInputTokens(int value) {
62 SetInputTokens(value);
63 return *this;
64 }
66 private:
68
69 int m_inputTokens{0};
70 bool m_ttlHasBeenSet = false;
71 bool m_inputTokensHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace BedrockRuntime
76} // namespace Aws
CacheDetail & WithTtl(CacheTTL value)
Definition CacheDetail.h:45
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
CacheDetail & WithInputTokens(int value)
Definition CacheDetail.h:61
AWS_BEDROCKRUNTIME_API CacheDetail()=default
AWS_BEDROCKRUNTIME_API CacheDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API CacheDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue