AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailManagedWord.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/GuardrailManagedWordType.h>
10#include <aws/bedrock-runtime/model/GuardrailWordPolicyAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockRuntime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API GuardrailManagedWord() = default;
37 AWS_BEDROCKRUNTIME_API GuardrailManagedWord(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API GuardrailManagedWord& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMatch() const { return m_match; }
47 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
48 template<typename MatchT = Aws::String>
49 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
50 template<typename MatchT = Aws::String>
51 GuardrailManagedWord& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
53
55
58 inline GuardrailManagedWordType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(GuardrailManagedWordType value) { m_typeHasBeenSet = true; m_type = value; }
61 inline GuardrailManagedWord& WithType(GuardrailManagedWordType value) { SetType(value); return *this;}
63
65
68 inline GuardrailWordPolicyAction GetAction() const { return m_action; }
69 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
70 inline void SetAction(GuardrailWordPolicyAction value) { m_actionHasBeenSet = true; m_action = value; }
73
75
79 inline bool GetDetected() const { return m_detected; }
80 inline bool DetectedHasBeenSet() const { return m_detectedHasBeenSet; }
81 inline void SetDetected(bool value) { m_detectedHasBeenSet = true; m_detected = value; }
82 inline GuardrailManagedWord& WithDetected(bool value) { SetDetected(value); return *this;}
84 private:
85
86 Aws::String m_match;
87 bool m_matchHasBeenSet = false;
88
90 bool m_typeHasBeenSet = false;
91
93 bool m_actionHasBeenSet = false;
94
95 bool m_detected{false};
96 bool m_detectedHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace BedrockRuntime
101} // namespace Aws
GuardrailManagedWord & WithDetected(bool value)
AWS_BEDROCKRUNTIME_API GuardrailManagedWord()=default
void SetType(GuardrailManagedWordType value)
GuardrailManagedWord & WithAction(GuardrailWordPolicyAction value)
void SetAction(GuardrailWordPolicyAction value)
GuardrailManagedWord & WithType(GuardrailManagedWordType value)
GuardrailManagedWord & WithMatch(MatchT &&value)
AWS_BEDROCKRUNTIME_API GuardrailManagedWord(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailManagedWord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue