AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailWordPolicyAssessment.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent-runtime/model/GuardrailCustomWord.h>
10#include <aws/bedrock-agent-runtime/model/GuardrailManagedWord.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 GuardrailWordPolicyAssessment();
38 AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<GuardrailCustomWord>& GetCustomWords() const{ return m_customWords; }
48 inline bool CustomWordsHasBeenSet() const { return m_customWordsHasBeenSet; }
49 inline void SetCustomWords(const Aws::Vector<GuardrailCustomWord>& value) { m_customWordsHasBeenSet = true; m_customWords = value; }
50 inline void SetCustomWords(Aws::Vector<GuardrailCustomWord>&& value) { m_customWordsHasBeenSet = true; m_customWords = std::move(value); }
53 inline GuardrailWordPolicyAssessment& AddCustomWords(const GuardrailCustomWord& value) { m_customWordsHasBeenSet = true; m_customWords.push_back(value); return *this; }
54 inline GuardrailWordPolicyAssessment& AddCustomWords(GuardrailCustomWord&& value) { m_customWordsHasBeenSet = true; m_customWords.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::Vector<GuardrailManagedWord>& GetManagedWordLists() const{ return m_managedWordLists; }
62 inline bool ManagedWordListsHasBeenSet() const { return m_managedWordListsHasBeenSet; }
63 inline void SetManagedWordLists(const Aws::Vector<GuardrailManagedWord>& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = value; }
64 inline void SetManagedWordLists(Aws::Vector<GuardrailManagedWord>&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = std::move(value); }
67 inline GuardrailWordPolicyAssessment& AddManagedWordLists(const GuardrailManagedWord& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(value); return *this; }
68 inline GuardrailWordPolicyAssessment& AddManagedWordLists(GuardrailManagedWord&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(std::move(value)); return *this; }
70 private:
71
73 bool m_customWordsHasBeenSet = false;
74
75 Aws::Vector<GuardrailManagedWord> m_managedWordLists;
76 bool m_managedWordListsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace BedrockAgentRuntime
81} // namespace Aws
GuardrailWordPolicyAssessment & AddCustomWords(const GuardrailCustomWord &value)
const Aws::Vector< GuardrailManagedWord > & GetManagedWordLists() const
GuardrailWordPolicyAssessment & WithCustomWords(const Aws::Vector< GuardrailCustomWord > &value)
GuardrailWordPolicyAssessment & AddCustomWords(GuardrailCustomWord &&value)
void SetManagedWordLists(Aws::Vector< GuardrailManagedWord > &&value)
const Aws::Vector< GuardrailCustomWord > & GetCustomWords() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
void SetManagedWordLists(const Aws::Vector< GuardrailManagedWord > &value)
void SetCustomWords(const Aws::Vector< GuardrailCustomWord > &value)
GuardrailWordPolicyAssessment & WithManagedWordLists(const Aws::Vector< GuardrailManagedWord > &value)
GuardrailWordPolicyAssessment & AddManagedWordLists(const GuardrailManagedWord &value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicyAssessment & AddManagedWordLists(GuardrailManagedWord &&value)
GuardrailWordPolicyAssessment & WithManagedWordLists(Aws::Vector< GuardrailManagedWord > &&value)
GuardrailWordPolicyAssessment & WithCustomWords(Aws::Vector< GuardrailCustomWord > &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue