AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailWordPolicy.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock/model/GuardrailWord.h>
10#include <aws/bedrock/model/GuardrailManagedWords.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 Bedrock
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCK_API GuardrailWordPolicy() = default;
40 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<GuardrailWord>& GetWords() const { return m_words; }
48 inline bool WordsHasBeenSet() const { return m_wordsHasBeenSet; }
49 template<typename WordsT = Aws::Vector<GuardrailWord>>
50 void SetWords(WordsT&& value) { m_wordsHasBeenSet = true; m_words = std::forward<WordsT>(value); }
51 template<typename WordsT = Aws::Vector<GuardrailWord>>
52 GuardrailWordPolicy& WithWords(WordsT&& value) { SetWords(std::forward<WordsT>(value)); return *this;}
53 template<typename WordsT = GuardrailWord>
54 GuardrailWordPolicy& AddWords(WordsT&& value) { m_wordsHasBeenSet = true; m_words.emplace_back(std::forward<WordsT>(value)); return *this; }
56
58
61 inline const Aws::Vector<GuardrailManagedWords>& GetManagedWordLists() const { return m_managedWordLists; }
62 inline bool ManagedWordListsHasBeenSet() const { return m_managedWordListsHasBeenSet; }
63 template<typename ManagedWordListsT = Aws::Vector<GuardrailManagedWords>>
64 void SetManagedWordLists(ManagedWordListsT&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = std::forward<ManagedWordListsT>(value); }
65 template<typename ManagedWordListsT = Aws::Vector<GuardrailManagedWords>>
66 GuardrailWordPolicy& WithManagedWordLists(ManagedWordListsT&& value) { SetManagedWordLists(std::forward<ManagedWordListsT>(value)); return *this;}
67 template<typename ManagedWordListsT = GuardrailManagedWords>
68 GuardrailWordPolicy& AddManagedWordLists(ManagedWordListsT&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.emplace_back(std::forward<ManagedWordListsT>(value)); return *this; }
70 private:
71
73 bool m_wordsHasBeenSet = false;
74
75 Aws::Vector<GuardrailManagedWords> m_managedWordLists;
76 bool m_managedWordListsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Bedrock
81} // namespace Aws
AWS_BEDROCK_API GuardrailWordPolicy(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicy & WithManagedWordLists(ManagedWordListsT &&value)
void SetManagedWordLists(ManagedWordListsT &&value)
GuardrailWordPolicy & AddManagedWordLists(ManagedWordListsT &&value)
GuardrailWordPolicy & WithWords(WordsT &&value)
AWS_BEDROCK_API GuardrailWordPolicy()=default
GuardrailWordPolicy & AddWords(WordsT &&value)
const Aws::Vector< GuardrailWord > & GetWords() const
const Aws::Vector< GuardrailManagedWords > & GetManagedWordLists() const
AWS_BEDROCK_API GuardrailWordPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue