AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GuardrailCustomWord.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-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 BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline GuardrailWordPolicyAction GetAction() const { return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
43 m_actionHasBeenSet = true;
44 m_action = value;
45 }
47 SetAction(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetMatch() const { return m_match; }
57 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
58 template <typename MatchT = Aws::String>
59 void SetMatch(MatchT&& value) {
60 m_matchHasBeenSet = true;
61 m_match = std::forward<MatchT>(value);
62 }
63 template <typename MatchT = Aws::String>
65 SetMatch(std::forward<MatchT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_match;
73 bool m_actionHasBeenSet = false;
74 bool m_matchHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord()=default
GuardrailCustomWord & WithMatch(MatchT &&value)
void SetAction(GuardrailWordPolicyAction value)
GuardrailCustomWord & WithAction(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