AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GuardrailManagedWord.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h>
9#include <aws/bedrock-agent-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 BedrockAgentRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord() = default;
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline GuardrailWordPolicyAction GetAction() const { return m_action; }
42 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
44 m_actionHasBeenSet = true;
45 m_action = value;
46 }
48 SetAction(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMatch() const { return m_match; }
58 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
59 template <typename MatchT = Aws::String>
60 void SetMatch(MatchT&& value) {
61 m_matchHasBeenSet = true;
62 m_match = std::forward<MatchT>(value);
63 }
64 template <typename MatchT = Aws::String>
66 SetMatch(std::forward<MatchT>(value));
67 return *this;
68 }
70
72
75 inline GuardrailManagedWordType GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(GuardrailManagedWordType value) {
78 m_typeHasBeenSet = true;
79 m_type = value;
80 }
82 SetType(value);
83 return *this;
84 }
86 private:
88
89 Aws::String m_match;
90
92 bool m_actionHasBeenSet = false;
93 bool m_matchHasBeenSet = false;
94 bool m_typeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace BedrockAgentRuntime
99} // namespace Aws
GuardrailManagedWord & WithAction(GuardrailWordPolicyAction value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord()=default
GuardrailManagedWord & WithType(GuardrailManagedWordType value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord & operator=(Aws::Utils::Json::JsonView jsonValue)
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