AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailTextBlock.h>
9#include <aws/bedrock-runtime/model/GuardrailImageBlock.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
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API GuardrailContentBlock() = default;
37 AWS_BEDROCKRUNTIME_API GuardrailContentBlock(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const GuardrailTextBlock& GetText() const { return m_text; }
47 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
48 template<typename TextT = GuardrailTextBlock>
49 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
50 template<typename TextT = GuardrailTextBlock>
51 GuardrailContentBlock& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
53
55
58 inline const GuardrailImageBlock& GetImage() const { return m_image; }
59 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
60 template<typename ImageT = GuardrailImageBlock>
61 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
62 template<typename ImageT = GuardrailImageBlock>
63 GuardrailContentBlock& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
65 private:
66
67 GuardrailTextBlock m_text;
68 bool m_textHasBeenSet = false;
69
70 GuardrailImageBlock m_image;
71 bool m_imageHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace BedrockRuntime
76} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailContentBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailContentBlock & WithImage(ImageT &&value)
AWS_BEDROCKRUNTIME_API GuardrailContentBlock()=default
GuardrailContentBlock & WithText(TextT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue