AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline GuardrailRegexConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline GuardrailRegexConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline GuardrailRegexConfig& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline GuardrailRegexConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline GuardrailRegexConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline GuardrailRegexConfig& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const Aws::String& GetPattern() const{ return m_pattern; }
75 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
76 inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; }
77 inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); }
78 inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); }
79 inline GuardrailRegexConfig& WithPattern(const Aws::String& value) { SetPattern(value); return *this;}
80 inline GuardrailRegexConfig& WithPattern(Aws::String&& value) { SetPattern(std::move(value)); return *this;}
81 inline GuardrailRegexConfig& WithPattern(const char* value) { SetPattern(value); return *this;}
83
85
89 inline const GuardrailSensitiveInformationAction& GetAction() const{ return m_action; }
90 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
91 inline void SetAction(const GuardrailSensitiveInformationAction& value) { m_actionHasBeenSet = true; m_action = value; }
92 inline void SetAction(GuardrailSensitiveInformationAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
94 inline GuardrailRegexConfig& WithAction(GuardrailSensitiveInformationAction&& value) { SetAction(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::String m_description;
102 bool m_descriptionHasBeenSet = false;
103
104 Aws::String m_pattern;
105 bool m_patternHasBeenSet = false;
106
108 bool m_actionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Bedrock
113} // namespace Aws
void SetAction(const GuardrailSensitiveInformationAction &value)
GuardrailRegexConfig & WithAction(GuardrailSensitiveInformationAction &&value)
GuardrailRegexConfig & WithName(const Aws::String &value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailRegexConfig & WithDescription(const char *value)
GuardrailRegexConfig & WithDescription(const Aws::String &value)
GuardrailRegexConfig & WithDescription(Aws::String &&value)
const GuardrailSensitiveInformationAction & GetAction() const
GuardrailRegexConfig & WithAction(const GuardrailSensitiveInformationAction &value)
GuardrailRegexConfig & WithName(Aws::String &&value)
GuardrailRegexConfig & WithName(const char *value)
AWS_BEDROCK_API GuardrailRegexConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailRegexConfig & WithPattern(const char *value)
void SetDescription(const Aws::String &value)
AWS_BEDROCK_API GuardrailRegexConfig(Aws::Utils::Json::JsonView jsonValue)
GuardrailRegexConfig & WithPattern(Aws::String &&value)
void SetPattern(const Aws::String &value)
void SetAction(GuardrailSensitiveInformationAction &&value)
GuardrailRegexConfig & WithPattern(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue