AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
GuardrailManagedWord.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailManagedWordType.h>
9#include <aws/bedrock-runtime/model/GuardrailWordPolicyAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
30 public:
31 AWS_BEDROCKRUNTIME_API GuardrailManagedWord() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetMatch() const { return m_match; }
41 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
42 template <typename MatchT = Aws::String>
43 void SetMatch(MatchT&& value) {
44 m_matchHasBeenSet = true;
45 m_match = std::forward<MatchT>(value);
46 }
47 template <typename MatchT = Aws::String>
49 SetMatch(std::forward<MatchT>(value));
50 return *this;
51 }
53
55
58 inline GuardrailManagedWordType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(GuardrailManagedWordType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69
71
74 inline GuardrailWordPolicyAction GetAction() const { return m_action; }
75 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
77 m_actionHasBeenSet = true;
78 m_action = value;
79 }
81 SetAction(value);
82 return *this;
83 }
85
87
91 inline bool GetDetected() const { return m_detected; }
92 inline bool DetectedHasBeenSet() const { return m_detectedHasBeenSet; }
93 inline void SetDetected(bool value) {
94 m_detectedHasBeenSet = true;
95 m_detected = value;
96 }
97 inline GuardrailManagedWord& WithDetected(bool value) {
98 SetDetected(value);
99 return *this;
100 }
102 private:
103 Aws::String m_match;
104
106
108
109 bool m_detected{false};
110 bool m_matchHasBeenSet = false;
111 bool m_typeHasBeenSet = false;
112 bool m_actionHasBeenSet = false;
113 bool m_detectedHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace BedrockRuntime
118} // 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::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