AWS SDK for C++

AWS SDK for C++ Version 1.11.509

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();
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 inline void SetText(const GuardrailTextBlock& value) { m_textHasBeenSet = true; m_text = value; }
49 inline void SetText(GuardrailTextBlock&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
50 inline GuardrailContentBlock& WithText(const GuardrailTextBlock& value) { SetText(value); return *this;}
51 inline GuardrailContentBlock& WithText(GuardrailTextBlock&& value) { SetText(std::move(value)); return *this;}
53
55
58 inline const GuardrailImageBlock& GetImage() const{ return m_image; }
59 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
60 inline void SetImage(const GuardrailImageBlock& value) { m_imageHasBeenSet = true; m_image = value; }
61 inline void SetImage(GuardrailImageBlock&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
62 inline GuardrailContentBlock& WithImage(const GuardrailImageBlock& value) { SetImage(value); return *this;}
63 inline GuardrailContentBlock& WithImage(GuardrailImageBlock&& value) { SetImage(std::move(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
GuardrailContentBlock & WithText(const GuardrailTextBlock &value)
AWS_BEDROCKRUNTIME_API GuardrailContentBlock(Aws::Utils::Json::JsonView jsonValue)
GuardrailContentBlock & WithImage(GuardrailImageBlock &&value)
void SetImage(const GuardrailImageBlock &value)
AWS_BEDROCKRUNTIME_API GuardrailContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetText(const GuardrailTextBlock &value)
GuardrailContentBlock & WithText(GuardrailTextBlock &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailContentBlock & WithImage(const GuardrailImageBlock &value)
Aws::Utils::Json::JsonValue JsonValue