AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GuardrailContextualGroundingPolicyConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailContextualGroundingFilterConfig.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
30 public:
31 AWS_BEDROCK_API GuardrailContextualGroundingPolicyConfig() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<GuardrailContextualGroundingFilterConfig>& GetFiltersConfig() const { return m_filtersConfig; }
42 inline bool FiltersConfigHasBeenSet() const { return m_filtersConfigHasBeenSet; }
43 template <typename FiltersConfigT = Aws::Vector<GuardrailContextualGroundingFilterConfig>>
44 void SetFiltersConfig(FiltersConfigT&& value) {
45 m_filtersConfigHasBeenSet = true;
46 m_filtersConfig = std::forward<FiltersConfigT>(value);
47 }
48 template <typename FiltersConfigT = Aws::Vector<GuardrailContextualGroundingFilterConfig>>
50 SetFiltersConfig(std::forward<FiltersConfigT>(value));
51 return *this;
52 }
53 template <typename FiltersConfigT = GuardrailContextualGroundingFilterConfig>
55 m_filtersConfigHasBeenSet = true;
56 m_filtersConfig.emplace_back(std::forward<FiltersConfigT>(value));
57 return *this;
58 }
60 private:
62 bool m_filtersConfigHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace Bedrock
67} // namespace Aws
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GuardrailContextualGroundingFilterConfig > & GetFiltersConfig() const
AWS_BEDROCK_API GuardrailContextualGroundingPolicyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailContextualGroundingPolicyConfig & WithFiltersConfig(FiltersConfigT &&value)
GuardrailContextualGroundingPolicyConfig & AddFiltersConfig(FiltersConfigT &&value)
AWS_BEDROCK_API GuardrailContextualGroundingPolicyConfig(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue