AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailManagedWordsConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailManagedWordsType.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
34 {
35 public:
36 AWS_BEDROCK_API GuardrailManagedWordsConfig() = default;
39 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline GuardrailManagedWordsType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(GuardrailManagedWordsType value) { m_typeHasBeenSet = true; m_type = value; }
51
53
60 inline GuardrailWordAction GetInputAction() const { return m_inputAction; }
61 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
62 inline void SetInputAction(GuardrailWordAction value) { m_inputActionHasBeenSet = true; m_inputAction = value; }
65
67
74 inline GuardrailWordAction GetOutputAction() const { return m_outputAction; }
75 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
76 inline void SetOutputAction(GuardrailWordAction value) { m_outputActionHasBeenSet = true; m_outputAction = value; }
79
81
86 inline bool GetInputEnabled() const { return m_inputEnabled; }
87 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
88 inline void SetInputEnabled(bool value) { m_inputEnabledHasBeenSet = true; m_inputEnabled = value; }
89 inline GuardrailManagedWordsConfig& WithInputEnabled(bool value) { SetInputEnabled(value); return *this;}
91
93
98 inline bool GetOutputEnabled() const { return m_outputEnabled; }
99 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
100 inline void SetOutputEnabled(bool value) { m_outputEnabledHasBeenSet = true; m_outputEnabled = value; }
101 inline GuardrailManagedWordsConfig& WithOutputEnabled(bool value) { SetOutputEnabled(value); return *this;}
103 private:
104
106 bool m_typeHasBeenSet = false;
107
109 bool m_inputActionHasBeenSet = false;
110
112 bool m_outputActionHasBeenSet = false;
113
114 bool m_inputEnabled{false};
115 bool m_inputEnabledHasBeenSet = false;
116
117 bool m_outputEnabled{false};
118 bool m_outputEnabledHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Bedrock
123} // namespace Aws
AWS_BEDROCK_API GuardrailManagedWordsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailManagedWordsConfig & WithOutputAction(GuardrailWordAction value)
GuardrailManagedWordsConfig & WithInputEnabled(bool value)
AWS_BEDROCK_API GuardrailManagedWordsConfig()=default
AWS_BEDROCK_API GuardrailManagedWordsConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailManagedWordsConfig & WithInputAction(GuardrailWordAction value)
GuardrailManagedWordsConfig & WithOutputEnabled(bool value)
GuardrailManagedWordsConfig & WithType(GuardrailManagedWordsType value)
Aws::Utils::Json::JsonValue JsonValue