AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailRegex.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 GuardrailRegex() = default;
37 AWS_BEDROCK_API GuardrailRegex(Aws::Utils::Json::JsonView jsonValue);
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 GuardrailRegex& 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 GuardrailRegex& 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 GuardrailRegex& WithPattern(PatternT&& value) { SetPattern(std::forward<PatternT>(value)); return *this;}
77
79
82 inline GuardrailSensitiveInformationAction GetAction() const { return m_action; }
83 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
84 inline void SetAction(GuardrailSensitiveInformationAction value) { m_actionHasBeenSet = true; m_action = value; }
87
89
96 inline GuardrailSensitiveInformationAction GetInputAction() const { return m_inputAction; }
97 inline bool InputActionHasBeenSet() const { return m_inputActionHasBeenSet; }
98 inline void SetInputAction(GuardrailSensitiveInformationAction value) { m_inputActionHasBeenSet = true; m_inputAction = value; }
101
103
110 inline GuardrailSensitiveInformationAction GetOutputAction() const { return m_outputAction; }
111 inline bool OutputActionHasBeenSet() const { return m_outputActionHasBeenSet; }
112 inline void SetOutputAction(GuardrailSensitiveInformationAction value) { m_outputActionHasBeenSet = true; m_outputAction = value; }
115
117
122 inline bool GetInputEnabled() const { return m_inputEnabled; }
123 inline bool InputEnabledHasBeenSet() const { return m_inputEnabledHasBeenSet; }
124 inline void SetInputEnabled(bool value) { m_inputEnabledHasBeenSet = true; m_inputEnabled = value; }
125 inline GuardrailRegex& WithInputEnabled(bool value) { SetInputEnabled(value); return *this;}
127
129
134 inline bool GetOutputEnabled() const { return m_outputEnabled; }
135 inline bool OutputEnabledHasBeenSet() const { return m_outputEnabledHasBeenSet; }
136 inline void SetOutputEnabled(bool value) { m_outputEnabledHasBeenSet = true; m_outputEnabled = value; }
137 inline GuardrailRegex& WithOutputEnabled(bool value) { SetOutputEnabled(value); return *this;}
139 private:
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_description;
145 bool m_descriptionHasBeenSet = false;
146
147 Aws::String m_pattern;
148 bool m_patternHasBeenSet = false;
149
151 bool m_actionHasBeenSet = false;
152
154 bool m_inputActionHasBeenSet = false;
155
157 bool m_outputActionHasBeenSet = false;
158
159 bool m_inputEnabled{false};
160 bool m_inputEnabledHasBeenSet = false;
161
162 bool m_outputEnabled{false};
163 bool m_outputEnabledHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Bedrock
168} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue