AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailContentPolicy.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/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 Bedrock
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_BEDROCK_API GuardrailContentPolicy();
41 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<GuardrailContentFilter>& GetFilters() const{ return m_filters; }
50 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
51 inline void SetFilters(const Aws::Vector<GuardrailContentFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
52 inline void SetFilters(Aws::Vector<GuardrailContentFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
54 inline GuardrailContentPolicy& WithFilters(Aws::Vector<GuardrailContentFilter>&& value) { SetFilters(std::move(value)); return *this;}
55 inline GuardrailContentPolicy& AddFilters(const GuardrailContentFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
56 inline GuardrailContentPolicy& AddFilters(GuardrailContentFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
58 private:
59
61 bool m_filtersHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace Bedrock
66} // namespace Aws
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailContentPolicy & WithFilters(Aws::Vector< GuardrailContentFilter > &&value)
AWS_BEDROCK_API GuardrailContentPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetFilters(Aws::Vector< GuardrailContentFilter > &&value)
GuardrailContentPolicy & AddFilters(const GuardrailContentFilter &value)
const Aws::Vector< GuardrailContentFilter > & GetFilters() const
GuardrailContentPolicy & AddFilters(GuardrailContentFilter &&value)
AWS_BEDROCK_API GuardrailContentPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailContentPolicy & WithFilters(const Aws::Vector< GuardrailContentFilter > &value)
void SetFilters(const Aws::Vector< GuardrailContentFilter > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue