AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
SystemContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/GuardrailConverseContentBlock.h>
10#include <aws/bedrock-runtime/model/CachePointBlock.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockRuntime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API SystemContentBlock() = default;
37 AWS_BEDROCKRUNTIME_API SystemContentBlock(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API SystemContentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetText() const { return m_text; }
47 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
48 template<typename TextT = Aws::String>
49 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
50 template<typename TextT = Aws::String>
51 SystemContentBlock& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
53
55
63 inline const GuardrailConverseContentBlock& GetGuardContent() const { return m_guardContent; }
64 inline bool GuardContentHasBeenSet() const { return m_guardContentHasBeenSet; }
65 template<typename GuardContentT = GuardrailConverseContentBlock>
66 void SetGuardContent(GuardContentT&& value) { m_guardContentHasBeenSet = true; m_guardContent = std::forward<GuardContentT>(value); }
67 template<typename GuardContentT = GuardrailConverseContentBlock>
68 SystemContentBlock& WithGuardContent(GuardContentT&& value) { SetGuardContent(std::forward<GuardContentT>(value)); return *this;}
70
72
75 inline const CachePointBlock& GetCachePoint() const { return m_cachePoint; }
76 inline bool CachePointHasBeenSet() const { return m_cachePointHasBeenSet; }
77 template<typename CachePointT = CachePointBlock>
78 void SetCachePoint(CachePointT&& value) { m_cachePointHasBeenSet = true; m_cachePoint = std::forward<CachePointT>(value); }
79 template<typename CachePointT = CachePointBlock>
80 SystemContentBlock& WithCachePoint(CachePointT&& value) { SetCachePoint(std::forward<CachePointT>(value)); return *this;}
82 private:
83
84 Aws::String m_text;
85 bool m_textHasBeenSet = false;
86
87 GuardrailConverseContentBlock m_guardContent;
88 bool m_guardContentHasBeenSet = false;
89
90 CachePointBlock m_cachePoint;
91 bool m_cachePointHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace BedrockRuntime
96} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue