AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GuardrailWordPolicyAssessment.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailCustomWord.h>
9#include <aws/bedrock-agent-runtime/model/GuardrailManagedWord.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment() = default;
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<GuardrailCustomWord>& GetCustomWords() const { return m_customWords; }
42 inline bool CustomWordsHasBeenSet() const { return m_customWordsHasBeenSet; }
43 template <typename CustomWordsT = Aws::Vector<GuardrailCustomWord>>
45 m_customWordsHasBeenSet = true;
46 m_customWords = std::forward<CustomWordsT>(value);
47 }
48 template <typename CustomWordsT = Aws::Vector<GuardrailCustomWord>>
50 SetCustomWords(std::forward<CustomWordsT>(value));
51 return *this;
52 }
53 template <typename CustomWordsT = GuardrailCustomWord>
55 m_customWordsHasBeenSet = true;
56 m_customWords.emplace_back(std::forward<CustomWordsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<GuardrailManagedWord>& GetManagedWordLists() const { return m_managedWordLists; }
66 inline bool ManagedWordListsHasBeenSet() const { return m_managedWordListsHasBeenSet; }
67 template <typename ManagedWordListsT = Aws::Vector<GuardrailManagedWord>>
69 m_managedWordListsHasBeenSet = true;
70 m_managedWordLists = std::forward<ManagedWordListsT>(value);
71 }
72 template <typename ManagedWordListsT = Aws::Vector<GuardrailManagedWord>>
74 SetManagedWordLists(std::forward<ManagedWordListsT>(value));
75 return *this;
76 }
77 template <typename ManagedWordListsT = GuardrailManagedWord>
79 m_managedWordListsHasBeenSet = true;
80 m_managedWordLists.emplace_back(std::forward<ManagedWordListsT>(value));
81 return *this;
82 }
84 private:
86
87 Aws::Vector<GuardrailManagedWord> m_managedWordLists;
88 bool m_customWordsHasBeenSet = false;
89 bool m_managedWordListsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace BedrockAgentRuntime
94} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue