AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
GuardrailWordPolicyConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailManagedWordsConfig.h>
9#include <aws/bedrock/model/GuardrailWordConfig.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Bedrock {
22namespace Model {
23
31 public:
32 AWS_BEDROCK_API GuardrailWordPolicyConfig() = default;
35 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<GuardrailWordConfig>& GetWordsConfig() const { return m_wordsConfig; }
42 inline bool WordsConfigHasBeenSet() const { return m_wordsConfigHasBeenSet; }
43 template <typename WordsConfigT = Aws::Vector<GuardrailWordConfig>>
45 m_wordsConfigHasBeenSet = true;
46 m_wordsConfig = std::forward<WordsConfigT>(value);
47 }
48 template <typename WordsConfigT = Aws::Vector<GuardrailWordConfig>>
50 SetWordsConfig(std::forward<WordsConfigT>(value));
51 return *this;
52 }
53 template <typename WordsConfigT = GuardrailWordConfig>
55 m_wordsConfigHasBeenSet = true;
56 m_wordsConfig.emplace_back(std::forward<WordsConfigT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<GuardrailManagedWordsConfig>& GetManagedWordListsConfig() const { return m_managedWordListsConfig; }
66 inline bool ManagedWordListsConfigHasBeenSet() const { return m_managedWordListsConfigHasBeenSet; }
67 template <typename ManagedWordListsConfigT = Aws::Vector<GuardrailManagedWordsConfig>>
69 m_managedWordListsConfigHasBeenSet = true;
70 m_managedWordListsConfig = std::forward<ManagedWordListsConfigT>(value);
71 }
72 template <typename ManagedWordListsConfigT = Aws::Vector<GuardrailManagedWordsConfig>>
74 SetManagedWordListsConfig(std::forward<ManagedWordListsConfigT>(value));
75 return *this;
76 }
77 template <typename ManagedWordListsConfigT = GuardrailManagedWordsConfig>
79 m_managedWordListsConfigHasBeenSet = true;
80 m_managedWordListsConfig.emplace_back(std::forward<ManagedWordListsConfigT>(value));
81 return *this;
82 }
84 private:
86
87 Aws::Vector<GuardrailManagedWordsConfig> m_managedWordListsConfig;
88 bool m_wordsConfigHasBeenSet = false;
89 bool m_managedWordListsConfigHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Bedrock
94} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue