AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailContentPolicyConfig.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/GuardrailContentFilterConfig.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
34 {
35 public:
39 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<GuardrailContentFilterConfig>& GetFiltersConfig() const{ return m_filtersConfig; }
48 inline bool FiltersConfigHasBeenSet() const { return m_filtersConfigHasBeenSet; }
49 inline void SetFiltersConfig(const Aws::Vector<GuardrailContentFilterConfig>& value) { m_filtersConfigHasBeenSet = true; m_filtersConfig = value; }
50 inline void SetFiltersConfig(Aws::Vector<GuardrailContentFilterConfig>&& value) { m_filtersConfigHasBeenSet = true; m_filtersConfig = std::move(value); }
53 inline GuardrailContentPolicyConfig& AddFiltersConfig(const GuardrailContentFilterConfig& value) { m_filtersConfigHasBeenSet = true; m_filtersConfig.push_back(value); return *this; }
54 inline GuardrailContentPolicyConfig& AddFiltersConfig(GuardrailContentFilterConfig&& value) { m_filtersConfigHasBeenSet = true; m_filtersConfig.push_back(std::move(value)); return *this; }
56 private:
57
59 bool m_filtersConfigHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace Bedrock
64} // namespace Aws
GuardrailContentPolicyConfig & WithFiltersConfig(Aws::Vector< GuardrailContentFilterConfig > &&value)
AWS_BEDROCK_API GuardrailContentPolicyConfig(Aws::Utils::Json::JsonView jsonValue)
void SetFiltersConfig(const Aws::Vector< GuardrailContentFilterConfig > &value)
GuardrailContentPolicyConfig & WithFiltersConfig(const Aws::Vector< GuardrailContentFilterConfig > &value)
void SetFiltersConfig(Aws::Vector< GuardrailContentFilterConfig > &&value)
GuardrailContentPolicyConfig & AddFiltersConfig(const GuardrailContentFilterConfig &value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailContentPolicyConfig & AddFiltersConfig(GuardrailContentFilterConfig &&value)
const Aws::Vector< GuardrailContentFilterConfig > & GetFiltersConfig() const
AWS_BEDROCK_API GuardrailContentPolicyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue