AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
32 public:
33 AWS_BEDROCKAGENT_API ContentBlock() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetText() const { return m_text; }
43 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
44 template <typename TextT = Aws::String>
45 void SetText(TextT&& value) {
46 m_textHasBeenSet = true;
47 m_text = std::forward<TextT>(value);
48 }
49 template <typename TextT = Aws::String>
51 SetText(std::forward<TextT>(value));
52 return *this;
53 }
55
57
60 inline const CachePointBlock& GetCachePoint() const { return m_cachePoint; }
61 inline bool CachePointHasBeenSet() const { return m_cachePointHasBeenSet; }
62 template <typename CachePointT = CachePointBlock>
63 void SetCachePoint(CachePointT&& value) {
64 m_cachePointHasBeenSet = true;
65 m_cachePoint = std::forward<CachePointT>(value);
66 }
67 template <typename CachePointT = CachePointBlock>
69 SetCachePoint(std::forward<CachePointT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_text;
75
76 CachePointBlock m_cachePoint;
77 bool m_textHasBeenSet = false;
78 bool m_cachePointHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace BedrockAgent
83} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue