AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
GuardrailTextBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailContentQualifier.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKRUNTIME_API GuardrailTextBlock() = default;
35 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetText() const { return m_text; }
42 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
43 template <typename TextT = Aws::String>
44 void SetText(TextT&& value) {
45 m_textHasBeenSet = true;
46 m_text = std::forward<TextT>(value);
47 }
48 template <typename TextT = Aws::String>
50 SetText(std::forward<TextT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<GuardrailContentQualifier>& GetQualifiers() const { return m_qualifiers; }
60 inline bool QualifiersHasBeenSet() const { return m_qualifiersHasBeenSet; }
61 template <typename QualifiersT = Aws::Vector<GuardrailContentQualifier>>
62 void SetQualifiers(QualifiersT&& value) {
63 m_qualifiersHasBeenSet = true;
64 m_qualifiers = std::forward<QualifiersT>(value);
65 }
66 template <typename QualifiersT = Aws::Vector<GuardrailContentQualifier>>
68 SetQualifiers(std::forward<QualifiersT>(value));
69 return *this;
70 }
72 m_qualifiersHasBeenSet = true;
73 m_qualifiers.push_back(value);
74 return *this;
75 }
77 private:
78 Aws::String m_text;
79
81 bool m_textHasBeenSet = false;
82 bool m_qualifiersHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace BedrockRuntime
87} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailTextBlock(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GuardrailContentQualifier > & GetQualifiers() const
GuardrailTextBlock & AddQualifiers(GuardrailContentQualifier value)
AWS_BEDROCKRUNTIME_API GuardrailTextBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailTextBlock()=default
GuardrailTextBlock & WithQualifiers(QualifiersT &&value)
GuardrailTextBlock & WithText(TextT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue