AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
GuardrailChecksPromptAttackConfig.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailChecksPromptAttackCategoryConfig.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKRUNTIME_API GuardrailChecksPromptAttackConfig() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<GuardrailChecksPromptAttackCategoryConfig>& GetCategories() const { return m_categories; }
41 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
42 template <typename CategoriesT = Aws::Vector<GuardrailChecksPromptAttackCategoryConfig>>
43 void SetCategories(CategoriesT&& value) {
44 m_categoriesHasBeenSet = true;
45 m_categories = std::forward<CategoriesT>(value);
46 }
47 template <typename CategoriesT = Aws::Vector<GuardrailChecksPromptAttackCategoryConfig>>
49 SetCategories(std::forward<CategoriesT>(value));
50 return *this;
51 }
52 template <typename CategoriesT = GuardrailChecksPromptAttackCategoryConfig>
54 m_categoriesHasBeenSet = true;
55 m_categories.emplace_back(std::forward<CategoriesT>(value));
56 return *this;
57 }
59 private:
61 bool m_categoriesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace BedrockRuntime
66} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailChecksPromptAttackConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailChecksPromptAttackConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailChecksPromptAttackConfig()=default
GuardrailChecksPromptAttackConfig & AddCategories(CategoriesT &&value)
const Aws::Vector< GuardrailChecksPromptAttackCategoryConfig > & GetCategories() const
GuardrailChecksPromptAttackConfig & WithCategories(CategoriesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue