AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GuardrailRegexConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailSensitiveInformationAction.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
30 public:
31 AWS_BEDROCK_API GuardrailRegexConfig() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetPattern() const { return m_pattern; }
77 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
78 template <typename PatternT = Aws::String>
79 void SetPattern(PatternT&& value) {
80 m_patternHasBeenSet = true;
81 m_pattern = std::forward<PatternT>(value);
82 }
83 template <typename PatternT = Aws::String>
85 SetPattern(std::forward<PatternT>(value));
86 return *this;
87 }
89
91
95 inline GuardrailSensitiveInformationAction GetAction() const { return m_action; }
96 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
98 m_actionHasBeenSet = true;
99 m_action = value;
100 }
102 SetAction(value);
103 return *this;
104 }
106
108
115 inline GuardrailSensitiveInformationAction GetInputAction() const { return m_inputAction; }
116 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
118 m_inputActionHasBeenSet = true;
119 m_inputAction = value;
120 }
122 SetInputAction(value);
123 return *this;
124 }
126
128
135 inline GuardrailSensitiveInformationAction GetOutputAction() const { return m_outputAction; }
136 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
138 m_outputActionHasBeenSet = true;
139 m_outputAction = value;
140 }
142 SetOutputAction(value);
143 return *this;
144 }
146
148
153 inline bool GetInputEnabled() const { return m_inputEnabled; }
154 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
155 inline void SetInputEnabled(bool value) {
156 m_inputEnabledHasBeenSet = true;
157 m_inputEnabled = value;
158 }
160 SetInputEnabled(value);
161 return *this;
162 }
164
166
171 inline bool GetOutputEnabled() const { return m_outputEnabled; }
172 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
173 inline void SetOutputEnabled(bool value) {
174 m_outputEnabledHasBeenSet = true;
175 m_outputEnabled = value;
176 }
178 SetOutputEnabled(value);
179 return *this;
180 }
182 private:
183 Aws::String m_name;
184
185 Aws::String m_description;
186
187 Aws::String m_pattern;
188
190
192
194
195 bool m_inputEnabled{false};
196
197 bool m_outputEnabled{false};
198 bool m_nameHasBeenSet = false;
199 bool m_descriptionHasBeenSet = false;
200 bool m_patternHasBeenSet = false;
201 bool m_actionHasBeenSet = false;
202 bool m_inputActionHasBeenSet = false;
203 bool m_outputActionHasBeenSet = false;
204 bool m_inputEnabledHasBeenSet = false;
205 bool m_outputEnabledHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace Bedrock
210} // namespace Aws
GuardrailRegexConfig & WithOutputEnabled(bool value)
void SetOutputAction(GuardrailSensitiveInformationAction value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailSensitiveInformationAction GetInputAction() const
GuardrailRegexConfig & WithInputEnabled(bool value)
GuardrailSensitiveInformationAction GetOutputAction() const
void SetAction(GuardrailSensitiveInformationAction value)
GuardrailRegexConfig & WithInputAction(GuardrailSensitiveInformationAction value)
GuardrailSensitiveInformationAction GetAction() const
AWS_BEDROCK_API GuardrailRegexConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailRegexConfig & WithOutputAction(GuardrailSensitiveInformationAction value)
GuardrailRegexConfig & WithPattern(PatternT &&value)
AWS_BEDROCK_API GuardrailRegexConfig(Aws::Utils::Json::JsonView jsonValue)
void SetInputAction(GuardrailSensitiveInformationAction value)
GuardrailRegexConfig & WithDescription(DescriptionT &&value)
GuardrailRegexConfig & WithName(NameT &&value)
AWS_BEDROCK_API GuardrailRegexConfig()=default
GuardrailRegexConfig & WithAction(GuardrailSensitiveInformationAction value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue