AWS SDK for C++

AWS SDK for C++ Version 1.11.774

Loading...
Searching...
No Matches
ModelEnforcement.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 ModelEnforcement() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetIncludedModels() const { return m_includedModels; }
41 inline bool IncludedModelsHasBeenSet() const { return m_includedModelsHasBeenSet; }
42 template <typename IncludedModelsT = Aws::Vector<Aws::String>>
44 m_includedModelsHasBeenSet = true;
45 m_includedModels = std::forward<IncludedModelsT>(value);
46 }
47 template <typename IncludedModelsT = Aws::Vector<Aws::String>>
49 SetIncludedModels(std::forward<IncludedModelsT>(value));
50 return *this;
51 }
52 template <typename IncludedModelsT = Aws::String>
54 m_includedModelsHasBeenSet = true;
55 m_includedModels.emplace_back(std::forward<IncludedModelsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetExcludedModels() const { return m_excludedModels; }
65 inline bool ExcludedModelsHasBeenSet() const { return m_excludedModelsHasBeenSet; }
66 template <typename ExcludedModelsT = Aws::Vector<Aws::String>>
68 m_excludedModelsHasBeenSet = true;
69 m_excludedModels = std::forward<ExcludedModelsT>(value);
70 }
71 template <typename ExcludedModelsT = Aws::Vector<Aws::String>>
73 SetExcludedModels(std::forward<ExcludedModelsT>(value));
74 return *this;
75 }
76 template <typename ExcludedModelsT = Aws::String>
78 m_excludedModelsHasBeenSet = true;
79 m_excludedModels.emplace_back(std::forward<ExcludedModelsT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<Aws::String> m_includedModels;
85
86 Aws::Vector<Aws::String> m_excludedModels;
87 bool m_includedModelsHasBeenSet = false;
88 bool m_excludedModelsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Bedrock
93} // namespace Aws
ModelEnforcement & AddIncludedModels(IncludedModelsT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API ModelEnforcement & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelEnforcement & AddExcludedModels(ExcludedModelsT &&value)
ModelEnforcement & WithIncludedModels(IncludedModelsT &&value)
AWS_BEDROCK_API ModelEnforcement(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIncludedModels() const
void SetExcludedModels(ExcludedModelsT &&value)
const Aws::Vector< Aws::String > & GetExcludedModels() const
void SetIncludedModels(IncludedModelsT &&value)
ModelEnforcement & WithExcludedModels(ExcludedModelsT &&value)
AWS_BEDROCK_API ModelEnforcement()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue