AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
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
30 public:
31 AWS_BEDROCK_API GuardrailManagedWordsConfig() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline GuardrailManagedWordsType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
60 inline GuardrailWordAction GetInputAction() const { return m_inputAction; }
61 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
63 m_inputActionHasBeenSet = true;
64 m_inputAction = value;
65 }
67 SetInputAction(value);
68 return *this;
69 }
71
73
80 inline GuardrailWordAction GetOutputAction() const { return m_outputAction; }
81 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
83 m_outputActionHasBeenSet = true;
84 m_outputAction = value;
85 }
87 SetOutputAction(value);
88 return *this;
89 }
91
93
98 inline bool GetInputEnabled() const { return m_inputEnabled; }
99 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
100 inline void SetInputEnabled(bool value) {
101 m_inputEnabledHasBeenSet = true;
102 m_inputEnabled = value;
103 }
105 SetInputEnabled(value);
106 return *this;
107 }
109
111
116 inline bool GetOutputEnabled() const { return m_outputEnabled; }
117 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
118 inline void SetOutputEnabled(bool value) {
119 m_outputEnabledHasBeenSet = true;
120 m_outputEnabled = value;
121 }
123 SetOutputEnabled(value);
124 return *this;
125 }
127 private:
129
131
133
134 bool m_inputEnabled{false};
135
136 bool m_outputEnabled{false};
137 bool m_typeHasBeenSet = false;
138 bool m_inputActionHasBeenSet = false;
139 bool m_outputActionHasBeenSet = false;
140 bool m_inputEnabledHasBeenSet = false;
141 bool m_outputEnabledHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Bedrock
146} // 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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue