AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GuardrailCustomWord.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailWordPolicyAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKRUNTIME_API GuardrailCustomWord() = default;
33 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMatch() const { return m_match; }
40 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
41 template <typename MatchT = Aws::String>
42 void SetMatch(MatchT&& value) {
43 m_matchHasBeenSet = true;
44 m_match = std::forward<MatchT>(value);
45 }
46 template <typename MatchT = Aws::String>
48 SetMatch(std::forward<MatchT>(value));
49 return *this;
50 }
52
54
57 inline GuardrailWordPolicyAction GetAction() const { return m_action; }
58 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
60 m_actionHasBeenSet = true;
61 m_action = value;
62 }
64 SetAction(value);
65 return *this;
66 }
68
70
74 inline bool GetDetected() const { return m_detected; }
75 inline bool DetectedHasBeenSet() const { return m_detectedHasBeenSet; }
76 inline void SetDetected(bool value) {
77 m_detectedHasBeenSet = true;
78 m_detected = value;
79 }
80 inline GuardrailCustomWord& WithDetected(bool value) {
81 SetDetected(value);
82 return *this;
83 }
85 private:
86 Aws::String m_match;
87
89
90 bool m_detected{false};
91 bool m_matchHasBeenSet = false;
92 bool m_actionHasBeenSet = false;
93 bool m_detectedHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace BedrockRuntime
98} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailCustomWord & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailCustomWord & WithAction(GuardrailWordPolicyAction value)
AWS_BEDROCKRUNTIME_API GuardrailCustomWord()=default
GuardrailCustomWord & WithDetected(bool value)
AWS_BEDROCKRUNTIME_API GuardrailCustomWord(Aws::Utils::Json::JsonView jsonValue)
GuardrailCustomWord & WithMatch(MatchT &&value)
void SetAction(GuardrailWordPolicyAction 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