AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/GuardrailWordPolicyAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord();
38 AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const GuardrailWordPolicyAction& GetAction() const{ return m_action; }
48 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
49 inline void SetAction(const GuardrailWordPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
50 inline void SetAction(GuardrailWordPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
51 inline GuardrailManagedWord& WithAction(const GuardrailWordPolicyAction& value) { SetAction(value); return *this;}
52 inline GuardrailManagedWord& WithAction(GuardrailWordPolicyAction&& value) { SetAction(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetMatch() const{ return m_match; }
60 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
61 inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; }
62 inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
63 inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); }
64 inline GuardrailManagedWord& WithMatch(const Aws::String& value) { SetMatch(value); return *this;}
65 inline GuardrailManagedWord& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;}
66 inline GuardrailManagedWord& WithMatch(const char* value) { SetMatch(value); return *this;}
68
70
73 inline const GuardrailManagedWordType& GetType() const{ return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(const GuardrailManagedWordType& value) { m_typeHasBeenSet = true; m_type = value; }
76 inline void SetType(GuardrailManagedWordType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
77 inline GuardrailManagedWord& WithType(const GuardrailManagedWordType& value) { SetType(value); return *this;}
78 inline GuardrailManagedWord& WithType(GuardrailManagedWordType&& value) { SetType(std::move(value)); return *this;}
80 private:
81
83 bool m_actionHasBeenSet = false;
84
85 Aws::String m_match;
86 bool m_matchHasBeenSet = false;
87
89 bool m_typeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace BedrockAgentRuntime
94} // namespace Aws
void SetType(const GuardrailManagedWordType &value)
GuardrailManagedWord & WithMatch(const Aws::String &value)
GuardrailManagedWord & WithMatch(Aws::String &&value)
const GuardrailManagedWordType & GetType() const
void SetAction(const GuardrailWordPolicyAction &value)
GuardrailManagedWord & WithAction(GuardrailWordPolicyAction &&value)
void SetAction(GuardrailWordPolicyAction &&value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord()
AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord(Aws::Utils::Json::JsonView jsonValue)
GuardrailManagedWord & WithMatch(const char *value)
GuardrailManagedWord & WithAction(const GuardrailWordPolicyAction &value)
GuardrailManagedWord & WithType(const GuardrailManagedWordType &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord & operator=(Aws::Utils::Json::JsonView jsonValue)
const GuardrailWordPolicyAction & GetAction() const
GuardrailManagedWord & WithType(GuardrailManagedWordType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue