AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWords(const Aws::Vector<GuardrailWord>& value) { m_wordsHasBeenSet = true; m_words = value; }
50 inline void SetWords(Aws::Vector<GuardrailWord>&& value) { m_wordsHasBeenSet = true; m_words = std::move(value); }
51 inline GuardrailWordPolicy& WithWords(const Aws::Vector<GuardrailWord>& value) { SetWords(value); return *this;}
52 inline GuardrailWordPolicy& WithWords(Aws::Vector<GuardrailWord>&& value) { SetWords(std::move(value)); return *this;}
53 inline GuardrailWordPolicy& AddWords(const GuardrailWord& value) { m_wordsHasBeenSet = true; m_words.push_back(value); return *this; }
54 inline GuardrailWordPolicy& AddWords(GuardrailWord&& value) { m_wordsHasBeenSet = true; m_words.push_back(std::move(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 inline void SetManagedWordLists(const Aws::Vector<GuardrailManagedWords>& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = value; }
64 inline void SetManagedWordLists(Aws::Vector<GuardrailManagedWords>&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = std::move(value); }
67 inline GuardrailWordPolicy& AddManagedWordLists(const GuardrailManagedWords& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(value); return *this; }
68 inline GuardrailWordPolicy& AddManagedWordLists(GuardrailManagedWords&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(std::move(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
void SetManagedWordLists(Aws::Vector< GuardrailManagedWords > &&value)
GuardrailWordPolicy & AddManagedWordLists(const GuardrailManagedWords &value)
GuardrailWordPolicy & AddManagedWordLists(GuardrailManagedWords &&value)
GuardrailWordPolicy & WithManagedWordLists(const Aws::Vector< GuardrailManagedWords > &value)
void SetWords(Aws::Vector< GuardrailWord > &&value)
void SetWords(const Aws::Vector< GuardrailWord > &value)
AWS_BEDROCK_API GuardrailWordPolicy(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicy & WithManagedWordLists(Aws::Vector< GuardrailManagedWords > &&value)
GuardrailWordPolicy & WithWords(Aws::Vector< GuardrailWord > &&value)
GuardrailWordPolicy & AddWords(const GuardrailWord &value)
void SetManagedWordLists(const Aws::Vector< GuardrailManagedWords > &value)
GuardrailWordPolicy & AddWords(GuardrailWord &&value)
const Aws::Vector< GuardrailWord > & GetWords() const
const Aws::Vector< GuardrailManagedWords > & GetManagedWordLists() const
AWS_BEDROCK_API GuardrailWordPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicy & WithWords(const Aws::Vector< GuardrailWord > &value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue