AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CustomWordsT = Aws::Vector<GuardrailCustomWord>>
50 void SetCustomWords(CustomWordsT&& value) { m_customWordsHasBeenSet = true; m_customWords = std::forward<CustomWordsT>(value); }
51 template<typename CustomWordsT = Aws::Vector<GuardrailCustomWord>>
52 GuardrailWordPolicyAssessment& WithCustomWords(CustomWordsT&& value) { SetCustomWords(std::forward<CustomWordsT>(value)); return *this;}
53 template<typename CustomWordsT = GuardrailCustomWord>
54 GuardrailWordPolicyAssessment& AddCustomWords(CustomWordsT&& value) { m_customWordsHasBeenSet = true; m_customWords.emplace_back(std::forward<CustomWordsT>(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 template<typename ManagedWordListsT = Aws::Vector<GuardrailManagedWord>>
64 void SetManagedWordLists(ManagedWordListsT&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = std::forward<ManagedWordListsT>(value); }
65 template<typename ManagedWordListsT = Aws::Vector<GuardrailManagedWord>>
66 GuardrailWordPolicyAssessment& WithManagedWordLists(ManagedWordListsT&& value) { SetManagedWordLists(std::forward<ManagedWordListsT>(value)); return *this;}
67 template<typename ManagedWordListsT = GuardrailManagedWord>
68 GuardrailWordPolicyAssessment& AddManagedWordLists(ManagedWordListsT&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.emplace_back(std::forward<ManagedWordListsT>(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
AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment()=default
GuardrailWordPolicyAssessment & WithManagedWordLists(ManagedWordListsT &&value)
const Aws::Vector< GuardrailManagedWord > & GetManagedWordLists() const
GuardrailWordPolicyAssessment & WithCustomWords(CustomWordsT &&value)
const Aws::Vector< GuardrailCustomWord > & GetCustomWords() const
GuardrailWordPolicyAssessment & AddManagedWordLists(ManagedWordListsT &&value)
GuardrailWordPolicyAssessment & AddCustomWords(CustomWordsT &&value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue