AWS SDK for C++

AWS SDK for C++ Version 1.11.610

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/GuardrailContentFiltersTier.h>
10#include <aws/bedrock/model/GuardrailContentFilter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Bedrock
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_BEDROCK_API GuardrailContentPolicy() = default;
42 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<GuardrailContentFilter>& GetFilters() const { return m_filters; }
51 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
52 template<typename FiltersT = Aws::Vector<GuardrailContentFilter>>
53 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
54 template<typename FiltersT = Aws::Vector<GuardrailContentFilter>>
55 GuardrailContentPolicy& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
56 template<typename FiltersT = GuardrailContentFilter>
57 GuardrailContentPolicy& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
59
61
64 inline const GuardrailContentFiltersTier& GetTier() const { return m_tier; }
65 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
66 template<typename TierT = GuardrailContentFiltersTier>
67 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
68 template<typename TierT = GuardrailContentFiltersTier>
69 GuardrailContentPolicy& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
71 private:
72
74 bool m_filtersHasBeenSet = false;
75
77 bool m_tierHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Bedrock
82} // 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