AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GuardrailContentPolicyAssessment.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailContentFilter.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 BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAssessment() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<GuardrailContentFilter>& GetFilters() const { return m_filters; }
42 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
43 template <typename FiltersT = Aws::Vector<GuardrailContentFilter>>
44 void SetFilters(FiltersT&& value) {
45 m_filtersHasBeenSet = true;
46 m_filters = std::forward<FiltersT>(value);
47 }
48 template <typename FiltersT = Aws::Vector<GuardrailContentFilter>>
50 SetFilters(std::forward<FiltersT>(value));
51 return *this;
52 }
53 template <typename FiltersT = GuardrailContentFilter>
55 m_filtersHasBeenSet = true;
56 m_filters.emplace_back(std::forward<FiltersT>(value));
57 return *this;
58 }
60 private:
62 bool m_filtersHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace BedrockAgentRuntime
67} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAssessment()=default
AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue