AWS SDK for C++

AWS SDK for C++ Version 1.11.610

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 <aws/bedrock-runtime/model/GuardrailConverseImageBlock.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
37 {
38 public:
39 AWS_BEDROCKRUNTIME_API GuardrailConverseContentBlock() = default;
42 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const GuardrailConverseTextBlock& GetText() const { return m_text; }
50 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
51 template<typename TextT = GuardrailConverseTextBlock>
52 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
53 template<typename TextT = GuardrailConverseTextBlock>
54 GuardrailConverseContentBlock& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
56
58
61 inline const GuardrailConverseImageBlock& GetImage() const { return m_image; }
62 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
63 template<typename ImageT = GuardrailConverseImageBlock>
64 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
65 template<typename ImageT = GuardrailConverseImageBlock>
66 GuardrailConverseContentBlock& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
68 private:
69
71 bool m_textHasBeenSet = false;
72
74 bool m_imageHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace BedrockRuntime
79} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailConverseContentBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailConverseContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailConverseContentBlock()=default
GuardrailConverseContentBlock & WithImage(ImageT &&value)
Aws::Utils::Json::JsonValue JsonValue