AWS SDK for C++

AWS SDK for C++ Version 1.11.610

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() = default;
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 template<typename WordsConfigT = Aws::Vector<GuardrailWordConfig>>
50 void SetWordsConfig(WordsConfigT&& value) { m_wordsConfigHasBeenSet = true; m_wordsConfig = std::forward<WordsConfigT>(value); }
51 template<typename WordsConfigT = Aws::Vector<GuardrailWordConfig>>
52 GuardrailWordPolicyConfig& WithWordsConfig(WordsConfigT&& value) { SetWordsConfig(std::forward<WordsConfigT>(value)); return *this;}
53 template<typename WordsConfigT = GuardrailWordConfig>
54 GuardrailWordPolicyConfig& AddWordsConfig(WordsConfigT&& value) { m_wordsConfigHasBeenSet = true; m_wordsConfig.emplace_back(std::forward<WordsConfigT>(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 template<typename ManagedWordListsConfigT = Aws::Vector<GuardrailManagedWordsConfig>>
64 void SetManagedWordListsConfig(ManagedWordListsConfigT&& value) { m_managedWordListsConfigHasBeenSet = true; m_managedWordListsConfig = std::forward<ManagedWordListsConfigT>(value); }
65 template<typename ManagedWordListsConfigT = Aws::Vector<GuardrailManagedWordsConfig>>
66 GuardrailWordPolicyConfig& WithManagedWordListsConfig(ManagedWordListsConfigT&& value) { SetManagedWordListsConfig(std::forward<ManagedWordListsConfigT>(value)); return *this;}
67 template<typename ManagedWordListsConfigT = GuardrailManagedWordsConfig>
68 GuardrailWordPolicyConfig& AddManagedWordListsConfig(ManagedWordListsConfigT&& value) { m_managedWordListsConfigHasBeenSet = true; m_managedWordListsConfig.emplace_back(std::forward<ManagedWordListsConfigT>(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
AWS_BEDROCK_API GuardrailWordPolicyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API GuardrailWordPolicyConfig()=default
GuardrailWordPolicyConfig & AddWordsConfig(WordsConfigT &&value)
AWS_BEDROCK_API GuardrailWordPolicyConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GuardrailManagedWordsConfig > & GetManagedWordListsConfig() const
GuardrailWordPolicyConfig & AddManagedWordListsConfig(ManagedWordListsConfigT &&value)
GuardrailWordPolicyConfig & WithWordsConfig(WordsConfigT &&value)
const Aws::Vector< GuardrailWordConfig > & GetWordsConfig() const
GuardrailWordPolicyConfig & WithManagedWordListsConfig(ManagedWordListsConfigT &&value)
void SetManagedWordListsConfig(ManagedWordListsConfigT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue