AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailRegexConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/GuardrailSensitiveInformationAction.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 GuardrailRegexConfig() = default;
39 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 GuardrailRegexConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 GuardrailRegexConfig& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
70 inline const Aws::String& GetPattern() const { return m_pattern; }
71 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
72 template<typename PatternT = Aws::String>
73 void SetPattern(PatternT&& value) { m_patternHasBeenSet = true; m_pattern = std::forward<PatternT>(value); }
74 template<typename PatternT = Aws::String>
75 GuardrailRegexConfig& WithPattern(PatternT&& value) { SetPattern(std::forward<PatternT>(value)); return *this;}
77
79
83 inline GuardrailSensitiveInformationAction GetAction() const { return m_action; }
84 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
85 inline void SetAction(GuardrailSensitiveInformationAction value) { m_actionHasBeenSet = true; m_action = value; }
88
90
97 inline GuardrailSensitiveInformationAction GetInputAction() const { return m_inputAction; }
98 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
99 inline void SetInputAction(GuardrailSensitiveInformationAction value) { m_inputActionHasBeenSet = true; m_inputAction = value; }
102
104
111 inline GuardrailSensitiveInformationAction GetOutputAction() const { return m_outputAction; }
112 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
113 inline void SetOutputAction(GuardrailSensitiveInformationAction value) { m_outputActionHasBeenSet = true; m_outputAction = value; }
116
118
123 inline bool GetInputEnabled() const { return m_inputEnabled; }
124 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
125 inline void SetInputEnabled(bool value) { m_inputEnabledHasBeenSet = true; m_inputEnabled = value; }
126 inline GuardrailRegexConfig& WithInputEnabled(bool value) { SetInputEnabled(value); return *this;}
128
130
135 inline bool GetOutputEnabled() const { return m_outputEnabled; }
136 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
137 inline void SetOutputEnabled(bool value) { m_outputEnabledHasBeenSet = true; m_outputEnabled = value; }
138 inline GuardrailRegexConfig& WithOutputEnabled(bool value) { SetOutputEnabled(value); return *this;}
140 private:
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_pattern;
149 bool m_patternHasBeenSet = false;
150
152 bool m_actionHasBeenSet = false;
153
155 bool m_inputActionHasBeenSet = false;
156
158 bool m_outputActionHasBeenSet = false;
159
160 bool m_inputEnabled{false};
161 bool m_inputEnabledHasBeenSet = false;
162
163 bool m_outputEnabled{false};
164 bool m_outputEnabledHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Bedrock
169} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue