AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
GuardrailContentPolicy.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailContentFilter.h>
9#include <aws/bedrock/model/GuardrailContentFiltersTier.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
33 public:
34 AWS_BEDROCK_API GuardrailContentPolicy() = default;
37 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<GuardrailContentFilter>& GetFilters() const { return m_filters; }
45 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
46 template <typename FiltersT = Aws::Vector<GuardrailContentFilter>>
47 void SetFilters(FiltersT&& value) {
48 m_filtersHasBeenSet = true;
49 m_filters = std::forward<FiltersT>(value);
50 }
51 template <typename FiltersT = Aws::Vector<GuardrailContentFilter>>
53 SetFilters(std::forward<FiltersT>(value));
54 return *this;
55 }
56 template <typename FiltersT = GuardrailContentFilter>
58 m_filtersHasBeenSet = true;
59 m_filters.emplace_back(std::forward<FiltersT>(value));
60 return *this;
61 }
63
65
68 inline const GuardrailContentFiltersTier& GetTier() const { return m_tier; }
69 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
70 template <typename TierT = GuardrailContentFiltersTier>
71 void SetTier(TierT&& value) {
72 m_tierHasBeenSet = true;
73 m_tier = std::forward<TierT>(value);
74 }
75 template <typename TierT = GuardrailContentFiltersTier>
77 SetTier(std::forward<TierT>(value));
78 return *this;
79 }
81 private:
83 bool m_filtersHasBeenSet = false;
84
86 bool m_tierHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Bedrock
91} // namespace Aws
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailContentPolicy & WithTier(TierT &&value)
AWS_BEDROCK_API GuardrailContentPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API GuardrailContentPolicy()=default
const Aws::Vector< GuardrailContentFilter > & GetFilters() const
GuardrailContentPolicy & WithFilters(FiltersT &&value)
const GuardrailContentFiltersTier & GetTier() const
GuardrailContentPolicy & AddFilters(FiltersT &&value)
AWS_BEDROCK_API GuardrailContentPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue