AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GuardrailRegexConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/GuardrailSensitiveInformationAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
30 public:
31 AWS_QCONNECT_API GuardrailRegexConfig() = default;
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
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>
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetPattern() const { return m_pattern; }
78 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
79 template <typename PatternT = Aws::String>
80 void SetPattern(PatternT&& value) {
81 m_patternHasBeenSet = true;
82 m_pattern = std::forward<PatternT>(value);
83 }
84 template <typename PatternT = Aws::String>
86 SetPattern(std::forward<PatternT>(value));
87 return *this;
88 }
90
92
96 inline GuardrailSensitiveInformationAction GetAction() const { return m_action; }
97 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
99 m_actionHasBeenSet = true;
100 m_action = value;
101 }
103 SetAction(value);
104 return *this;
105 }
107 private:
108 Aws::String m_name;
109
110 Aws::String m_description;
111
112 Aws::String m_pattern;
113
115 bool m_nameHasBeenSet = false;
116 bool m_descriptionHasBeenSet = false;
117 bool m_patternHasBeenSet = false;
118 bool m_actionHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace QConnect
123} // 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