AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CachePointBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/CachePointType.h>
9#include <aws/bedrock-runtime/model/CacheTTL.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKRUNTIME_API CachePointBlock() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline CachePointType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(CachePointType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
58 inline CacheTTL GetTtl() const { return m_ttl; }
59 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
60 inline void SetTtl(CacheTTL value) {
61 m_ttlHasBeenSet = true;
62 m_ttl = value;
63 }
65 SetTtl(value);
66 return *this;
67 }
69 private:
71
73 bool m_typeHasBeenSet = false;
74 bool m_ttlHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockRuntime
79} // namespace Aws
AWS_BEDROCKRUNTIME_API CachePointBlock()=default
AWS_BEDROCKRUNTIME_API CachePointBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API CachePointBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
CachePointBlock & WithTtl(CacheTTL value)
CachePointBlock & WithType(CachePointType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue