AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 GuardrailRegex& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline GuardrailRegex& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline GuardrailRegex& 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 GuardrailRegex& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline GuardrailRegex& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline GuardrailRegex& 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 GuardrailRegex& WithPattern(const Aws::String& value) { SetPattern(value); return *this;}
80 inline GuardrailRegex& WithPattern(Aws::String&& value) { SetPattern(std::move(value)); return *this;}
81 inline GuardrailRegex& WithPattern(const char* value) { SetPattern(value); return *this;}
83
85
88 inline const GuardrailSensitiveInformationAction& GetAction() const{ return m_action; }
89 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
90 inline void SetAction(const GuardrailSensitiveInformationAction& value) { m_actionHasBeenSet = true; m_action = value; }
91 inline void SetAction(GuardrailSensitiveInformationAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
92 inline GuardrailRegex& WithAction(const GuardrailSensitiveInformationAction& value) { SetAction(value); return *this;}
93 inline GuardrailRegex& WithAction(GuardrailSensitiveInformationAction&& value) { SetAction(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_description;
101 bool m_descriptionHasBeenSet = false;
102
103 Aws::String m_pattern;
104 bool m_patternHasBeenSet = false;
105
107 bool m_actionHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Bedrock
112} // namespace Aws
GuardrailRegex & WithAction(const GuardrailSensitiveInformationAction &value)
GuardrailRegex & WithPattern(const Aws::String &value)
void SetPattern(Aws::String &&value)
const Aws::String & GetPattern() const
void SetAction(const GuardrailSensitiveInformationAction &value)
void SetName(const char *value)
GuardrailRegex & WithDescription(const Aws::String &value)
void SetPattern(const char *value)
void SetDescription(const Aws::String &value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const GuardrailSensitiveInformationAction & GetAction() const
GuardrailRegex & WithAction(GuardrailSensitiveInformationAction &&value)
GuardrailRegex & WithName(const Aws::String &value)
GuardrailRegex & WithName(const char *value)
const Aws::String & GetName() const
GuardrailRegex & WithName(Aws::String &&value)
void SetName(const Aws::String &value)
const Aws::String & GetDescription() const
GuardrailRegex & WithPattern(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetDescription(const char *value)
GuardrailRegex & WithPattern(const char *value)
AWS_BEDROCK_API GuardrailRegex(Aws::Utils::Json::JsonView jsonValue)
void SetAction(GuardrailSensitiveInformationAction &&value)
AWS_BEDROCK_API GuardrailRegex & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailRegex & WithDescription(Aws::String &&value)
void SetName(Aws::String &&value)
void SetPattern(const Aws::String &value)
GuardrailRegex & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue