AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RerankingMetadataSelectiveModeConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/FieldForReranking.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 BedrockAgentRuntime {
21namespace Model {
22
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API RerankingMetadataSelectiveModeConfiguration() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<FieldForReranking>& GetFieldsToExclude() const { return m_fieldsToExclude; }
46 inline bool FieldsToExcludeHasBeenSet() const { return m_fieldsToExcludeHasBeenSet; }
47 template <typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
49 m_fieldsToExcludeHasBeenSet = true;
50 m_fieldsToExclude = std::forward<FieldsToExcludeT>(value);
51 }
52 template <typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
54 SetFieldsToExclude(std::forward<FieldsToExcludeT>(value));
55 return *this;
56 }
57 template <typename FieldsToExcludeT = FieldForReranking>
59 m_fieldsToExcludeHasBeenSet = true;
60 m_fieldsToExclude.emplace_back(std::forward<FieldsToExcludeT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<FieldForReranking>& GetFieldsToInclude() const { return m_fieldsToInclude; }
71 inline bool FieldsToIncludeHasBeenSet() const { return m_fieldsToIncludeHasBeenSet; }
72 template <typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
74 m_fieldsToIncludeHasBeenSet = true;
75 m_fieldsToInclude = std::forward<FieldsToIncludeT>(value);
76 }
77 template <typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
79 SetFieldsToInclude(std::forward<FieldsToIncludeT>(value));
80 return *this;
81 }
82 template <typename FieldsToIncludeT = FieldForReranking>
84 m_fieldsToIncludeHasBeenSet = true;
85 m_fieldsToInclude.emplace_back(std::forward<FieldsToIncludeT>(value));
86 return *this;
87 }
89 private:
90 Aws::Vector<FieldForReranking> m_fieldsToExclude;
91
92 Aws::Vector<FieldForReranking> m_fieldsToInclude;
93 bool m_fieldsToExcludeHasBeenSet = false;
94 bool m_fieldsToIncludeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace BedrockAgentRuntime
99} // namespace Aws
RerankingMetadataSelectiveModeConfiguration & AddFieldsToExclude(FieldsToExcludeT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API RerankingMetadataSelectiveModeConfiguration(Aws::Utils::Json::JsonView jsonValue)
RerankingMetadataSelectiveModeConfiguration & AddFieldsToInclude(FieldsToIncludeT &&value)
AWS_BEDROCKAGENTRUNTIME_API RerankingMetadataSelectiveModeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API RerankingMetadataSelectiveModeConfiguration()=default
RerankingMetadataSelectiveModeConfiguration & WithFieldsToExclude(FieldsToExcludeT &&value)
RerankingMetadataSelectiveModeConfiguration & WithFieldsToInclude(FieldsToIncludeT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue