AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailWordPolicyConfig.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/GuardrailWordConfig.h>
10#include <aws/bedrock/model/GuardrailManagedWordsConfig.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 GuardrailWordPolicyConfig();
40 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<GuardrailWordConfig>& GetWordsConfig() const{ return m_wordsConfig; }
48 inline bool WordsConfigHasBeenSet() const { return m_wordsConfigHasBeenSet; }
49 inline void SetWordsConfig(const Aws::Vector<GuardrailWordConfig>& value) { m_wordsConfigHasBeenSet = true; m_wordsConfig = value; }
50 inline void SetWordsConfig(Aws::Vector<GuardrailWordConfig>&& value) { m_wordsConfigHasBeenSet = true; m_wordsConfig = std::move(value); }
53 inline GuardrailWordPolicyConfig& AddWordsConfig(const GuardrailWordConfig& value) { m_wordsConfigHasBeenSet = true; m_wordsConfig.push_back(value); return *this; }
54 inline GuardrailWordPolicyConfig& AddWordsConfig(GuardrailWordConfig&& value) { m_wordsConfigHasBeenSet = true; m_wordsConfig.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::Vector<GuardrailManagedWordsConfig>& GetManagedWordListsConfig() const{ return m_managedWordListsConfig; }
62 inline bool ManagedWordListsConfigHasBeenSet() const { return m_managedWordListsConfigHasBeenSet; }
63 inline void SetManagedWordListsConfig(const Aws::Vector<GuardrailManagedWordsConfig>& value) { m_managedWordListsConfigHasBeenSet = true; m_managedWordListsConfig = value; }
64 inline void SetManagedWordListsConfig(Aws::Vector<GuardrailManagedWordsConfig>&& value) { m_managedWordListsConfigHasBeenSet = true; m_managedWordListsConfig = std::move(value); }
67 inline GuardrailWordPolicyConfig& AddManagedWordListsConfig(const GuardrailManagedWordsConfig& value) { m_managedWordListsConfigHasBeenSet = true; m_managedWordListsConfig.push_back(value); return *this; }
68 inline GuardrailWordPolicyConfig& AddManagedWordListsConfig(GuardrailManagedWordsConfig&& value) { m_managedWordListsConfigHasBeenSet = true; m_managedWordListsConfig.push_back(std::move(value)); return *this; }
70 private:
71
73 bool m_wordsConfigHasBeenSet = false;
74
75 Aws::Vector<GuardrailManagedWordsConfig> m_managedWordListsConfig;
76 bool m_managedWordListsConfigHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Bedrock
81} // namespace Aws
GuardrailWordPolicyConfig & AddManagedWordListsConfig(const GuardrailManagedWordsConfig &value)
AWS_BEDROCK_API GuardrailWordPolicyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicyConfig & WithManagedWordListsConfig(Aws::Vector< GuardrailManagedWordsConfig > &&value)
GuardrailWordPolicyConfig & AddManagedWordListsConfig(GuardrailManagedWordsConfig &&value)
void SetManagedWordListsConfig(const Aws::Vector< GuardrailManagedWordsConfig > &value)
GuardrailWordPolicyConfig & AddWordsConfig(GuardrailWordConfig &&value)
void SetWordsConfig(const Aws::Vector< GuardrailWordConfig > &value)
AWS_BEDROCK_API GuardrailWordPolicyConfig(Aws::Utils::Json::JsonView jsonValue)
GuardrailWordPolicyConfig & AddWordsConfig(const GuardrailWordConfig &value)
void SetManagedWordListsConfig(Aws::Vector< GuardrailManagedWordsConfig > &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GuardrailManagedWordsConfig > & GetManagedWordListsConfig() const
GuardrailWordPolicyConfig & WithManagedWordListsConfig(const Aws::Vector< GuardrailManagedWordsConfig > &value)
GuardrailWordPolicyConfig & WithWordsConfig(const Aws::Vector< GuardrailWordConfig > &value)
void SetWordsConfig(Aws::Vector< GuardrailWordConfig > &&value)
const Aws::Vector< GuardrailWordConfig > & GetWordsConfig() const
GuardrailWordPolicyConfig & WithWordsConfig(Aws::Vector< GuardrailWordConfig > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue