AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
GuardrailContentPolicyConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailContentFilterConfig.h>
9#include <aws/bedrock/model/GuardrailContentFiltersTierConfig.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
31 public:
32 AWS_BEDROCK_API GuardrailContentPolicyConfig() = default;
35 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<GuardrailContentFilterConfig>& GetFiltersConfig() const { return m_filtersConfig; }
43 inline bool FiltersConfigHasBeenSet() const { return m_filtersConfigHasBeenSet; }
44 template <typename FiltersConfigT = Aws::Vector<GuardrailContentFilterConfig>>
45 void SetFiltersConfig(FiltersConfigT&& value) {
46 m_filtersConfigHasBeenSet = true;
47 m_filtersConfig = std::forward<FiltersConfigT>(value);
48 }
49 template <typename FiltersConfigT = Aws::Vector<GuardrailContentFilterConfig>>
51 SetFiltersConfig(std::forward<FiltersConfigT>(value));
52 return *this;
53 }
54 template <typename FiltersConfigT = GuardrailContentFilterConfig>
56 m_filtersConfigHasBeenSet = true;
57 m_filtersConfig.emplace_back(std::forward<FiltersConfigT>(value));
58 return *this;
59 }
61
63
66 inline const GuardrailContentFiltersTierConfig& GetTierConfig() const { return m_tierConfig; }
67 inline bool TierConfigHasBeenSet() const { return m_tierConfigHasBeenSet; }
68 template <typename TierConfigT = GuardrailContentFiltersTierConfig>
69 void SetTierConfig(TierConfigT&& value) {
70 m_tierConfigHasBeenSet = true;
71 m_tierConfig = std::forward<TierConfigT>(value);
72 }
73 template <typename TierConfigT = GuardrailContentFiltersTierConfig>
75 SetTierConfig(std::forward<TierConfigT>(value));
76 return *this;
77 }
79 private:
81 bool m_filtersConfigHasBeenSet = false;
82
84 bool m_tierConfigHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Bedrock
89} // namespace Aws
GuardrailContentPolicyConfig & WithTierConfig(TierConfigT &&value)
AWS_BEDROCK_API GuardrailContentPolicyConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API GuardrailContentPolicyConfig()=default
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailContentPolicyConfig & WithFiltersConfig(FiltersConfigT &&value)
const GuardrailContentFiltersTierConfig & GetTierConfig() const
const Aws::Vector< GuardrailContentFilterConfig > & GetFiltersConfig() const
GuardrailContentPolicyConfig & AddFiltersConfig(FiltersConfigT &&value)
AWS_BEDROCK_API GuardrailContentPolicyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue