AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SystemContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/CachePointBlock.h>
9#include <aws/bedrock-runtime/model/GuardrailConverseContentBlock.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
33 public:
34 AWS_BEDROCKRUNTIME_API SystemContentBlock() = default;
37 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetText() const { return m_text; }
44 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
45 template <typename TextT = Aws::String>
46 void SetText(TextT&& value) {
47 m_textHasBeenSet = true;
48 m_text = std::forward<TextT>(value);
49 }
50 template <typename TextT = Aws::String>
52 SetText(std::forward<TextT>(value));
53 return *this;
54 }
56
58
66 inline const GuardrailConverseContentBlock& GetGuardContent() const { return m_guardContent; }
67 inline bool GuardContentHasBeenSet() const { return m_guardContentHasBeenSet; }
68 template <typename GuardContentT = GuardrailConverseContentBlock>
70 m_guardContentHasBeenSet = true;
71 m_guardContent = std::forward<GuardContentT>(value);
72 }
73 template <typename GuardContentT = GuardrailConverseContentBlock>
75 SetGuardContent(std::forward<GuardContentT>(value));
76 return *this;
77 }
79
81
84 inline const CachePointBlock& GetCachePoint() const { return m_cachePoint; }
85 inline bool CachePointHasBeenSet() const { return m_cachePointHasBeenSet; }
86 template <typename CachePointT = CachePointBlock>
87 void SetCachePoint(CachePointT&& value) {
88 m_cachePointHasBeenSet = true;
89 m_cachePoint = std::forward<CachePointT>(value);
90 }
91 template <typename CachePointT = CachePointBlock>
93 SetCachePoint(std::forward<CachePointT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_text;
99
100 GuardrailConverseContentBlock m_guardContent;
101
102 CachePointBlock m_cachePoint;
103 bool m_textHasBeenSet = false;
104 bool m_guardContentHasBeenSet = false;
105 bool m_cachePointHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace BedrockRuntime
110} // namespace Aws
AWS_BEDROCKRUNTIME_API SystemContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
SystemContentBlock & WithGuardContent(GuardContentT &&value)
const GuardrailConverseContentBlock & GetGuardContent() const
SystemContentBlock & WithText(TextT &&value)
AWS_BEDROCKRUNTIME_API SystemContentBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API SystemContentBlock()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
SystemContentBlock & WithCachePoint(CachePointT &&value)
const CachePointBlock & GetCachePoint() const
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