AWS SDK for C++

AWS SDK for C++ Version 1.11.610

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