AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailConverseTextBlock.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/GuardrailConverseContentQualifier.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
36 {
37 public:
38 AWS_BEDROCKRUNTIME_API GuardrailConverseTextBlock();
39 AWS_BEDROCKRUNTIME_API GuardrailConverseTextBlock(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetText() const{ return m_text; }
49 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
50 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
51 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
52 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
53 inline GuardrailConverseTextBlock& WithText(const Aws::String& value) { SetText(value); return *this;}
54 inline GuardrailConverseTextBlock& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
55 inline GuardrailConverseTextBlock& WithText(const char* value) { SetText(value); return *this;}
57
59
62 inline const Aws::Vector<GuardrailConverseContentQualifier>& GetQualifiers() const{ return m_qualifiers; }
63 inline bool QualifiersHasBeenSet() const { return m_qualifiersHasBeenSet; }
64 inline void SetQualifiers(const Aws::Vector<GuardrailConverseContentQualifier>& value) { m_qualifiersHasBeenSet = true; m_qualifiers = value; }
65 inline void SetQualifiers(Aws::Vector<GuardrailConverseContentQualifier>&& value) { m_qualifiersHasBeenSet = true; m_qualifiers = std::move(value); }
68 inline GuardrailConverseTextBlock& AddQualifiers(const GuardrailConverseContentQualifier& value) { m_qualifiersHasBeenSet = true; m_qualifiers.push_back(value); return *this; }
69 inline GuardrailConverseTextBlock& AddQualifiers(GuardrailConverseContentQualifier&& value) { m_qualifiersHasBeenSet = true; m_qualifiers.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_text;
74 bool m_textHasBeenSet = false;
75
77 bool m_qualifiersHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace BedrockRuntime
82} // namespace Aws
void SetQualifiers(Aws::Vector< GuardrailConverseContentQualifier > &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailConverseTextBlock & AddQualifiers(const GuardrailConverseContentQualifier &value)
GuardrailConverseTextBlock & WithQualifiers(const Aws::Vector< GuardrailConverseContentQualifier > &value)
GuardrailConverseTextBlock & WithQualifiers(Aws::Vector< GuardrailConverseContentQualifier > &&value)
GuardrailConverseTextBlock & WithText(Aws::String &&value)
void SetQualifiers(const Aws::Vector< GuardrailConverseContentQualifier > &value)
GuardrailConverseTextBlock & AddQualifiers(GuardrailConverseContentQualifier &&value)
AWS_BEDROCKRUNTIME_API GuardrailConverseTextBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailConverseTextBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailConverseTextBlock & WithText(const Aws::String &value)
const Aws::Vector< GuardrailConverseContentQualifier > & GetQualifiers() const
GuardrailConverseTextBlock & 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