AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailConverseContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailConverseTextBlock.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_BEDROCKRUNTIME_API GuardrailConverseContentBlock();
41 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const GuardrailConverseTextBlock& GetText() const{ return m_text; }
49 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
50 inline void SetText(const GuardrailConverseTextBlock& value) { m_textHasBeenSet = true; m_text = value; }
51 inline void SetText(GuardrailConverseTextBlock&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
52 inline GuardrailConverseContentBlock& WithText(const GuardrailConverseTextBlock& value) { SetText(value); return *this;}
53 inline GuardrailConverseContentBlock& WithText(GuardrailConverseTextBlock&& value) { SetText(std::move(value)); return *this;}
55 private:
56
58 bool m_textHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace BedrockRuntime
63} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailConverseContentBlock(Aws::Utils::Json::JsonView jsonValue)
GuardrailConverseContentBlock & WithText(const GuardrailConverseTextBlock &value)
AWS_BEDROCKRUNTIME_API GuardrailConverseContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailConverseContentBlock & WithText(GuardrailConverseTextBlock &&value)
Aws::Utils::Json::JsonValue JsonValue