AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
GuardrailWordPolicyAssessment.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailCustomWord.h>
9#include <aws/bedrock-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 BedrockRuntime {
22namespace Model {
23
30 public:
31 AWS_BEDROCKRUNTIME_API GuardrailWordPolicyAssessment() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<GuardrailCustomWord>& GetCustomWords() const { return m_customWords; }
41 inline bool CustomWordsHasBeenSet() const { return m_customWordsHasBeenSet; }
42 template <typename CustomWordsT = Aws::Vector<GuardrailCustomWord>>
44 m_customWordsHasBeenSet = true;
45 m_customWords = std::forward<CustomWordsT>(value);
46 }
47 template <typename CustomWordsT = Aws::Vector<GuardrailCustomWord>>
49 SetCustomWords(std::forward<CustomWordsT>(value));
50 return *this;
51 }
52 template <typename CustomWordsT = GuardrailCustomWord>
54 m_customWordsHasBeenSet = true;
55 m_customWords.emplace_back(std::forward<CustomWordsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<GuardrailManagedWord>& GetManagedWordLists() const { return m_managedWordLists; }
65 inline bool ManagedWordListsHasBeenSet() const { return m_managedWordListsHasBeenSet; }
66 template <typename ManagedWordListsT = Aws::Vector<GuardrailManagedWord>>
68 m_managedWordListsHasBeenSet = true;
69 m_managedWordLists = std::forward<ManagedWordListsT>(value);
70 }
71 template <typename ManagedWordListsT = Aws::Vector<GuardrailManagedWord>>
73 SetManagedWordLists(std::forward<ManagedWordListsT>(value));
74 return *this;
75 }
76 template <typename ManagedWordListsT = GuardrailManagedWord>
78 m_managedWordListsHasBeenSet = true;
79 m_managedWordLists.emplace_back(std::forward<ManagedWordListsT>(value));
80 return *this;
81 }
83 private:
85
86 Aws::Vector<GuardrailManagedWord> m_managedWordLists;
87 bool m_customWordsHasBeenSet = false;
88 bool m_managedWordListsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace BedrockRuntime
93} // namespace Aws
GuardrailWordPolicyAssessment & WithCustomWords(CustomWordsT &&value)
GuardrailWordPolicyAssessment & AddManagedWordLists(ManagedWordListsT &&value)
const Aws::Vector< GuardrailManagedWord > & GetManagedWordLists() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailWordPolicyAssessment & AddCustomWords(CustomWordsT &&value)
const Aws::Vector< GuardrailCustomWord > & GetCustomWords() const
AWS_BEDROCKRUNTIME_API GuardrailWordPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicyAssessment & WithManagedWordLists(ManagedWordListsT &&value)
AWS_BEDROCKRUNTIME_API GuardrailWordPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailWordPolicyAssessment()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue