AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GuardrailConverseContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailConverseImageBlock.h>
9#include <aws/bedrock-runtime/model/GuardrailConverseTextBlock.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
33 public:
34 AWS_BEDROCKRUNTIME_API GuardrailConverseContentBlock() = default;
37 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const GuardrailConverseTextBlock& GetText() const { return m_text; }
44 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
45 template <typename TextT = GuardrailConverseTextBlock>
46 void SetText(TextT&& value) {
47 m_textHasBeenSet = true;
48 m_text = std::forward<TextT>(value);
49 }
50 template <typename TextT = GuardrailConverseTextBlock>
52 SetText(std::forward<TextT>(value));
53 return *this;
54 }
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) {
65 m_imageHasBeenSet = true;
66 m_image = std::forward<ImageT>(value);
67 }
68 template <typename ImageT = GuardrailConverseImageBlock>
70 SetImage(std::forward<ImageT>(value));
71 return *this;
72 }
74 private:
76
78 bool m_textHasBeenSet = false;
79 bool m_imageHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace BedrockRuntime
84} // 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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue