AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
50 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
51 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
52 inline GuardrailTextBlock& WithText(const Aws::String& value) { SetText(value); return *this;}
53 inline GuardrailTextBlock& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
54 inline GuardrailTextBlock& WithText(const char* value) { SetText(value); return *this;}
56
58
61 inline const Aws::Vector<GuardrailContentQualifier>& GetQualifiers() const{ return m_qualifiers; }
62 inline bool QualifiersHasBeenSet() const { return m_qualifiersHasBeenSet; }
63 inline void SetQualifiers(const Aws::Vector<GuardrailContentQualifier>& value) { m_qualifiersHasBeenSet = true; m_qualifiers = value; }
64 inline void SetQualifiers(Aws::Vector<GuardrailContentQualifier>&& value) { m_qualifiersHasBeenSet = true; m_qualifiers = std::move(value); }
67 inline GuardrailTextBlock& AddQualifiers(const GuardrailContentQualifier& value) { m_qualifiersHasBeenSet = true; m_qualifiers.push_back(value); return *this; }
68 inline GuardrailTextBlock& AddQualifiers(GuardrailContentQualifier&& value) { m_qualifiersHasBeenSet = true; m_qualifiers.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_text;
73 bool m_textHasBeenSet = false;
74
76 bool m_qualifiersHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace BedrockRuntime
81} // namespace Aws
GuardrailTextBlock & WithQualifiers(Aws::Vector< GuardrailContentQualifier > &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailTextBlock(Aws::Utils::Json::JsonView jsonValue)
void SetQualifiers(Aws::Vector< GuardrailContentQualifier > &&value)
const Aws::Vector< GuardrailContentQualifier > & GetQualifiers() const
GuardrailTextBlock & AddQualifiers(GuardrailContentQualifier &&value)
AWS_BEDROCKRUNTIME_API GuardrailTextBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailTextBlock & WithText(const Aws::String &value)
void SetQualifiers(const Aws::Vector< GuardrailContentQualifier > &value)
GuardrailTextBlock & WithText(Aws::String &&value)
GuardrailTextBlock & AddQualifiers(const GuardrailContentQualifier &value)
GuardrailTextBlock & WithQualifiers(const Aws::Vector< GuardrailContentQualifier > &value)
GuardrailTextBlock & WithText(const char *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