AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ContentBlock.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/CachePointBlock.h>
9#include <aws/core/utils/memory/stl/AWSString.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
36 {
37 public:
38 AWS_BEDROCKAGENT_API ContentBlock() = default;
39 AWS_BEDROCKAGENT_API ContentBlock(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API ContentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const CachePointBlock& GetCachePoint() const { return m_cachePoint; }
49 inline bool CachePointHasBeenSet() const { return m_cachePointHasBeenSet; }
50 template<typename CachePointT = CachePointBlock>
51 void SetCachePoint(CachePointT&& value) { m_cachePointHasBeenSet = true; m_cachePoint = std::forward<CachePointT>(value); }
52 template<typename CachePointT = CachePointBlock>
53 ContentBlock& WithCachePoint(CachePointT&& value) { SetCachePoint(std::forward<CachePointT>(value)); return *this;}
55
57
60 inline const Aws::String& GetText() const { return m_text; }
61 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
62 template<typename TextT = Aws::String>
63 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
64 template<typename TextT = Aws::String>
65 ContentBlock& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
67 private:
68
69 CachePointBlock m_cachePoint;
70 bool m_cachePointHasBeenSet = false;
71
72 Aws::String m_text;
73 bool m_textHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace BedrockAgent
78} // namespace Aws
AWS_BEDROCKAGENT_API ContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentBlock & WithCachePoint(CachePointT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const CachePointBlock & GetCachePoint() const
AWS_BEDROCKAGENT_API ContentBlock()=default
const Aws::String & GetText() const
ContentBlock & WithText(TextT &&value)
void SetCachePoint(CachePointT &&value)
AWS_BEDROCKAGENT_API ContentBlock(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue