AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
GuardrailContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailImageBlock.h>
9#include <aws/bedrock-runtime/model/GuardrailTextBlock.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
30 public:
31 AWS_BEDROCKRUNTIME_API GuardrailContentBlock() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const GuardrailTextBlock& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = GuardrailTextBlock>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = GuardrailTextBlock>
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
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) {
62 m_imageHasBeenSet = true;
63 m_image = std::forward<ImageT>(value);
64 }
65 template <typename ImageT = GuardrailImageBlock>
67 SetImage(std::forward<ImageT>(value));
68 return *this;
69 }
71 private:
72 GuardrailTextBlock m_text;
73
74 GuardrailImageBlock m_image;
75 bool m_textHasBeenSet = false;
76 bool m_imageHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockRuntime
81} // 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
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue