AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailContentPolicyAssessment.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-runtime/model/GuardrailContentFilter.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API GuardrailContentPolicyAssessment();
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<GuardrailContentFilter>& GetFilters() const{ return m_filters; }
47 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
48 inline void SetFilters(const Aws::Vector<GuardrailContentFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
49 inline void SetFilters(Aws::Vector<GuardrailContentFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
52 inline GuardrailContentPolicyAssessment& AddFilters(const GuardrailContentFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
53 inline GuardrailContentPolicyAssessment& AddFilters(GuardrailContentFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
55 private:
56
58 bool m_filtersHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace BedrockRuntime
63} // namespace Aws
void SetFilters(Aws::Vector< GuardrailContentFilter > &&value)
const Aws::Vector< GuardrailContentFilter > & GetFilters() const
AWS_BEDROCKRUNTIME_API GuardrailContentPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
void SetFilters(const Aws::Vector< GuardrailContentFilter > &value)
AWS_BEDROCKRUNTIME_API GuardrailContentPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailContentPolicyAssessment & WithFilters(const Aws::Vector< GuardrailContentFilter > &value)
GuardrailContentPolicyAssessment & WithFilters(Aws::Vector< GuardrailContentFilter > &&value)
GuardrailContentPolicyAssessment & AddFilters(const GuardrailContentFilter &value)
GuardrailContentPolicyAssessment & AddFilters(GuardrailContentFilter &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue