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-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/GuardrailWordPolicyAction.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 BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API GuardrailCustomWord();
36 AWS_BEDROCKRUNTIME_API GuardrailCustomWord(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKRUNTIME_API GuardrailCustomWord& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMatch() const{ return m_match; }
46 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
47 inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; }
48 inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
49 inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); }
50 inline GuardrailCustomWord& WithMatch(const Aws::String& value) { SetMatch(value); return *this;}
51 inline GuardrailCustomWord& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;}
52 inline GuardrailCustomWord& WithMatch(const char* value) { SetMatch(value); return *this;}
54
56
59 inline const GuardrailWordPolicyAction& GetAction() const{ return m_action; }
60 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 inline void SetAction(const GuardrailWordPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
62 inline void SetAction(GuardrailWordPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
63 inline GuardrailCustomWord& WithAction(const GuardrailWordPolicyAction& value) { SetAction(value); return *this;}
64 inline GuardrailCustomWord& WithAction(GuardrailWordPolicyAction&& value) { SetAction(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_match;
69 bool m_matchHasBeenSet = false;
70
72 bool m_actionHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace BedrockRuntime
77} // namespace Aws
GuardrailCustomWord & WithMatch(Aws::String &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAction(const GuardrailWordPolicyAction &value)
GuardrailCustomWord & WithAction(GuardrailWordPolicyAction &&value)
GuardrailCustomWord & WithAction(const GuardrailWordPolicyAction &value)
AWS_BEDROCKRUNTIME_API GuardrailCustomWord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailCustomWord(Aws::Utils::Json::JsonView jsonValue)
const GuardrailWordPolicyAction & GetAction() const
void SetAction(GuardrailWordPolicyAction &&value)
GuardrailCustomWord & WithMatch(const char *value)
GuardrailCustomWord & WithMatch(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue