AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 BedrockAgentRuntime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord();
37 AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const GuardrailWordPolicyAction& GetAction() const{ return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(const GuardrailWordPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(GuardrailWordPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline GuardrailCustomWord& WithAction(const GuardrailWordPolicyAction& value) { SetAction(value); return *this;}
51 inline GuardrailCustomWord& WithAction(GuardrailWordPolicyAction&& value) { SetAction(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetMatch() const{ return m_match; }
59 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
60 inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; }
61 inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
62 inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); }
63 inline GuardrailCustomWord& WithMatch(const Aws::String& value) { SetMatch(value); return *this;}
64 inline GuardrailCustomWord& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;}
65 inline GuardrailCustomWord& WithMatch(const char* value) { SetMatch(value); return *this;}
67 private:
68
70 bool m_actionHasBeenSet = false;
71
72 Aws::String m_match;
73 bool m_matchHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace BedrockAgentRuntime
78} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord(Aws::Utils::Json::JsonView jsonValue)
GuardrailCustomWord & WithMatch(const Aws::String &value)
GuardrailCustomWord & WithMatch(Aws::String &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord()
GuardrailCustomWord & WithAction(GuardrailWordPolicyAction &&value)
void SetAction(const GuardrailWordPolicyAction &value)
const GuardrailWordPolicyAction & GetAction() const
void SetAction(GuardrailWordPolicyAction &&value)
GuardrailCustomWord & WithMatch(const char *value)
GuardrailCustomWord & WithAction(const GuardrailWordPolicyAction &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue