AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GuardrailRegexConfig.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/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 QConnect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QCONNECT_API GuardrailRegexConfig() = default;
39 AWS_QCONNECT_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
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 GuardrailRegexConfig& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetPattern() const { return m_pattern; }
72 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
73 template<typename PatternT = Aws::String>
74 void SetPattern(PatternT&& value) { m_patternHasBeenSet = true; m_pattern = std::forward<PatternT>(value); }
75 template<typename PatternT = Aws::String>
76 GuardrailRegexConfig& WithPattern(PatternT&& value) { SetPattern(std::forward<PatternT>(value)); return *this;}
78
80
84 inline GuardrailSensitiveInformationAction GetAction() const { return m_action; }
85 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
86 inline void SetAction(GuardrailSensitiveInformationAction value) { m_actionHasBeenSet = true; m_action = value; }
89 private:
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 Aws::String m_description;
95 bool m_descriptionHasBeenSet = false;
96
97 Aws::String m_pattern;
98 bool m_patternHasBeenSet = false;
99
101 bool m_actionHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace QConnect
106} // namespace Aws
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailRegexConfig & WithAction(GuardrailSensitiveInformationAction value)
GuardrailRegexConfig & WithName(NameT &&value)
GuardrailRegexConfig & WithPattern(PatternT &&value)
GuardrailSensitiveInformationAction GetAction() const
GuardrailRegexConfig & WithDescription(DescriptionT &&value)
AWS_QCONNECT_API GuardrailRegexConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API GuardrailRegexConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API GuardrailRegexConfig()=default
void SetAction(GuardrailSensitiveInformationAction 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