AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API SystemContentBlock();
36 AWS_BEDROCKRUNTIME_API SystemContentBlock(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKRUNTIME_API SystemContentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetText() const{ return m_text; }
46 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
47 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
48 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
49 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
50 inline SystemContentBlock& WithText(const Aws::String& value) { SetText(value); return *this;}
51 inline SystemContentBlock& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
52 inline SystemContentBlock& WithText(const char* value) { SetText(value); return *this;}
54
56
64 inline const GuardrailConverseContentBlock& GetGuardContent() const{ return m_guardContent; }
65 inline bool GuardContentHasBeenSet() const { return m_guardContentHasBeenSet; }
66 inline void SetGuardContent(const GuardrailConverseContentBlock& value) { m_guardContentHasBeenSet = true; m_guardContent = value; }
67 inline void SetGuardContent(GuardrailConverseContentBlock&& value) { m_guardContentHasBeenSet = true; m_guardContent = std::move(value); }
69 inline SystemContentBlock& WithGuardContent(GuardrailConverseContentBlock&& value) { SetGuardContent(std::move(value)); return *this;}
71 private:
72
73 Aws::String m_text;
74 bool m_textHasBeenSet = false;
75
76 GuardrailConverseContentBlock m_guardContent;
77 bool m_guardContentHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace BedrockRuntime
82} // namespace Aws
AWS_BEDROCKRUNTIME_API SystemContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGuardContent(GuardrailConverseContentBlock &&value)
SystemContentBlock & WithText(Aws::String &&value)
const GuardrailConverseContentBlock & GetGuardContent() const
SystemContentBlock & WithText(const Aws::String &value)
SystemContentBlock & WithGuardContent(const GuardrailConverseContentBlock &value)
SystemContentBlock & WithGuardContent(GuardrailConverseContentBlock &&value)
AWS_BEDROCKRUNTIME_API SystemContentBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGuardContent(const GuardrailConverseContentBlock &value)
SystemContentBlock & WithText(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue