AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailWord.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/GuardrailWordAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCK_API GuardrailWord() = default;
36 AWS_BEDROCK_API GuardrailWord(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetText() const { return m_text; }
46 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
47 template<typename TextT = Aws::String>
48 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
49 template<typename TextT = Aws::String>
50 GuardrailWord& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
52
54
61 inline GuardrailWordAction GetInputAction() const { return m_inputAction; }
62 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
63 inline void SetInputAction(GuardrailWordAction value) { m_inputActionHasBeenSet = true; m_inputAction = value; }
64 inline GuardrailWord& WithInputAction(GuardrailWordAction value) { SetInputAction(value); return *this;}
66
68
75 inline GuardrailWordAction GetOutputAction() const { return m_outputAction; }
76 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
77 inline void SetOutputAction(GuardrailWordAction value) { m_outputActionHasBeenSet = true; m_outputAction = value; }
78 inline GuardrailWord& WithOutputAction(GuardrailWordAction value) { SetOutputAction(value); return *this;}
80
82
87 inline bool GetInputEnabled() const { return m_inputEnabled; }
88 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
89 inline void SetInputEnabled(bool value) { m_inputEnabledHasBeenSet = true; m_inputEnabled = value; }
90 inline GuardrailWord& WithInputEnabled(bool value) { SetInputEnabled(value); return *this;}
92
94
99 inline bool GetOutputEnabled() const { return m_outputEnabled; }
100 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
101 inline void SetOutputEnabled(bool value) { m_outputEnabledHasBeenSet = true; m_outputEnabled = value; }
102 inline GuardrailWord& WithOutputEnabled(bool value) { SetOutputEnabled(value); return *this;}
104 private:
105
106 Aws::String m_text;
107 bool m_textHasBeenSet = false;
108
110 bool m_inputActionHasBeenSet = false;
111
113 bool m_outputActionHasBeenSet = false;
114
115 bool m_inputEnabled{false};
116 bool m_inputEnabledHasBeenSet = false;
117
118 bool m_outputEnabled{false};
119 bool m_outputEnabledHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Bedrock
124} // namespace Aws
GuardrailWord & WithInputEnabled(bool value)
GuardrailWord & WithOutputAction(GuardrailWordAction value)
GuardrailWordAction GetInputAction() const
AWS_BEDROCK_API GuardrailWord(Aws::Utils::Json::JsonView jsonValue)
void SetInputAction(GuardrailWordAction value)
GuardrailWord & WithOutputEnabled(bool value)
GuardrailWord & WithInputAction(GuardrailWordAction value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailWordAction GetOutputAction() const
AWS_BEDROCK_API GuardrailWord & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailWord & WithText(TextT &&value)
const Aws::String & GetText() const
AWS_BEDROCK_API GuardrailWord()=default
void SetOutputAction(GuardrailWordAction value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue