AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GuardrailRegex.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 GuardrailRegex() = 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
94 inline GuardrailSensitiveInformationAction GetAction() const { return m_action; }
95 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
97 m_actionHasBeenSet = true;
98 m_action = value;
99 }
101 SetAction(value);
102 return *this;
103 }
105
107
114 inline GuardrailSensitiveInformationAction GetInputAction() const { return m_inputAction; }
115 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
117 m_inputActionHasBeenSet = true;
118 m_inputAction = value;
119 }
121 SetInputAction(value);
122 return *this;
123 }
125
127
134 inline GuardrailSensitiveInformationAction GetOutputAction() const { return m_outputAction; }
135 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
137 m_outputActionHasBeenSet = true;
138 m_outputAction = value;
139 }
141 SetOutputAction(value);
142 return *this;
143 }
145
147
152 inline bool GetInputEnabled() const { return m_inputEnabled; }
153 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
154 inline void SetInputEnabled(bool value) {
155 m_inputEnabledHasBeenSet = true;
156 m_inputEnabled = value;
157 }
158 inline GuardrailRegex& WithInputEnabled(bool value) {
159 SetInputEnabled(value);
160 return *this;
161 }
163
165
170 inline bool GetOutputEnabled() const { return m_outputEnabled; }
171 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
172 inline void SetOutputEnabled(bool value) {
173 m_outputEnabledHasBeenSet = true;
174 m_outputEnabled = value;
175 }
176 inline GuardrailRegex& WithOutputEnabled(bool value) {
177 SetOutputEnabled(value);
178 return *this;
179 }
181 private:
182 Aws::String m_name;
183
184 Aws::String m_description;
185
186 Aws::String m_pattern;
187
189
191
193
194 bool m_inputEnabled{false};
195
196 bool m_outputEnabled{false};
197 bool m_nameHasBeenSet = false;
198 bool m_descriptionHasBeenSet = false;
199 bool m_patternHasBeenSet = false;
200 bool m_actionHasBeenSet = false;
201 bool m_inputActionHasBeenSet = false;
202 bool m_outputActionHasBeenSet = false;
203 bool m_inputEnabledHasBeenSet = false;
204 bool m_outputEnabledHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace Bedrock
209} // namespace Aws
GuardrailRegex & WithOutputAction(GuardrailSensitiveInformationAction value)
GuardrailRegex & WithAction(GuardrailSensitiveInformationAction value)
const Aws::String & GetPattern() const
void SetOutputAction(GuardrailSensitiveInformationAction value)
GuardrailRegex & WithInputAction(GuardrailSensitiveInformationAction value)
void SetInputAction(GuardrailSensitiveInformationAction value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
const Aws::String & GetDescription() const
GuardrailRegex & WithName(NameT &&value)
GuardrailSensitiveInformationAction GetAction() const
void SetAction(GuardrailSensitiveInformationAction value)
AWS_BEDROCK_API GuardrailRegex(Aws::Utils::Json::JsonView jsonValue)
GuardrailRegex & WithInputEnabled(bool value)
GuardrailSensitiveInformationAction GetInputAction() const
GuardrailSensitiveInformationAction GetOutputAction() const
GuardrailRegex & WithOutputEnabled(bool value)
GuardrailRegex & WithPattern(PatternT &&value)
AWS_BEDROCK_API GuardrailRegex & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
GuardrailRegex & WithDescription(DescriptionT &&value)
AWS_BEDROCK_API GuardrailRegex()=default
void SetPattern(PatternT &&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