AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailTextBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock-runtime/model/GuardrailContentQualifier.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockRuntime
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKRUNTIME_API GuardrailTextBlock() = default;
38 AWS_BEDROCKRUNTIME_API GuardrailTextBlock(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API GuardrailTextBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetText() const { return m_text; }
48 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
49 template<typename TextT = Aws::String>
50 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
51 template<typename TextT = Aws::String>
52 GuardrailTextBlock& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
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) { m_qualifiersHasBeenSet = true; m_qualifiers = std::forward<QualifiersT>(value); }
63 template<typename QualifiersT = Aws::Vector<GuardrailContentQualifier>>
64 GuardrailTextBlock& WithQualifiers(QualifiersT&& value) { SetQualifiers(std::forward<QualifiersT>(value)); return *this;}
65 inline GuardrailTextBlock& AddQualifiers(GuardrailContentQualifier value) { m_qualifiersHasBeenSet = true; m_qualifiers.push_back(value); return *this; }
67 private:
68
69 Aws::String m_text;
70 bool m_textHasBeenSet = false;
71
73 bool m_qualifiersHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace BedrockRuntime
78} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue