AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GuardrailWordConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailWordAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
29 public:
30 AWS_BEDROCK_API GuardrailWordConfig() = default;
33 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetText() const { return m_text; }
40 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
41 template <typename TextT = Aws::String>
42 void SetText(TextT&& value) {
43 m_textHasBeenSet = true;
44 m_text = std::forward<TextT>(value);
45 }
46 template <typename TextT = Aws::String>
47 GuardrailWordConfig& WithText(TextT&& value) {
48 SetText(std::forward<TextT>(value));
49 return *this;
50 }
52
54
61 inline GuardrailWordAction GetInputAction() const { return m_inputAction; }
62 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
64 m_inputActionHasBeenSet = true;
65 m_inputAction = value;
66 }
68 SetInputAction(value);
69 return *this;
70 }
72
74
81 inline GuardrailWordAction GetOutputAction() const { return m_outputAction; }
82 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
84 m_outputActionHasBeenSet = true;
85 m_outputAction = value;
86 }
88 SetOutputAction(value);
89 return *this;
90 }
92
94
99 inline bool GetInputEnabled() const { return m_inputEnabled; }
100 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
101 inline void SetInputEnabled(bool value) {
102 m_inputEnabledHasBeenSet = true;
103 m_inputEnabled = value;
104 }
106 SetInputEnabled(value);
107 return *this;
108 }
110
112
117 inline bool GetOutputEnabled() const { return m_outputEnabled; }
118 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
119 inline void SetOutputEnabled(bool value) {
120 m_outputEnabledHasBeenSet = true;
121 m_outputEnabled = value;
122 }
124 SetOutputEnabled(value);
125 return *this;
126 }
128 private:
129 Aws::String m_text;
130 bool m_textHasBeenSet = false;
131
133 bool m_inputActionHasBeenSet = false;
134
136 bool m_outputActionHasBeenSet = false;
137
138 bool m_inputEnabled{false};
139 bool m_inputEnabledHasBeenSet = false;
140
141 bool m_outputEnabled{false};
142 bool m_outputEnabledHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace Bedrock
147} // namespace Aws
AWS_BEDROCK_API GuardrailWordConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordConfig & WithInputEnabled(bool value)
GuardrailWordConfig & WithOutputEnabled(bool value)
GuardrailWordConfig & WithOutputAction(GuardrailWordAction value)
AWS_BEDROCK_API GuardrailWordConfig(Aws::Utils::Json::JsonView jsonValue)
void SetInputAction(GuardrailWordAction value)
void SetOutputAction(GuardrailWordAction value)
AWS_BEDROCK_API GuardrailWordConfig()=default
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailWordConfig & WithText(TextT &&value)
GuardrailWordConfig & WithInputAction(GuardrailWordAction value)
GuardrailWordAction GetOutputAction() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue