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-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-runtime/model/GuardrailCustomWord.h>
10#include <aws/bedrock-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 BedrockRuntime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API GuardrailWordPolicyAssessment();
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<GuardrailCustomWord>& GetCustomWords() const{ return m_customWords; }
47 inline bool CustomWordsHasBeenSet() const { return m_customWordsHasBeenSet; }
48 inline void SetCustomWords(const Aws::Vector<GuardrailCustomWord>& value) { m_customWordsHasBeenSet = true; m_customWords = value; }
49 inline void SetCustomWords(Aws::Vector<GuardrailCustomWord>&& value) { m_customWordsHasBeenSet = true; m_customWords = std::move(value); }
52 inline GuardrailWordPolicyAssessment& AddCustomWords(const GuardrailCustomWord& value) { m_customWordsHasBeenSet = true; m_customWords.push_back(value); return *this; }
53 inline GuardrailWordPolicyAssessment& AddCustomWords(GuardrailCustomWord&& value) { m_customWordsHasBeenSet = true; m_customWords.push_back(std::move(value)); return *this; }
55
57
60 inline const Aws::Vector<GuardrailManagedWord>& GetManagedWordLists() const{ return m_managedWordLists; }
61 inline bool ManagedWordListsHasBeenSet() const { return m_managedWordListsHasBeenSet; }
62 inline void SetManagedWordLists(const Aws::Vector<GuardrailManagedWord>& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = value; }
63 inline void SetManagedWordLists(Aws::Vector<GuardrailManagedWord>&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = std::move(value); }
66 inline GuardrailWordPolicyAssessment& AddManagedWordLists(const GuardrailManagedWord& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(value); return *this; }
67 inline GuardrailWordPolicyAssessment& AddManagedWordLists(GuardrailManagedWord&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(std::move(value)); return *this; }
69 private:
70
72 bool m_customWordsHasBeenSet = false;
73
74 Aws::Vector<GuardrailManagedWord> m_managedWordLists;
75 bool m_managedWordListsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace BedrockRuntime
80} // namespace Aws
GuardrailWordPolicyAssessment & AddManagedWordLists(const GuardrailManagedWord &value)
const Aws::Vector< GuardrailManagedWord > & GetManagedWordLists() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GuardrailCustomWord > & GetCustomWords() const
AWS_BEDROCKRUNTIME_API GuardrailWordPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicyAssessment & WithManagedWordLists(const Aws::Vector< GuardrailManagedWord > &value)
void SetManagedWordLists(const Aws::Vector< GuardrailManagedWord > &value)
GuardrailWordPolicyAssessment & AddManagedWordLists(GuardrailManagedWord &&value)
void SetCustomWords(const Aws::Vector< GuardrailCustomWord > &value)
GuardrailWordPolicyAssessment & WithCustomWords(const Aws::Vector< GuardrailCustomWord > &value)
GuardrailWordPolicyAssessment & AddCustomWords(const GuardrailCustomWord &value)
GuardrailWordPolicyAssessment & AddCustomWords(GuardrailCustomWord &&value)
GuardrailWordPolicyAssessment & WithManagedWordLists(Aws::Vector< GuardrailManagedWord > &&value)
void SetCustomWords(Aws::Vector< GuardrailCustomWord > &&value)
AWS_BEDROCKRUNTIME_API GuardrailWordPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicyAssessment & WithCustomWords(Aws::Vector< GuardrailCustomWord > &&value)
void SetManagedWordLists(Aws::Vector< GuardrailManagedWord > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue