AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GuardrailPiiEntityConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailPiiEntityType.h>
9#include <aws/bedrock/model/GuardrailSensitiveInformationAction.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 GuardrailPiiEntityConfig() = default;
33 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
141 inline GuardrailPiiEntityType GetType() const { return m_type; }
142 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
143 inline void SetType(GuardrailPiiEntityType value) {
144 m_typeHasBeenSet = true;
145 m_type = value;
146 }
148 SetType(value);
149 return *this;
150 }
152
154
157 inline GuardrailSensitiveInformationAction GetAction() const { return m_action; }
158 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
160 m_actionHasBeenSet = true;
161 m_action = value;
162 }
164 SetAction(value);
165 return *this;
166 }
168
170
178 inline GuardrailSensitiveInformationAction GetInputAction() const { return m_inputAction; }
179 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
181 m_inputActionHasBeenSet = true;
182 m_inputAction = value;
183 }
185 SetInputAction(value);
186 return *this;
187 }
189
191
199 inline GuardrailSensitiveInformationAction GetOutputAction() const { return m_outputAction; }
200 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
202 m_outputActionHasBeenSet = true;
203 m_outputAction = value;
204 }
206 SetOutputAction(value);
207 return *this;
208 }
210
212
217 inline bool GetInputEnabled() const { return m_inputEnabled; }
218 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
219 inline void SetInputEnabled(bool value) {
220 m_inputEnabledHasBeenSet = true;
221 m_inputEnabled = value;
222 }
224 SetInputEnabled(value);
225 return *this;
226 }
228
230
235 inline bool GetOutputEnabled() const { return m_outputEnabled; }
236 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
237 inline void SetOutputEnabled(bool value) {
238 m_outputEnabledHasBeenSet = true;
239 m_outputEnabled = value;
240 }
242 SetOutputEnabled(value);
243 return *this;
244 }
246 private:
248
250
252
254
255 bool m_inputEnabled{false};
256
257 bool m_outputEnabled{false};
258 bool m_typeHasBeenSet = false;
259 bool m_actionHasBeenSet = false;
260 bool m_inputActionHasBeenSet = false;
261 bool m_outputActionHasBeenSet = false;
262 bool m_inputEnabledHasBeenSet = false;
263 bool m_outputEnabledHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace Bedrock
268} // namespace Aws
void SetInputAction(GuardrailSensitiveInformationAction value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailPiiEntityConfig & WithInputAction(GuardrailSensitiveInformationAction value)
GuardrailPiiEntityConfig & WithOutputEnabled(bool value)
GuardrailPiiEntityConfig & WithOutputAction(GuardrailSensitiveInformationAction value)
GuardrailSensitiveInformationAction GetAction() const
AWS_BEDROCK_API GuardrailPiiEntityConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailPiiEntityConfig & WithAction(GuardrailSensitiveInformationAction value)
GuardrailPiiEntityConfig & WithType(GuardrailPiiEntityType value)
void SetOutputAction(GuardrailSensitiveInformationAction value)
AWS_BEDROCK_API GuardrailPiiEntityConfig()=default
GuardrailSensitiveInformationAction GetOutputAction() const
void SetAction(GuardrailSensitiveInformationAction value)
GuardrailPiiEntityConfig & WithInputEnabled(bool value)
GuardrailSensitiveInformationAction GetInputAction() const
AWS_BEDROCK_API GuardrailPiiEntityConfig(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue