AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailCustomWord.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/GuardrailWordPolicyAction.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 BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API GuardrailCustomWord() = default;
36 AWS_BEDROCKRUNTIME_API GuardrailCustomWord(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKRUNTIME_API GuardrailCustomWord& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMatch() const { return m_match; }
46 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
47 template<typename MatchT = Aws::String>
48 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
49 template<typename MatchT = Aws::String>
50 GuardrailCustomWord& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
52
54
57 inline GuardrailWordPolicyAction GetAction() const { return m_action; }
58 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
59 inline void SetAction(GuardrailWordPolicyAction value) { m_actionHasBeenSet = true; m_action = value; }
60 inline GuardrailCustomWord& WithAction(GuardrailWordPolicyAction value) { SetAction(value); return *this;}
62
64
68 inline bool GetDetected() const { return m_detected; }
69 inline bool DetectedHasBeenSet() const { return m_detectedHasBeenSet; }
70 inline void SetDetected(bool value) { m_detectedHasBeenSet = true; m_detected = value; }
71 inline GuardrailCustomWord& WithDetected(bool value) { SetDetected(value); return *this;}
73 private:
74
75 Aws::String m_match;
76 bool m_matchHasBeenSet = false;
77
79 bool m_actionHasBeenSet = false;
80
81 bool m_detected{false};
82 bool m_detectedHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace BedrockRuntime
87} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue